summaryrefslogtreecommitdiff
blob: a7718c2bb1e34d708ffd9cf5a743c905f0b0aa1b (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
49
50
51
52
53
54
# 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-3.6.13.ebuild,v 1.1 2004/10/23 12:28:51 usata Exp $

inherit libtool eutils

MY_P="VFlib3-${PV}"

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_P}.tar.gz"

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

DEPEND="=media-libs/freetype-1*
	media-libs/t1lib
	virtual/x11
	virtual/tetex"

S=${WORKDIR}/${MY_P}

src_compile () {
	elibtoolize
	sed -i -e "s:<varargs.h>:<stdarg.h>:" src/vfldisol.c
	if has_version '>=media-libs/t1lib-5' ; then
		sed -i -e "s:T1_Get_no_fonts:T1_GetNoFonts:" src/drv_t1.c
	fi

	econf \
		--with-kpathsea \
		--with-kpathsea-include=/usr/include \
		--with-kpathsea-libdir=/usr/lib \
		--with-freetype \
		--with-freetype-includedir=/usr/include/freetype \
		--with-freetype-libdir=/usr/lib \
		--with-t1lib \
		--with-t1lib-includedir=/usr/include \
		--with-t1lib-libdir=/usr/lib || die

	emake -j1 \
		CDEBUGFLAGS="${CFLAGS}" \
		CXXDEBUGFLAGS="${CXXFLAGS}" || die
}

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

	dodoc CHANGES COPYING* DISTRIB.txt INSTALL README*
}