summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2014-05-01 05:28:43 +0000
committerNaohiro Aota <naota@gentoo.org>2014-05-01 05:28:43 +0000
commitbc650ba02952f2f4bbdd26284543050a9e65bc9e (patch)
tree3697767abc827e3321069c03143e682ded74c36d /media-fonts
parentVersion bump. (diff)
downloadgentoo-2-bc650ba02952f2f4bbdd26284543050a9e65bc9e.tar.gz
gentoo-2-bc650ba02952f2f4bbdd26284543050a9e65bc9e.tar.bz2
gentoo-2-bc650ba02952f2f4bbdd26284543050a9e65bc9e.zip
Patch fonts to render 0uFE4F properly
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8551514)
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/arphicfonts/ChangeLog8
-rw-r--r--media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild79
-rw-r--r--media-fonts/arphicfonts/files/arphicfonts-0.2.20080216.1.pe8
3 files changed, 94 insertions, 1 deletions
diff --git a/media-fonts/arphicfonts/ChangeLog b/media-fonts/arphicfonts/ChangeLog
index 925d952c858f..89e84f105a4c 100644
--- a/media-fonts/arphicfonts/ChangeLog
+++ b/media-fonts/arphicfonts/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-fonts/arphicfonts
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/ChangeLog,v 1.56 2014/01/28 06:06:27 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/ChangeLog,v 1.57 2014/05/01 05:28:43 naota Exp $
+
+*arphicfonts-0.2.20080216.1-r2 (01 May 2014)
+
+ 01 May 2014; Naohiro Aota <naota@gentoo.org>
+ +arphicfonts-0.2.20080216.1-r2.ebuild, +files/arphicfonts-0.2.20080216.1.pe:
+ Patch fonts to render 0uFE4F properly
*arphicfonts-0.2.20080216.1-r1 (28 Jan 2014)
diff --git a/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild b/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild
new file mode 100644
index 000000000000..360a2b5baf88
--- /dev/null
+++ b/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/arphicfonts-0.2.20080216.1-r2.ebuild,v 1.1 2014/05/01 05:28:43 naota Exp $
+
+EAPI=5
+inherit font eutils
+
+DESCRIPTION="Chinese TrueType Arphic Fonts"
+HOMEPAGE="http://www.arphic.com.tw/
+ http://www.freedesktop.org/wiki/Software/CJKUnifonts"
+SRC_URI="mirror://gnu/non-gnu/chinese-fonts-truetype/gkai00mp.ttf.gz
+ mirror://gnu/non-gnu/chinese-fonts-truetype/bkai00mp.ttf.gz
+ mirror://gnu/non-gnu/chinese-fonts-truetype/bsmi00lp.ttf.gz
+ mirror://gnu/non-gnu/chinese-fonts-truetype/gbsn00lp.ttf.gz
+ mirror://ubuntu/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_${PV}.orig.tar.gz
+ mirror://ubuntu/pool/main/t/ttf-arphic-ukai/ttf-arphic-ukai_${PV}.orig.tar.gz"
+
+LICENSE="Arphic"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x86-macos"
+IUSE=""
+
+DEPEND="media-gfx/fontforge"
+
+S="${WORKDIR}"
+
+#No binaries, only fonts
+RESTRICT="strip binchecks"
+
+FONT_S="${S}"
+FONT_SUFFIX="ttc ttf"
+FONT_CONF=( "25-ttf-arphic-ukai-render.conf"
+ "35-ttf-arphic-ukai-aliases.conf"
+ "41-ttf-arphic-ukai.conf"
+ "75-ttf-arphic-ukai-select.conf"
+ "90-ttf-arphic-ukai-embolden.conf"
+ "25-ttf-arphic-uming-bitmaps.conf"
+ "25-ttf-arphic-uming-render.conf"
+ "35-ttf-arphic-uming-aliases.conf"
+ "41-ttf-arphic-uming.conf"
+ "64-ttf-arphic-uming.conf"
+ "90-ttf-arphic-uming-embolden.conf" )
+
+src_unpack() {
+ #All of this is to ensure that we don't overwrite one font's docs
+ #with another's.
+
+ unpack {gk,bk}ai00mp.ttf.gz {bsmi,gbsn}00lp.ttf.gz
+ mkdir "${WORKDIR}"/{uming,ukai}
+
+ cd "${WORKDIR}"/uming
+ unpack ttf-arphic-uming_${PV}.orig.tar.gz
+
+ cd "${WORKDIR}"/ukai
+ unpack ttf-arphic-ukai_${PV}.orig.tar.gz
+}
+
+src_prepare() {
+ cd "${WORKDIR}"
+ find "${WORKDIR}" -mindepth 2 -maxdepth 2 -name '*.ttc' -exec mv {} . \;
+ find "${WORKDIR}" -name '*.conf' -exec mv "{}" . \;
+ epatch "${FILESDIR}"/${P}-fontconfig.patch
+ fontforge -script "${FILESDIR}"/${P}.pe b*.ttf || die
+}
+
+src_install() {
+ local myfont doc
+ for myfont in ukai uming
+ do
+ cd "${WORKDIR}"/${myfont}
+ docinto ${myfont}
+ for doc in FONTLOG KNOWN_ISSUES TODO README README.Bitmap NEWS CONTRIBUTERS
+ do
+ [ -f ${doc} ] && dodoc ${doc}
+ done
+ done
+ cd "${S}"
+ font_src_install
+}
diff --git a/media-fonts/arphicfonts/files/arphicfonts-0.2.20080216.1.pe b/media-fonts/arphicfonts/files/arphicfonts-0.2.20080216.1.pe
new file mode 100644
index 000000000000..49265a7a33be
--- /dev/null
+++ b/media-fonts/arphicfonts/files/arphicfonts-0.2.20080216.1.pe
@@ -0,0 +1,8 @@
+i=1
+while (i < $argc)
+ Open($argv[i])
+ Select(0ufe4f); Move(0, -760)
+ Generate($argv[i])
+ Close()
+ i += 1
+endloop