summaryrefslogtreecommitdiff
blob: d527c8f68508b41da4fe81c471e9bc245589a13e (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# 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.2 2003/08/13 13:38:50 usata Exp $

inherit 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.1
	<media-libs/freetype-2
	virtual/x11"
RDEPEND="${DEPEND}
	media-fonts/kochi-substitute"

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

src_unpack () {
	unpack ${A}
	epatch ${FILESDIR}/${PF}-gentoo.diff
}

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

	emake || 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*
}