blob: 1de57fdd92d1a54a7dc31c8ac1cb2527ad4438eb (
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
46
47
48
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-fonts/zh-kcfonts/zh-kcfonts-1.05-r2.ebuild,v 1.6 2007/03/12 19:41:58 armin76 Exp $
inherit toolchain-funcs eutils
KCFONTS="${P}.tgz"
MY_PN="kcfonts"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Kuo Chauo Chinese Fonts collection in BIG5 encoding"
SRC_URI="ftp://freebsd.sinica.edu.tw/pub/distfiles/${MY_P}.tar.gz
ftp://wm28.csie.ncu.edu.tw/pub/distfiles/${MY_P}.tar.gz
mirror://gentoo/${MY_P}-freebsd-aa_ad.patch.gz"
HOMEPAGE="http://freebsd.sinica.edu.tw/"
# no real homepage exists, but this was written by Taiwanese FreeBSD devs
LICENSE="freedist"
SLOT="0"
KEYWORDS="~alpha ~amd64 arm ia64 ~ppc s390 sh sparc x86 ~x86-fbsd"
IUSE=""
DEPEND="|| ( ( x11-apps/mkfontdir x11-apps/bdftopcf ) virtual/x11 )"
RDEPEND=""
S="${WORKDIR}"
FONTPATH="/usr/share/fonts/${PN}"
# Only installs fonts
RESTRICT="strip binchecks"
src_unpack() {
unpack ${MY_P}.tar.gz
EPATCH_OPTS="-p0 -d ${S}" epatch "${DISTDIR}/${MY_P}-freebsd-aa_ad.patch.gz"
EPATCH_OPTS="-p1 -d ${S}" epatch "${FILESDIR}/${MY_P}-code-fixups.patch"
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
insinto ${FONTPATH}
doins *.pcf.gz || die
sort kc_fonts.alias | uniq > "${T}/fonts.alias"
doins "${T}/fonts.alias" || die
mkfontdir "${D}/${FONTPATH}"
dodoc 00README Xdefaults.*
}
|