summaryrefslogtreecommitdiff
blob: 50e87d4649657fd32b701fd529403cae3bbaba74 (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 Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/kochi-substitute/kochi-substitute-20030809-r2.ebuild,v 1.4 2004/10/05 03:23:11 tgall 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 ppc64"

DEPEND="virtual/libc
	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 ${D}${FONTPATH}/*.ttf ; do
		dosym ${f/${D}/} /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
}