Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 298005
Collapse All | Expand All

(-)vflib-3.6.14.ebuild.orig (-13 / +14 lines)
Lines 1-7 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/vflib/vflib-3.6.14.ebuild,v 1.6 2008/09/02 23:45:55 aballier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/vflib/vflib-3.6.14.ebuild,v 1.6 2008/09/02 23:45:55 aballier Exp $
4
4
5
EAPI="2"
6
5
inherit libtool eutils
7
inherit libtool eutils
6
8
7
MY_P=VFlib3-${PV}
9
MY_P=VFlib3-${PV}
Lines 19-25 Link Here
19
	x11-libs/libXau
21
	x11-libs/libXau
20
	x11-libs/libXdmcp
22
	x11-libs/libXdmcp
21
	x11-libs/libXext
23
	x11-libs/libXext
22
	=media-libs/freetype-1*
24
	media-libs/freetype:1
23
	virtual/tex-base
25
	virtual/tex-base
24
	media-libs/t1lib"
26
	media-libs/t1lib"
25
DEPEND="${RDEPEND}
27
DEPEND="${RDEPEND}
Lines 28-46 Link Here
28
30
29
S="${WORKDIR}"/${MY_P}
31
S="${WORKDIR}"/${MY_P}
30
32
31
src_unpack() {
33
src_prepare() {
32
	unpack ${A}
34
	sed -i -e "s:<varargs.h>:<stdarg.h>:" src/vfldisol.c \
33
	cd "${S}"
35
		-e "s:T1_Get_no_fonts:T1_GetNoFonts:" src/drv_t1.c || die
34
	epatch "${FILESDIR}"/${P}-install-info.diff
36
	epatch "${FILESDIR}"/${P}-install-info.diff
37
35
	elibtoolize
38
	elibtoolize
36
}
39
}
37
40
38
src_compile() {
41
src_configure() {
39
	sed -i -e "s:<varargs.h>:<stdarg.h>:" src/vfldisol.c
40
	if has_version '>=media-libs/t1lib-5' ; then
41
		sed -i -e "s:T1_Get_no_fonts:T1_GetNoFonts:" src/drv_t1.c
42
	fi
43
44
	econf \
42
	econf \
45
		--with-kpathsea \
43
		--with-kpathsea \
46
		--with-kpathsea-include=/usr/include \
44
		--with-kpathsea-include=/usr/include \
Lines 51-58 Link Here
51
		--with-t1lib \
49
		--with-t1lib \
52
		--with-t1lib-includedir=/usr/include \
50
		--with-t1lib-includedir=/usr/include \
53
		--with-t1lib-libdir=/usr/$(get_libdir) || die
51
		--with-t1lib-libdir=/usr/$(get_libdir) || die
52
}
54
53
55
	emake -j1 \
54
src_compile() {
55
	emake \
56
		CDEBUGFLAGS="${CFLAGS}" \
56
		CDEBUGFLAGS="${CFLAGS}" \
57
		CXXDEBUGFLAGS="${CXXFLAGS}" || die
57
		CXXDEBUGFLAGS="${CXXFLAGS}" || die
58
}
58
}
Lines 62-66 Link Here
62
		runtimedir="${D}"/usr/share/VFlib/${PV} \
62
		runtimedir="${D}"/usr/share/VFlib/${PV} \
63
		runtimesitedir="${D}"/usr/share/VFlib/site || die
63
		runtimesitedir="${D}"/usr/share/VFlib/site || die
64
64
65
	dodoc CHANGES COPYING* DISTRIB.txt INSTALL README*
65
	dodoc ANNOUNCE* CHANGES DISTRIB.txt || die
66
	dohtml doc/*.html || die
66
}
67
}

Return to bug 298005