summaryrefslogtreecommitdiff
blob: 7ee824937e1fc48512a0887ca89547ade3a2236b (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/vflib/vflib-2.25.6-r1.ebuild,v 1.7 2005/05/16 04:12:19 usata Exp $

inherit toolchain-funcs eutils

IUSE=""

MY_PN="VFlib2"

DESCRIPTION="Japanese Vector Font library"
HOMEPAGE="http://typehack.aial.hiroshima-u.ac.jp/VFlib/"
SRC_URI="ftp://TypeHack.aial.hiroshima-u.ac.jp/pub/TypeHack/${MY_PN}-${PV}.tar.gz"

LICENSE="LGPL-2 GPL-2"
SLOT="2"
KEYWORDS="x86 alpha ppc sparc"

DEPEND="=media-libs/freetype-1*
	virtual/x11"
RDEPEND="${DEPEND}
	media-fonts/kochi-substitute"

S=${WORKDIR}/${MY_PN}-${PV}

src_unpack () {
	unpack ${A}
	epatch ${FILESDIR}/${PF}-gentoo.diff
	[ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "3" ] \
		&& epatch ${FILESDIR}/${P}-gcc3.diff
}

src_compile () {
	econf --with-freetype \
		--with-freetype-includedir=/usr/include/freetype \
		--with-freetype-libdir=/usr/lib || die

	emake CC="$(tc-getCC)" || die
}

src_install () {
	einstall runtimedir=${D}/usr/share/VFlib/${PV} || die

	dodir /usr/share/VFlib/${PV}
	cp -R jTeX ${D}/usr/share/VFlib/${PV}

	dodoc CHANGES COPYING* DISTRIB.txt INSTALL README*
}