summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Kiang <chocopuff298@gmail.com>2017-08-04 01:22:20 +0800
committerMike Gilbert <floppym@gentoo.org>2017-08-04 12:17:39 -0400
commite2f30bb19c1af3311cde8cfa30448c506aa6c791 (patch)
tree4140ff97c76be560756e9a29c9f0c4497d2abb94 /media-fonts/unifont
parentnet-analyzer/nagios-check_rbl: Add build fix for Perl 5.26, bug 625320 (diff)
downloadgentoo-e2f30bb19c1af3311cde8cfa30448c506aa6c791.tar.gz
gentoo-e2f30bb19c1af3311cde8cfa30448c506aa6c791.tar.bz2
gentoo-e2f30bb19c1af3311cde8cfa30448c506aa6c791.zip
media-fonts/unifont: version bump to 10.0.05
Closes: https://github.com/gentoo/gentoo/pull/5285
Diffstat (limited to 'media-fonts/unifont')
-rw-r--r--media-fonts/unifont/Manifest1
-rw-r--r--media-fonts/unifont/unifont-10.0.05.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/media-fonts/unifont/Manifest b/media-fonts/unifont/Manifest
index 16bec4c9b138..74f2ccc3ffb8 100644
--- a/media-fonts/unifont/Manifest
+++ b/media-fonts/unifont/Manifest
@@ -1,2 +1,3 @@
DIST unifont-10.0.04.tar.gz 15651848 SHA256 17c89ebdb329f0ab8181dc020aeafe1fb23047fa8c37f1d625eb6782733a1794 SHA512 0f9bb622e469ed340cc5ff465f6922b32eed2115014cad3ff445e8b17cedbf7c4c7f0025825e14ec4d046d9a28edb6a90eb9d9e402c38ed22b10303141f473b9 WHIRLPOOL 4f6bcdc07e6c2f51f20b64e50e06b47bbf9165195b603e7e4c4626726206ab824b4ee04c07f1ca87f07510ad2572078a634a52f7e79affa6fd305e49783af8e8
+DIST unifont-10.0.05.tar.gz 15645240 SHA256 8b85367401729bf22217c44d914dee08770665ff01b5faccb7760a2a06934a1f SHA512 fa9ee669ecebf8ae86d4b972e66997fa8455ee37c0e95b3528394e7e10046fc0083950fca2fe84b265ae6066bbc9ed02dde1d7795f2fa5f34bdf8ffa47ecc042 WHIRLPOOL 9e613417737876b16b6921b3617147691b34db0c1cadf6cf4a7a2d21f9f344d3f690d0bb45613601daa177b3f962203532b9f090a2346f36c6660a10753a1a23
DIST unifont-9.0.06.tar.gz 14785468 SHA256 07c51d4c74d0fe1056b73caa0d692f76a257b1a69f60f7d58acf5e14bbca7e79 SHA512 767dc107d9a33008116b6939facbf31db6c7942acad257ad52a1a249f04b6215b41da928ef00e8308c2cc19924257cb0219d4eddd2b99502621ebd82e8673988 WHIRLPOOL ff50341164dd9aa175572bc6237e6dfe82a5a08b9f9eaf462fd3093cebd160085b0104489fc40634b69eba1c01e776362dd886e6f589b5718ecb74301249d358
diff --git a/media-fonts/unifont/unifont-10.0.05.ebuild b/media-fonts/unifont/unifont-10.0.05.ebuild
new file mode 100644
index 000000000000..73cdd4ba54e9
--- /dev/null
+++ b/media-fonts/unifont/unifont-10.0.05.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
+}