Lines 15-41
Link Here
|
15 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
16 |
SLOT="0" |
16 |
SLOT="0" |
17 |
KEYWORDS="x86 ppc alpha amd64 hppa sparc ia64 mips ppc64" |
17 |
KEYWORDS="x86 ppc alpha amd64 hppa sparc ia64 mips ppc64" |
18 |
IUSE="jpeg X" |
18 |
IUSE="jpeg X pic xml xml2 debug doc gtk" |
19 |
|
19 |
|
20 |
DEPEND="virtual/ghostscript |
20 |
RDEPEND="virtual/ghostscript |
21 |
dev-libs/expat |
21 |
xml2? ( !xml? ( dev-libs/libxml2 ) ) |
22 |
dev-libs/libxml2 |
22 |
xml? ( dev-libs/expat ) |
23 |
>=media-libs/freetype-2.0.1 |
23 |
>=media-libs/freetype-2.0.1 |
24 |
sys-libs/zlib |
24 |
sys-libs/zlib |
25 |
media-libs/libpng |
25 |
media-libs/libpng |
26 |
jpeg? ( media-libs/jpeg ) |
26 |
jpeg? ( media-libs/jpeg ) |
27 |
X? ( virtual/x11 )" |
27 |
X? ( virtual/x11 ) |
|
|
28 |
gtk? ( >=x11-libs/gtk+-2.1.2 ) " |
29 |
DEPEND="$RDEPEND |
30 |
dev-util/pkgconfig" |
28 |
# plotutils are not really supported yet, so looks like that's it |
31 |
# plotutils are not really supported yet, so looks like that's it |
29 |
|
32 |
|
|
|
33 |
src_unpack() { |
34 |
unpack ${A} |
35 |
cd ${S} |
36 |
if ! use doc; then |
37 |
sed -e 's:doc::' -i Makefile.am |
38 |
automake || die "automake filed" |
39 |
fi |
40 |
|
41 |
if ! use gtk; then |
42 |
sed -e 's:@LIBWMF_GDK_PIXBUF_TRUE@:#:' -i src/Makefile.in |
43 |
fi |
44 |
} |
45 |
|
30 |
src_compile() { |
46 |
src_compile() { |
31 |
# Have to use the reverse-deps patch to prevent libwmf from |
47 |
# Have to use the reverse-deps patch to prevent libwmf from |
32 |
# linking an older installed version of libwmflite |
48 |
# linking an older installed version of libwmflite |
33 |
#still needed !? <vapier@gentoo.org> |
49 |
#still needed !? <vapier@gentoo.org> |
34 |
#elibtoolize --reverse-deps |
50 |
#elibtoolize --reverse-deps |
|
|
51 |
|
52 |
if use xml && use xml2; then |
53 |
einfo "You can specify only one flag of xml and xml2." |
54 |
einfo "It will be defaulted to expat (like autocheck does)." |
55 |
myconf="${myconf} --with-expat --without-libxml2" |
56 |
else |
57 |
myconf="${myconf} $(use_with xml expat) $(use_with xml2 libxml2)" |
58 |
fi |
35 |
|
59 |
|
36 |
use jpeg || myconf="${myconf} --with-jpeg=no" |
|
|
37 |
use X || myconf="${myconf} --with-x=no" |
38 |
econf \ |
60 |
econf \ |
|
|
61 |
$(use_enable debug) \ |
62 |
$(use_with jpeg) \ |
63 |
$(use_with X x) \ |
64 |
$(use_with pic) \ |
39 |
${myconf} \ |
65 |
${myconf} \ |
40 |
--with-gsfontdir=/usr/share/ghostscript/fonts \ |
66 |
--with-gsfontdir=/usr/share/ghostscript/fonts \ |
41 |
--with-fontdir=/usr/share/libwmf/fonts/ \ |
67 |
--with-fontdir=/usr/share/libwmf/fonts/ \ |