diff options
Diffstat (limited to 'media-fonts/nanumfont/nanumfont-2.0-r2.ebuild')
-rw-r--r-- | media-fonts/nanumfont/nanumfont-2.0-r2.ebuild | 23 |
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 } |