/[gentoo-x86]/media-libs/libwmf/libwmf-0.2.8.4-r4.ebuild
Gentoo

Contents of /media-libs/libwmf/libwmf-0.2.8.4-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sat May 12 06:59:58 2012 UTC (2 years, 3 months ago) by pacho
Branch: MAIN
Changes since 1.12: +2 -2 lines
Fix typo, move from 'disable' to 'without' configure option, bug #415293 by Rafał Mużyło.

(Portage version: 2.1.10.57/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/libwmf-0.2.8.4-r4.ebuild,v 1.11 2012/05/05 08:02:30 jdhore Exp $
4
5 EAPI=4
6
7 inherit eutils autotools
8
9 #The configure script finds the 5.50 ghostscript Fontmap file while run.
10 #This will probably work, especially since the real one (6.50) in this case
11 #is empty. However beware in case there is any trouble
12
13 DESCRIPTION="library for converting WMF files"
14 HOMEPAGE="http://wvware.sourceforge.net/"
15 SRC_URI="mirror://sourceforge/wvware/${P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
20 IUSE="X debug doc expat xml"
21
22 RDEPEND="app-text/ghostscript-gpl
23 media-fonts/urw-fonts
24 >=media-libs/freetype-2.0.1
25 >=media-libs/libpng-1.4
26 sys-libs/zlib
27 x11-libs/gdk-pixbuf:2[X?]
28 virtual/jpeg
29 xml? (
30 expat? ( dev-libs/expat )
31 !expat? ( dev-libs/libxml2 )
32 )
33 X? (
34 x11-libs/libICE
35 x11-libs/libSM
36 x11-libs/libX11
37 )
38 "
39 DEPEND="${RDEPEND}
40 virtual/pkgconfig
41 X? (
42 x11-libs/libXt
43 x11-libs/libXpm
44 )"
45 # plotutils are not really supported yet, so looks like that's it
46
47 REQUIRED_USE="expat? ( xml )"
48
49 DOCS=( README AUTHORS CREDITS ChangeLog NEWS TODO )
50
51 src_prepare() {
52 if ! use doc ; then
53 sed -e 's:doc::' -i Makefile.am || die
54 fi
55 epatch \
56 "${FILESDIR}"/${P}-intoverflow.patch \
57 "${FILESDIR}"/${P}-build.patch \
58 "${FILESDIR}"/${P}-pngfix.patch \
59 "${FILESDIR}"/${P}-libpng-1.5.patch \
60 "${FILESDIR}"/${P}-use-system-fonts.patch \
61 "${FILESDIR}"/${P}-gdk-pixbuf.patch
62
63 eautoreconf
64 }
65
66 src_configure() {
67 local myconf
68 # NOTE: The gd that is included is gd-2.0.0. Even with --with-sys-gd, that gd is built
69 # and included in libwmf. Since nothing in-tree seems to use media-libs/libwmf[gd],
70 # we're explicitly disabling gd use w.r.t. bug 268161
71 if use expat; then
72 myconf+=" --without-libxml2"
73 else
74 myconf+=$(use_with xml libxml2)
75 fi
76
77 econf \
78 --disable-static \
79 $(use_enable debug) \
80 $(use_with X x) \
81 $(use_with expat) \
82 ${myconf} \
83 --disable-gd \
84 --with-sys-gd \
85 --with-gsfontdir="${EPREFIX}"/usr/share/ghostscript/fonts \
86 --with-fontdir="${EPREFIX}"/usr/share/fonts/urw-fonts/ \
87 --with-docdir="${EPREFIX}"/usr/share/doc/${PF}
88 }
89
90 src_install() {
91 MAKEOPTS+=" -j1" default
92 find "${D}" -name '*.la' -exec rm -f '{}' + || die
93 }

  ViewVC Help
Powered by ViewVC 1.1.20