initial submission of ebuild
authorStuart Bouyer <stubear@gentoo.org>
Wed, 6 Nov 2002 14:59:23 +0000 (14:59 +0000)
committerStuart Bouyer <stubear@gentoo.org>
Wed, 6 Nov 2002 14:59:23 +0000 (14:59 +0000)
x11-misc/twmoefonts/ChangeLog [new file with mode: 0644]
x11-misc/twmoefonts/files/TW-fonts.scale [new file with mode: 0644]
x11-misc/twmoefonts/files/digest-twmoefonts-0.1 [new file with mode: 0644]
x11-misc/twmoefonts/twmoefonts-0.1.ebuild [new file with mode: 0644]

diff --git a/x11-misc/twmoefonts/ChangeLog b/x11-misc/twmoefonts/ChangeLog
new file mode 100644 (file)
index 0000000..57e24b5
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for x11-misc/moefonts
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/twmoefonts/ChangeLog,v 1.1 2002/11/06 14:59:23 stubear Exp $
+
+*moefonts-0.1 (12 Oct 2002)
+
+  12 Oct 2002; Lin Zhemin <ljm@ljm.idv.tw> moefonts-0.1.ebuild,
+  files/CN-fonts.scale, files/TW-fonts.scale: copied from arphicsfonts.
+  First ebuild added, modified from arphicfonts-0.1-r1.ebuild.
diff --git a/x11-misc/twmoefonts/files/TW-fonts.scale b/x11-misc/twmoefonts/files/TW-fonts.scale
new file mode 100644 (file)
index 0000000..8d86562
--- /dev/null
@@ -0,0 +1,9 @@
+8
+moe_kai.ttf -twmoe-kai-medium-r-normal--0-0-0-0-c-0-ascii-0
+moe_kai.ttf -twmoe-kai-medium-r-normal--0-0-0-0-c-0-big5-0
+moe_kai.ttf -twmoe-kai-medium-r-normal--0-0-0-0-c-0-big5.eten-0
+moe_kai.ttf -twmoe-kai-medium-r-normal--0-0-0-0-c-0-big5.cp950-0
+moe_sung.ttf -twmoe-sung-medium-r-normal--0-0-0-0-c-0-ascii-0
+moe_sung.ttf -twmoe-sung-medium-r-normal--0-0-0-0-c-0-big5-0
+moe_sung.ttf -twmoe-sung-medium-r-normal--0-0-0-0-c-0-big5.eten-0
+moe_sung.ttf -twmoe-sung-medium-r-normal--0-0-0-0-c-0-big5.cp950-0
diff --git a/x11-misc/twmoefonts/files/digest-twmoefonts-0.1 b/x11-misc/twmoefonts/files/digest-twmoefonts-0.1
new file mode 100644 (file)
index 0000000..ff3d3a4
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 bcbd6cf83b87153f9a725243afe210c7 moe_kai.ttf 9194491
+MD5 6bf81e29d64db09d94bb1f03c041d9b2 moe_sung.ttf 8647174
diff --git a/x11-misc/twmoefonts/twmoefonts-0.1.ebuild b/x11-misc/twmoefonts/twmoefonts-0.1.ebuild
new file mode 100644 (file)
index 0000000..4ecf784
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/twmoefonts/twmoefonts-0.1.ebuild,v 1.1 2002/11/06 14:59:23 stubear Exp $
+
+IUSE=""
+DESCRIPTION="Standard tranditional Chinese fonts made by Minister of Education (MOE), Republic of China."
+SRC_URI="ftp://ftp.ncu.edu.tw/FreeBSD/distfiles/zh-moettf/moe_kai.ttf
+       ftp://ftp.ncu.edu.tw/FreeBSD/distfiles/zh-moettf/moe_sung.ttf"
+HOMEPAGE=""    # Unable to find homepage
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~sparc64"
+DEPEND="x11-misc/ttmkfdir"
+RDEPEND="virtual/glibc"
+
+src_unpack() {
+       mkdir ${WORKDIR}/${P}
+       cp ${DISTDIR}/moe_kai.ttf ${WORKDIR}/${P}/moe_kai.ttf
+       cp ${DISTDIR}/moe_sung.ttf ${WORKDIR}/${P}/moe_sung.ttf
+}
+
+src_install() {
+       insopts -m0644
+       insinto /usr/share/fonts/ttf/zh_TW
+       doins *.ttf
+       if test -r /usr/share/fonts/ttf/zh_TW/fonts.scale; then
+           ORIGC=$(head -1 /usr/share/fonts/ttf/zh_TW/fonts.scale)
+               INC=$(head -1 ${FILESDIR}/TW-fonts.scale)
+               echo ${ORIGC}+${INC} | bc > tmp
+               tail +2 /usr/share/fonts/ttf/zh_TW/fonts.scale >> tmp
+               tail +2 ${FILESDIR}/TW-fonts.scale >> tmp
+               newins tmp fonts.scale
+               rm -f tmp
+       else
+               newins ${FILESDIR}/TW-fonts.scale fonts.scale   
+       fi
+}
+
+pkg_postinst() {
+       echo ">>> Making big5 font dirs..."
+       cd /usr/share/fonts/ttf/zh_TW
+       echo ">>> Creating fonts.dir info"
+       mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings/large \
+       -e /usr/X11R6/lib/X11/fonts/encodings
+       echo ">>> Make sure X knows about these font directories!"
+       if (  `grep -e "^.*FontPath.*\"/usr/share/fonts/ttf/zh_TW/\"" /etc/X11/XF86Config -q` ); then
+               echo "Font path for big5 fonts is listed in /etc/X11/XF86Config."
+       else
+               echo ">>> You must add /usr/share/fonts/ttf/zh_TW to your font path"
+               echo ">>> to be able to use your new Big5 fonts."
+       fi
+
+       echo ">>> Restart font server for changes to take effect."
+}