summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYamakura Makoto <yakina@gentoo.org>2003-06-27 13:31:26 +0000
committerYamakura Makoto <yakina@gentoo.org>2003-06-27 13:31:26 +0000
commitc6ccb70e198c667b169d31d2805cbe7cd57278ba (patch)
treed101a4f982af05e97180d2b50c7677493dd76831 /media-fonts/kochi-substitute
parentInitial import (diff)
downloadgentoo-2-c6ccb70e198c667b169d31d2805cbe7cd57278ba.tar.gz
gentoo-2-c6ccb70e198c667b169d31d2805cbe7cd57278ba.tar.bz2
gentoo-2-c6ccb70e198c667b169d31d2805cbe7cd57278ba.zip
Initial import
Diffstat (limited to 'media-fonts/kochi-substitute')
-rw-r--r--media-fonts/kochi-substitute/ChangeLog11
-rw-r--r--media-fonts/kochi-substitute/Manifest5
-rw-r--r--media-fonts/kochi-substitute/files/digest-kochi-substitute-200306261
-rw-r--r--media-fonts/kochi-substitute/kochi-substitute-20030626.ebuild67
4 files changed, 81 insertions, 3 deletions
diff --git a/media-fonts/kochi-substitute/ChangeLog b/media-fonts/kochi-substitute/ChangeLog
new file mode 100644
index 000000000000..0ee89fc6c58e
--- /dev/null
+++ b/media-fonts/kochi-substitute/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-fonts/kochi-fonts
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-fonts/kochi-substitute/ChangeLog,v 1.1 2003/06/27 13:31:19 yakina Exp $
+
+*kochi-substitute-20030626 (27 June 2003)
+
+ 27 Jun 2003; YAMAKURA Makoto <yakina@gentoo.org> kochi-substitute-20030626.ebuild,
+ files/digest-kochi-substitute-20030626, ChangeLog:
+
+ Initial import. Ebuild submitted by Mamoru KOMACHI <usata@sodan.ecc.u-tokyo.ac.jp>
+ and desperado <desperado@s17.xrea.com> at GentooJP.
diff --git a/media-fonts/kochi-substitute/Manifest b/media-fonts/kochi-substitute/Manifest
index d121d4a78fa4..92755dd7eb92 100644
--- a/media-fonts/kochi-substitute/Manifest
+++ b/media-fonts/kochi-substitute/Manifest
@@ -1,4 +1,3 @@
-MD5 c956845c2bf9f4b3f626f3a200aaa198 kochi-substitute-20030626.ebuild 1637
-MD5 0826d0424d27895e3096ed737f1fecfc ChangeLog 537
+MD5 a17c036b5ca55610ac2ac376f4ae2460 kochi-substitute-20030626.ebuild 1761
+MD5 eb3467d8d5dde5a244e19adc7d274b3f ChangeLog 554
MD5 57c7d4d4848ed98955f01411ef5625c8 files/digest-kochi-substitute-20030626 79
-MD5 57c7d4d4848ed98955f01411ef5625c8 files/digest-kochi-fonts-20030626 79
diff --git a/media-fonts/kochi-substitute/files/digest-kochi-substitute-20030626 b/media-fonts/kochi-substitute/files/digest-kochi-substitute-20030626
new file mode 100644
index 000000000000..7ad46912de6f
--- /dev/null
+++ b/media-fonts/kochi-substitute/files/digest-kochi-substitute-20030626
@@ -0,0 +1 @@
+MD5 1f50ec4245b0d86c39eed90a5e2a1ca7 kochi-substitute-20030626.tar.bz2 8017626
diff --git a/media-fonts/kochi-substitute/kochi-substitute-20030626.ebuild b/media-fonts/kochi-substitute/kochi-substitute-20030626.ebuild
new file mode 100644
index 000000000000..a8db4c680b11
--- /dev/null
+++ b/media-fonts/kochi-substitute/kochi-substitute-20030626.ebuild
@@ -0,0 +1,67 @@
+# 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-20030626.ebuild,v 1.1 2003/06/27 13:31:19 yakina 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="http://downloads.sourceforge.jp/efont/4812/${P}.tar.bz2"
+
+# naga10 has free-noncomm license
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="x86 alpha sparc ppc"
+
+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
+}
+
+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
+}