summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-08-09 06:01:44 +0000
committerMamoru Komachi <usata@gentoo.org>2003-08-09 06:01:44 +0000
commit956a5d5d8264645165c4c8bc206d8e9acf870595 (patch)
treeb28a1af6f860490bce15c400716da3878233203d /media-fonts
parentnew version, changed SRC_URI to use sourceforge.jp mirror (diff)
downloadhistorical-956a5d5d8264645165c4c8bc206d8e9acf870595.tar.gz
historical-956a5d5d8264645165c4c8bc206d8e9acf870595.tar.bz2
historical-956a5d5d8264645165c4c8bc206d8e9acf870595.zip
new version, changed SRC_URI to use sourceforge.jp mirror
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/kochi-substitute/Manifest4
-rw-r--r--media-fonts/kochi-substitute/files/digest-kochi-substitute-200308091
-rw-r--r--media-fonts/kochi-substitute/kochi-substitute-20030809.ebuild72
3 files changed, 75 insertions, 2 deletions
diff --git a/media-fonts/kochi-substitute/Manifest b/media-fonts/kochi-substitute/Manifest
index 51dc73f625c2..67f5ff21ecf2 100644
--- a/media-fonts/kochi-substitute/Manifest
+++ b/media-fonts/kochi-substitute/Manifest
@@ -1,8 +1,8 @@
-MD5 f2d4f3a67271bfa0d5aba6e86334295d ChangeLog 863
+MD5 013a57a74c51e7ba86bfb48b2d74558b ChangeLog 1039
MD5 4a2696925170ed4f62e00ec542972076 kochi-substitute-20030626.ebuild 1761
MD5 45f3d5c3655449e76007530ae69598c3 kochi-substitute-20030628.ebuild 1893
MD5 e92a48548554c80cf90e18df17ff6a82 metadata.xml 156
-MD5 0ede86d7c1128ec087c64fdd4e925f58 kochi-substitute-20030809.ebuild 1891
+MD5 cbb66f63e8aad14554aa29fab0f641c8 kochi-substitute-20030809.ebuild 1890
MD5 57c7d4d4848ed98955f01411ef5625c8 files/digest-kochi-substitute-20030626 79
MD5 960946cb673590d966d212aefc0308de files/digest-kochi-substitute-20030628 79
MD5 13dfd0e0ce07b13f410914df34b4b45f files/digest-kochi-substitute-20030809 79
diff --git a/media-fonts/kochi-substitute/files/digest-kochi-substitute-20030809 b/media-fonts/kochi-substitute/files/digest-kochi-substitute-20030809
new file mode 100644
index 000000000000..1f80ee0beceb
--- /dev/null
+++ b/media-fonts/kochi-substitute/files/digest-kochi-substitute-20030809
@@ -0,0 +1 @@
+MD5 c4b14e287cf2b1688c649e2274e128b3 kochi-substitute-20030809.tar.bz2 8675822
diff --git a/media-fonts/kochi-substitute/kochi-substitute-20030809.ebuild b/media-fonts/kochi-substitute/kochi-substitute-20030809.ebuild
new file mode 100644
index 000000000000..f2d6528e4ebe
--- /dev/null
+++ b/media-fonts/kochi-substitute/kochi-substitute-20030809.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/kochi-substitute/kochi-substitute-20030809.ebuild,v 1.1 2003/08/09 06:01:31 usata Exp $
+
+IUSE="X"
+
+FONT_PATH="/usr/X11R6/lib/X11/fonts/truetype"
+DESCRIPTION="Kochi Japanese TrueType fonts with Wadalab Fonts"
+HOMEPAGE="http://efont.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/efont/5411/${P}.tar.bz2"
+
+# naga10 has free-noncomm license
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~x86 ~alpha ~sparc ~ppc ~hppa ~amd64"
+
+DEPEND="virtual/glibc
+ X? ( virtual/x11 )"
+
+S=${WORKDIR}/${PN}-${PV:0:8}
+
+src_install () {
+
+ insinto ${FONT_PATH}
+ doins kochi-gothic-subst.ttf
+ doins kochi-mincho-subst.ttf
+ dosym kochi-gothic-subst.ttf ${FONT_PATH}/kochi-gothic.ttf
+ dosym kochi-mincho-subst.ttf ${FONT_PATH}/kochi-mincho.ttf
+
+ dodoc README.ja COPYING docs/README
+ cd docs
+ for d in kappa20 k14goth ayu20gothic wadalab shinonome* naga10; do
+ docinto $d
+ dodoc $d/*
+ done
+}
+
+rebuild_fontfiles() {
+
+ einfo "Refreshing fonts.scale and fonts.dir..."
+
+ cd ${FONT_PATH}
+
+ # recreate fonts.scale
+ ttmkfdir > fonts.scale \
+ || die "Unable to create fonts.scale! Please emerge ttmkfdir and try again."
+
+ # recreate fonts.dir
+ mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings
+
+ if [ -x /usr/bin/fc-cache ] ; then
+ einfo "Updating font cache..."
+ /usr/bin/fc-cache -f ${FONT_PATH}
+ fi
+}
+
+pkg_postinst() {
+
+ use X > /dev/null && rebuild_fontfiles
+
+ echo ""
+ einfo "This is a Kochi \"alternative\" font, but not kochi font itself."
+ einfo "Unfortunately, there is a possibility of copyright infringement,"
+ einfo "so the author of kochi font suspended distributing kochi font."
+ einfo "Please see http://khdd.net/kanou/fonts/stolenbitmap.en.html and"
+ einfo "${HOMEPAGE} for details."
+}
+
+pkg_postrm() {
+
+ use X > /dev/null && rebuild_fontfiles
+}