summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2021-11-11 22:03:31 +0900
committerAkinori Hattori <hattya@gentoo.org>2021-11-11 22:06:21 +0900
commita97c0716899284d1b49b0ff823e2d2deb5321d9e (patch)
tree81b15d1935d34226c682c1c6c4c518c80c91f5b7 /media-fonts/nanumfont
parentmedia-fonts/nanumfont: update HOMEPAGE and SRC_URI (diff)
downloadgentoo-a97c0716899284d1b49b0ff823e2d2deb5321d9e.tar.gz
gentoo-a97c0716899284d1b49b0ff823e2d2deb5321d9e.tar.bz2
gentoo-a97c0716899284d1b49b0ff823e2d2deb5321d9e.zip
media-fonts/nanumfont: fix unpack with app-arch/unzip[natspec]
Closes: https://bugs.gentoo.org/771330 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'media-fonts/nanumfont')
-rw-r--r--media-fonts/nanumfont/nanumfont-2.0-r2.ebuild23
1 files changed, 13 insertions, 10 deletions
diff --git a/media-fonts/nanumfont/nanumfont-2.0-r2.ebuild b/media-fonts/nanumfont/nanumfont-2.0-r2.ebuild
index af3b30930d0e..2312663368b6 100644
--- a/media-fonts/nanumfont/nanumfont-2.0-r2.ebuild
+++ b/media-fonts/nanumfont/nanumfont-2.0-r2.ebuild
@@ -5,28 +5,31 @@ EAPI=7
inherit font
+MY_PN="NanumGothicCoding"
+
DESCRIPTION="Korean monospace font distributed by Naver"
HOMEPAGE="https://github.com/naver/nanumfont"
-SRC_URI="https://github.com/naver/${PN}/releases/download/VER${PV}/NanumGothicCoding-${PV}.zip"
-S="${WORKDIR}"
+SRC_URI="https://github.com/naver/${PN}/releases/download/VER${PV}/${MY_PN}-${PV}.zip"
LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
-
-# Only installs fonts
RESTRICT="strip binchecks"
BDEPEND="app-arch/unzip"
+S="${WORKDIR}"
FONT_SUFFIX="ttf"
-src_prepare() {
- default
+src_unpack() {
+ if has_version -b "app-arch/unzip[natspec]"; then
+ unzip -qO CP949 "${DISTDIR}"/${A} || die
+ else
+ default
+ fi
# Rename names in cp949 encoding, bug #322041
- mkdir recode || die
- mv *-Bold.ttf recode/${PN}-Bold.ttf || die
- mv *.ttf recode/${PN}.ttf || die
- mv recode/* . || die
+ mv *-Bold.ttf "${T}"/${MY_PN}-Bold.ttf || die
+ mv *.ttf "${T}"/${MY_PN}.ttf || die
+ mv "${T}"/*.ttf . || die
}