diff options
author | Stuart Bouyer <stubear@gentoo.org> | 2002-11-06 14:59:23 +0000 |
---|---|---|
committer | Stuart Bouyer <stubear@gentoo.org> | 2002-11-06 14:59:23 +0000 |
commit | c9d39585c98467e1aa00cf463303490544496a19 (patch) | |
tree | dc4a6f46392a7fc880db2b06801ee4af21051ed6 /x11-misc/twmoefonts | |
parent | Removed RDEPEND="${DEPEND}" (diff) | |
download | historical-c9d39585c98467e1aa00cf463303490544496a19.tar.gz historical-c9d39585c98467e1aa00cf463303490544496a19.tar.bz2 historical-c9d39585c98467e1aa00cf463303490544496a19.zip |
initial submission of ebuild
Diffstat (limited to 'x11-misc/twmoefonts')
-rw-r--r-- | x11-misc/twmoefonts/ChangeLog | 9 | ||||
-rw-r--r-- | x11-misc/twmoefonts/files/TW-fonts.scale | 9 | ||||
-rw-r--r-- | x11-misc/twmoefonts/files/digest-twmoefonts-0.1 | 2 | ||||
-rw-r--r-- | x11-misc/twmoefonts/twmoefonts-0.1.ebuild | 54 |
4 files changed, 74 insertions, 0 deletions
diff --git a/x11-misc/twmoefonts/ChangeLog b/x11-misc/twmoefonts/ChangeLog new file mode 100644 index 000000000000..57e24b594713 --- /dev/null +++ b/x11-misc/twmoefonts/ChangeLog @@ -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 index 000000000000..8d8656291293 --- /dev/null +++ b/x11-misc/twmoefonts/files/TW-fonts.scale @@ -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 index 000000000000..ff3d3a4e4993 --- /dev/null +++ b/x11-misc/twmoefonts/files/digest-twmoefonts-0.1 @@ -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 index 000000000000..4ecf7845a112 --- /dev/null +++ b/x11-misc/twmoefonts/twmoefonts-0.1.ebuild @@ -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." +} |