media-fonts/mplus-outline-fonts: new upstream release
authorAkinori Hattori <hattya@gentoo.org>
Tue, 17 Sep 2019 14:32:51 +0000 (23:32 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Tue, 17 Sep 2019 14:32:51 +0000 (23:32 +0900)
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
media-fonts/mplus-outline-fonts/Manifest
media-fonts/mplus-outline-fonts/mplus-outline-fonts-0_pre063_p1.ebuild [new file with mode: 0644]

index ab41b097fc30600ad5e9179445efe0eda906faf9..4717c3253b517caf6023d94c0535b8b1753e086a 100644 (file)
@@ -1 +1,2 @@
 DIST mplus-TESTFLIGHT-063.tar.xz 10346584 BLAKE2B d053992dc6b1220361f91d9482eeea11bc32ec1989ef9b99e178f3f229c84f1d232111b7a97df195473bd957eccc973a0233da5263038e6beaf4a9ff64ff0cd7 SHA512 477b9669c14dfb10321b5986dece72fb44a2554ff6c9239ccfadf21643714984ee7fd1e42c9c7982fa17417dee0e7ef6b5d66fc7cceec05298add4ae3d9502fa
+DIST mplus-TESTFLIGHT-063a.tar.xz 10371708 BLAKE2B 0821600576564bbbd5b49ac0a268502e8ab77fc11d2a37c00d1ca75097c9385c340e8aceb14633aee759a608740cd02b6eba6892cb607f464703dba7dfcd3312 SHA512 bd491a71c63679977e09cbc3aef6035022299c4330b7799a879029d4c9d3ba9fed91e8bacc0aab190035fa288173e1a056dadec001b515bb3e47e77f9ece6002
diff --git a/media-fonts/mplus-outline-fonts/mplus-outline-fonts-0_pre063_p1.ebuild b/media-fonts/mplus-outline-fonts/mplus-outline-fonts-0_pre063_p1.ebuild
new file mode 100644 (file)
index 0000000..b9b0d47
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit font
+
+MY_P="mplus-TESTFLIGHT-${PV:5:3}a"
+
+DESCRIPTION="M+ Japanese outline fonts"
+HOMEPAGE="http://mplus-fonts.osdn.jp/ http://ossipedia.ipa.go.jp/ipafont/"
+SRC_URI="mirror://sourceforge.jp/mplus-fonts/62344/${MY_P}.tar.xz"
+
+LICENSE="mplus-fonts ipafont? ( IPAfont )"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~x86 ~ppc-macos ~x86-macos"
+IUSE="ipafont"
+RESTRICT="binchecks strip"
+
+DEPEND="ipafont? (
+               media-gfx/fontforge
+               media-fonts/ja-ipafonts
+       )"
+RDEPEND=""
+S="${WORKDIR}/${MY_P}"
+
+FONT_SUFFIX="ttf"
+FONT_S="${S}"
+DOCS="README_J README_E"
+
+IPAFONT_DIR="${EPREFIX}/usr/share/fonts/ja-ipafonts"
+
+src_prepare() {
+       if use ipafont; then
+               cp -p "${IPAFONT_DIR}"/ipag.ttf "${S}" || die
+       fi
+       default
+}
+
+src_compile() {
+       if use ipafont; then
+               fontforge -script m++ipa.pe || die
+               rm -f ipag.ttf
+       fi
+}