summaryrefslogtreecommitdiff
blob: 653e384f3a919e21f253092e97aaf15c49e6b4a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2004 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-r1.ebuild,v 1.1 2004/05/15 10:34:58 usata Exp $

IUSE="X"

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="~ia64 ~x86 ~alpha ~sparc ~ppc ~hppa ~amd64 ~mips"

DEPEND="virtual/glibc
	X? ( virtual/x11 )"

S=${WORKDIR}/${PN}-${PV:0:8}
FONTPATH="/usr/share/fonts/${PN}"

src_install () {

	insinto ${FONTPATH}
	doins kochi-gothic-subst.ttf
	doins kochi-mincho-subst.ttf
	dosym kochi-gothic-subst.ttf ${FONTPATH}/kochi-gothic.ttf
	dosym kochi-mincho-subst.ttf ${FONTPATH}/kochi-mincho.ttf
	dodir /usr/X11R6/lib/X11/fonts/truetype
	for f in ${FONTPATH}/*.ttf ; do
		dosym $f /usr/X11R6/lib/X11/fonts/truetype
	done
	mkfontscale ${D}${FONTPATH}
	newins ${D}${FONTPATH}/fonts.scale fonts.dir
	if [ -x /usr/bin/fc-cache ] ; then
		/usr/bin/fc-cache -f ${D}${FONTPATH}
	fi

	dodoc README.ja COPYING docs/README
	cd docs
	for d in kappa20 k14goth ayu20gothic wadalab shinonome* naga10; do
		docinto $d
		dodoc $d/*
	done
}