From ef0c30d09a10220e2b14fddf46b6e275ef0b3b54 Mon Sep 17 00:00:00 2001 From: Stuart Bouyer Date: Wed, 6 Nov 2002 15:45:31 +0000 Subject: slight tweak to Chinese fonts so that fonts.scale isn't overwritten --- x11-misc/arphicfonts/ChangeLog | 6 +++++- x11-misc/arphicfonts/arphicfonts-0.1-r1.ebuild | 22 +++++++++++++++++++--- x11-misc/twmoefonts/twmoefonts-0.1.ebuild | 10 ++++------ 3 files changed, 28 insertions(+), 10 deletions(-) (limited to 'x11-misc') 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 arphicfonts-0.1-r1.ebuild: + Added check for existing fonts.scale instead of blindly overwriting. + + 22 Aug 2002; Stuart Bouyer 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 diff --git a/x11-misc/twmoefonts/twmoefonts-0.1.ebuild b/x11-misc/twmoefonts/twmoefonts-0.1.ebuild index 4ecf7845a112..7eb5649843c2 100644 --- a/x11-misc/twmoefonts/twmoefonts-0.1.ebuild +++ b/x11-misc/twmoefonts/twmoefonts-0.1.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/twmoefonts/twmoefonts-0.1.ebuild,v 1.1 2002/11/06 14:59:23 stubear Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/twmoefonts/twmoefonts-0.1.ebuild,v 1.2 2002/11/06 15:45:31 stubear Exp $ IUSE="" DESCRIPTION="Standard tranditional Chinese fonts made by Minister of Education (MOE), Republic of China." @@ -24,13 +24,11 @@ src_install() { 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 + 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 -- cgit v1.2.3-65-gdbad