summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-05-15 09:31:12 +0000
committerMamoru Komachi <usata@gentoo.org>2004-05-15 09:31:12 +0000
commit38db38b88512121a2493678d465649af5ec894bd (patch)
treef3e2a108a92658eacdf9f52709fd42b2901a49e0 /media-fonts/arphicfonts
parentFixed BUG #51034. Missing /usr/lib32. (Manifest recommit) (diff)
downloadgentoo-2-38db38b88512121a2493678d465649af5ec894bd.tar.gz
gentoo-2-38db38b88512121a2493678d465649af5ec894bd.tar.bz2
gentoo-2-38db38b88512121a2493678d465649af5ec894bd.zip
Tidy up ebuild. Thanks to Thomas L. Kjeldsen <tlk@mayi.dk>, closing bug #44839
Diffstat (limited to 'media-fonts/arphicfonts')
-rw-r--r--media-fonts/arphicfonts/ChangeLog6
-rw-r--r--media-fonts/arphicfonts/arphicfonts-0.1-r1.ebuild38
-rw-r--r--media-fonts/arphicfonts/arphicfonts-0.1.ebuild48
-rw-r--r--media-fonts/arphicfonts/files/digest-arphicfonts-0.14
-rw-r--r--media-fonts/arphicfonts/metadata.xml1
5 files changed, 25 insertions, 72 deletions
diff --git a/media-fonts/arphicfonts/ChangeLog b/media-fonts/arphicfonts/ChangeLog
index b9d3450864cf..c2ce9cc91db1 100644
--- a/media-fonts/arphicfonts/ChangeLog
+++ b/media-fonts/arphicfonts/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-fonts/arphicfonts
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/ChangeLog,v 1.7 2004/05/14 01:55:16 geoman Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/ChangeLog,v 1.8 2004/05/15 09:31:12 usata Exp $
+
+ 15 May 2004; Mamoru KOMACHI <usata@gentoo.org> arphicfonts-0.1-r1.ebuild,
+ arphicfonts-0.1.ebuild, metadata.xml:
+ Tidy up ebuild. Thanks to Thomas L. Kjeldsen <tlk@mayi.dk>, closing bug #44839
13 May 2004; Stephen P. Becker <geoman@gentoo.org>
arphicfonts-0.1-r1.ebuild:
diff --git a/media-fonts/arphicfonts/arphicfonts-0.1-r1.ebuild b/media-fonts/arphicfonts/arphicfonts-0.1-r1.ebuild
index 014a7d2d3654..f320363ae1e3 100644
--- a/media-fonts/arphicfonts/arphicfonts-0.1-r1.ebuild
+++ b/media-fonts/arphicfonts/arphicfonts-0.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/arphicfonts-0.1-r1.ebuild,v 1.11 2004/05/14 01:55:16 geoman Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/arphicfonts-0.1-r1.ebuild,v 1.12 2004/05/15 09:31:12 usata Exp $
S=${WORKDIR}
DESCRIPTION="Arphic Fonts"
@@ -50,29 +50,29 @@ src_install() {
}
pkg_postinst() {
- echo ">>> Making big5 font dirs..."
cd /usr/share/fonts/ttf/zh_TW
- echo ">>> Creating fonts.dir info"
mkfontdir -e /usr/share/fonts/encodings/large \
- -e /usr/share/fonts/encodings
- echo ">>> Making gb2312 font dirs..."
+ -e /usr/share/fonts/encodings
cd /usr/share/fonts/ttf/zh_CN
- echo ">>> Creating fonts.dir info"
mkfontdir -e /usr/share/fonts/encodings/large \
- -e /usr/share/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."
+ -e /usr/share/fonts/encodings
+
+ if ( ! `grep -qie "FontPath.*/usr/share/fonts/ttf/zh_TW" /etc/X11/XF86Config` ); then
+ einfo "You must add /usr/share/fonts/ttf/zh_TW to the font paths in XF86Config"
fi
- if ( `grep -e "^.*[fF]ont[Pp]ath.*\"/usr/share/fonts/ttf/zh_CN\"" /etc/X11/XF86Config -q` ); then
- echo "Font path for gb2312 fonts is listed in /etc/X11/XF86Config."
- else
- echo ">>> You must add /usr/share/fonts/ttf/zh_CN to your font path"
- echo ">>> to be able to use your new gb2312 fonts."
+ if ( ! `grep -qie "FontPath.*/usr/share/fonts/ttf/zh_CN" /etc/X11/XF86Config` ); then
+ einfo "You must add /usr/share/fonts/ttf/zh_CN to the font paths in XF86Config"
fi
- echo ">>> Restart font server for changes to take effect."
+ einfo "Restart font server for changes to take effect."
+}
+
+pkg_postrm() {
+# FIXME: fonts.scale files should be cleaned up if necessary
+ einfo
+ einfo "You may need to remove the following lines from 'Section \"Files\"' in"
+ einfo "XF86Config, to unmerge this package completely:"
+ einfo "\t FontPath \"/usr/share/fonts/ttf/zh_TW\""
+ einfo "\t FontPath \"/usr/share/fonts/ttf/zh_CN\""
+ einfo
}
diff --git a/media-fonts/arphicfonts/arphicfonts-0.1.ebuild b/media-fonts/arphicfonts/arphicfonts-0.1.ebuild
deleted file mode 100644
index 212824264b3b..000000000000
--- a/media-fonts/arphicfonts/arphicfonts-0.1.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2004 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-fonts/arphicfonts/arphicfonts-0.1.ebuild,v 1.3 2004/05/14 01:55:16 geoman Exp $
-
-DESCRIPTION="Arphic Fonts"
-SRC_URI="ftp://ftp.gnu.org/non-gnu/chinese-fonts-truetype/gkai00mp.ttf.gz
- ftp://ftp.gnu.org/non-gnu/chinese-fonts-truetype/bkai00mp.ttf.gz
- ftp://ftp.gnu.org/non-gnu/chinese-fonts-truetype/bsmi00lp.ttf.gz
- ftp://ftp.gnu.org/non-gnu/chinese-fonts-truetype/gbsn00lp.ttf.gz"
-HOMEPAGE="http://www.arphic.com.tw/"
-LICENSE="Arphic"
-SLOT="0"
-KEYWORDS="x86 sparc ppc"
-
-DEPEND="virtual/x11
- x11-misc/ttmkfdir"
-
-src_unpack() {
- mkdir ${WORKDIR}/${P}
- gunzip -c ${DISTDIR}/gkai00mp.ttf.gz > ${WORKDIR}/${P}/gkai00mp.ttf
- gunzip -c ${DISTDIR}/bkai00mp.ttf.gz > ${WORKDIR}/${P}/bkai00mp.ttf
- gunzip -c ${DISTDIR}/bsmi00lp.ttf.gz > ${WORKDIR}/${P}/bsmi00lp.ttf
- gunzip -c ${DISTDIR}/gbsn00lp.ttf.gz > ${WORKDIR}/${P}/gbsn00lp.ttf
-}
-
-src_compile() {
- echo "Truetype fonts don't need to be compiled! ;)"
-}
-
-src_install() {
- cd ${WORKDIR}/${P}
- insopts -m0644
- insinto /usr/share/fonts/truetype
- doins *.ttf
-
-# 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
-# get saved as ${DISTDIR}/README which doesn't seem like
-# a really good idea.
-# dodoc LICENSE README
-}
-
-pkg_postinst() {
- echo ">>> Making font dirs..."
- cd /usr/share/fonts/truetype/
- /usr/X11R6/bin/ttmkfdir > fonts.scale
- mkfontdir
-}
diff --git a/media-fonts/arphicfonts/files/digest-arphicfonts-0.1 b/media-fonts/arphicfonts/files/digest-arphicfonts-0.1
deleted file mode 100644
index 8cb6db87971d..000000000000
--- a/media-fonts/arphicfonts/files/digest-arphicfonts-0.1
+++ /dev/null
@@ -1,4 +0,0 @@
-MD5 5ee11417a8b42d08a33421dd6c64bed2 gkai00mp.ttf.gz 2698942
-MD5 9abc1efeaf08df5554629b10eb79b1b2 bkai00mp.ttf.gz 6013768
-MD5 42b13b73c5572d886824ee249d1ad500 bsmi00lp.ttf.gz 5653466
-MD5 757ca4959ed2325d49a64730766140ee gbsn00lp.ttf.gz 2345803
diff --git a/media-fonts/arphicfonts/metadata.xml b/media-fonts/arphicfonts/metadata.xml
index 2d5852c16c60..6e63c30f1bb2 100644
--- a/media-fonts/arphicfonts/metadata.xml
+++ b/media-fonts/arphicfonts/metadata.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+<herd>fonts</herd>
<herd>cjk</herd>
</pkgmetadata>