From: "Akinori Hattori" <hattya@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/nanumfont/
Date: Thu, 11 Nov 2021 13:06:30 +0000 (UTC) [thread overview]
Message-ID: <1636635981.a97c0716899284d1b49b0ff823e2d2deb5321d9e.hattya@gentoo> (raw)
commit: a97c0716899284d1b49b0ff823e2d2deb5321d9e
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 11 13:03:31 2021 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Thu Nov 11 13:06:21 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a97c0716
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 <AT> gentoo.org>
media-fonts/nanumfont/nanumfont-2.0-r2.ebuild | 23 +++++++++++++----------
1 file 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 af3b30930d0..2312663368b 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
}
next reply other threads:[~2021-11-11 13:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-11 13:06 Akinori Hattori [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-18 2:53 [gentoo-commits] repo/gentoo:master commit in: media-fonts/nanumfont/ Matt Turner
2022-08-02 7:48 Joonas Niilola
2022-05-25 8:29 WANG Xuerui
2021-11-11 13:06 Akinori Hattori
2021-11-11 13:06 Akinori Hattori
2021-11-11 13:06 Akinori Hattori
2018-05-14 16:36 Johannes Huber
2018-05-13 22:47 Thomas Deutschmann
2018-05-11 13:19 Johannes Huber
2018-05-11 13:19 Johannes Huber
2018-05-11 13:19 Johannes Huber
2015-11-11 8:15 Guilherme Amadio
2015-11-03 19:33 Guilherme Amadio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1636635981.a97c0716899284d1b49b0ff823e2d2deb5321d9e.hattya@gentoo \
--to=hattya@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox