diff options
author | Stuart Bouyer <stubear@gentoo.org> | 2002-11-06 15:45:31 +0000 |
---|---|---|
committer | Stuart Bouyer <stubear@gentoo.org> | 2002-11-06 15:45:31 +0000 |
commit | 0a6c2f16ebe5be13afd460c0db80b8065d80f8d5 (patch) | |
tree | 769caec1704c7ed9d3a7c7b54e2e4818bd928696 /x11-misc/arphicfonts | |
parent | Removed RDEPEND=${DEPEND} (diff) | |
download | gentoo-2-0a6c2f16ebe5be13afd460c0db80b8065d80f8d5.tar.gz gentoo-2-0a6c2f16ebe5be13afd460c0db80b8065d80f8d5.tar.bz2 gentoo-2-0a6c2f16ebe5be13afd460c0db80b8065d80f8d5.zip |
slight tweak to Chinese fonts so that fonts.scale isn't overwritten
Diffstat (limited to 'x11-misc/arphicfonts')
-rw-r--r-- | x11-misc/arphicfonts/ChangeLog | 6 | ||||
-rw-r--r-- | x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild | 22 |
2 files changed, 24 insertions, 4 deletions
diff --git a/x11-misc/arphicfonts/ChangeLog b/x11-misc/arphicfonts/ChangeLog index cdfd795e457f..2309a7def838 100644 --- a/x11-misc/arphicfonts/ChangeLog +++ b/x11-misc/arphicfonts/ChangeLog @@ -1,9 +1,13 @@ # ChangeLog for x11-misc/arphicfonts # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/arphicfonts/ChangeLog,v 1.3 2002/11/06 06:27:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/arphicfonts/ChangeLog,v 1.4 2002/11/06 15:45:31 stubear Exp $ *arphicfonts-0.1 (27 June 2002) + 07 Nov 2002; Stuart Bouyer <stubear@gentoo.org> arphicfonts-0.1-r1.ebuild: + Added check for existing fonts.scale instead of blindly overwriting. + + 22 Aug 2002; Stuart Bouyer <stubear@gentoo.org> arphicfonts-0.1-r1.ebuild, files/CN-fonts.scale, files/TW-fonts.scale: diff --git a/x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild b/x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild index a3806ec3b4f0..d044dcb3c72e 100644 --- a/x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild +++ b/x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild,v 1.3 2002/10/04 21:30:01 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild,v 1.4 2002/11/06 15:45:31 stubear Exp $ DESCRIPTION="Arphic Fonts" SRC_URI="ftp://ftp.gnu.org/non-gnu/chinese-fonts-truetype/gkai00mp.ttf.gz @@ -22,10 +22,26 @@ src_install() { insopts -m0644 insinto /usr/share/fonts/ttf/zh_TW doins b*.ttf - newins ${FILESDIR}/TW-fonts.scale fonts.scale + if test -r /usr/share/fonts/ttf/zh_TW/fonts.scale; then + tail +2 /usr/share/fonts/ttf/zh_TW/fonts.scale > tmp + tail +2 ${FILESDIR}/TW-fonts.scale >> tmp + echo $(sort -u tmp | wc -l) > newfont.scale + sort -u tmp >> newfont.scale + newins newfont.scale fonts.scale + else + newins ${FILESDIR}/TW-fonts.scale fonts.scale + fi insinto /usr/share/fonts/ttf/zh_CN doins g*.ttf - newins ${FILESDIR}/CN-fonts.scale fonts.scale + if test -r /usr/share/fonts/ttf/zh_CN/fonts.scale; then + tail +2 /usr/share/fonts/ttf/zh_CN/fonts.scale > tmp + tail +2 ${FILESDIR}/CN-fonts.scale >> tmp + echo $(sort -u tmp | wc -l) > newfont.scale + sort -u tmp >> newfont.scale + newins newfont.scale fonts.scale + else + newins ${FILESDIR}/CN-fonts.scale fonts.scale + fi # These don't get downloaded because there is no simple way to # fetch them.. ie if I included the README in SRC_URI above, it would |