summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2017-07-08 14:17:43 -0400
committerMike Gilbert <floppym@gentoo.org>2017-07-08 14:18:03 -0400
commit761ccbed58bd2d690668df833423df4aec9bbbc5 (patch)
tree86e7f8421aee28ce8685703189188416b5740c20 /media-fonts/unifont
parentmedia-fonts/unifont: remove old (diff)
downloadgentoo-761ccbed58bd2d690668df833423df4aec9bbbc5.tar.gz
gentoo-761ccbed58bd2d690668df833423df4aec9bbbc5.tar.bz2
gentoo-761ccbed58bd2d690668df833423df4aec9bbbc5.zip
media-fonts/unifont: bump to 10.0.4
Package-Manager: Portage-2.3.6_p9, Repoman-2.3.2_p77
Diffstat (limited to 'media-fonts/unifont')
-rw-r--r--media-fonts/unifont/Manifest1
-rw-r--r--media-fonts/unifont/unifont-10.0.04.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/media-fonts/unifont/Manifest b/media-fonts/unifont/Manifest
index 652fc076857c..16bec4c9b138 100644
--- a/media-fonts/unifont/Manifest
+++ b/media-fonts/unifont/Manifest
@@ -1 +1,2 @@
+DIST unifont-10.0.04.tar.gz 15651848 SHA256 17c89ebdb329f0ab8181dc020aeafe1fb23047fa8c37f1d625eb6782733a1794 SHA512 0f9bb622e469ed340cc5ff465f6922b32eed2115014cad3ff445e8b17cedbf7c4c7f0025825e14ec4d046d9a28edb6a90eb9d9e402c38ed22b10303141f473b9 WHIRLPOOL 4f6bcdc07e6c2f51f20b64e50e06b47bbf9165195b603e7e4c4626726206ab824b4ee04c07f1ca87f07510ad2572078a634a52f7e79affa6fd305e49783af8e8
DIST unifont-9.0.06.tar.gz 14785468 SHA256 07c51d4c74d0fe1056b73caa0d692f76a257b1a69f60f7d58acf5e14bbca7e79 SHA512 767dc107d9a33008116b6939facbf31db6c7942acad257ad52a1a249f04b6215b41da928ef00e8308c2cc19924257cb0219d4eddd2b99502621ebd82e8673988 WHIRLPOOL ff50341164dd9aa175572bc6237e6dfe82a5a08b9f9eaf462fd3093cebd160085b0104489fc40634b69eba1c01e776362dd886e6f589b5718ecb74301249d358
diff --git a/media-fonts/unifont/unifont-10.0.04.ebuild b/media-fonts/unifont/unifont-10.0.04.ebuild
new file mode 100644
index 000000000000..73cdd4ba54e9
--- /dev/null
+++ b/media-fonts/unifont/unifont-10.0.04.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit font toolchain-funcs xdg-utils
+
+DESCRIPTION="GNU Unifont - a Pan-Unicode X11 bitmap iso10646 font"
+HOMEPAGE="http://unifoundry.com/"
+SRC_URI="mirror://gnu/${PN}/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="fontforge utils"
+
+DEPEND="
+ fontforge? (
+ app-text/bdf2psf
+ dev-lang/perl
+ dev-perl/GD[png(-)]
+ media-gfx/fontforge
+ x11-apps/bdftopcf
+ )
+"
+RDEPEND="
+ utils? (
+ dev-lang/perl
+ dev-perl/GD[png(-)]
+ )
+"
+
+src_prepare() {
+ sed -i -e 's/install -s/install/' src/Makefile || die
+ default
+}
+
+src_compile() {
+ if use fontforge || use utils; then
+ tc-export CC
+ xdg_environment_reset
+ makeargs=(
+ CFLAGS="${CFLAGS}"
+ BUILDFONT=$(usex fontforge 1 '')
+ )
+ emake -j1 "${makeargs[@]}"
+ fi
+}
+
+src_install() {
+ makeargs+=(
+ DESTDIR="${ED%/}"
+ PCFDEST="${ED%/}${FONTDIR}"
+ TTFDEST="${ED%/}${FONTDIR}"
+ USRDIR=usr
+ )
+ use utils || makeargs+=( -C font )
+ emake -j1 "${makeargs[@]}" install
+ font_xfont_config
+ font_fontconfig
+}