1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils
9 DESCRIPTION="Translate PostScript and PDF graphics into other vector formats"
10 HOMEPAGE="http://sourceforge.net/projects/pstoedit/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
16 IUSE="emf flash imagemagick plotutils pptx static-libs"
19 >=media-libs/gd-2.0.35-r1:=
20 >=app-text/ghostscript-gpl-8.71-r1
21 emf? ( >=media-libs/libemf-1.0.3 )
22 flash? ( >=media-libs/ming-0.4.3 )
23 imagemagick? ( >=media-gfx/imagemagick-6.6.1.2[cxx] )
24 plotutils? ( media-libs/plotutils )
25 pptx? ( dev-libs/libzip )
33 -e '/CXXFLAGS="-g"/d' \
37 epatch "${FILESDIR}"/${PN}-3.60-libdl.patch
38 epatch "${FILESDIR}"/${PN}-3.70-pkgconfig.patch
45 $(use_enable static-libs static) \
47 $(use_with imagemagick magick) \
48 $(use_with plotutils libplot) \
49 $(use_with flash swf) \
59 find "${ED}" -name '*.la' -delete