diff options
Diffstat (limited to 'media-gfx/pstoedit/pstoedit-3.44.ebuild')
-rw-r--r-- | media-gfx/pstoedit/pstoedit-3.44.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-gfx/pstoedit/pstoedit-3.44.ebuild b/media-gfx/pstoedit/pstoedit-3.44.ebuild new file mode 100644 index 000000000000..0f3e8cc9a724 --- /dev/null +++ b/media-gfx/pstoedit/pstoedit-3.44.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/pstoedit/pstoedit-3.44.ebuild,v 1.1 2007/04/07 01:12:12 betelgeuse Exp $ + +inherit autotools base eutils + +DESCRIPTION="translates PostScript and PDF graphics into other vector formats" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://www.pstoedit.net/pstoedit" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +# Add flash when media-libs/ming-0.3 gets out of package.mask +IUSE="emf imagemagick plotutils" + +# Strangely when emerging with --as-needed libpng is not needed +DEPEND="media-libs/libpng + virtual/ghostscript + media-libs/gd + !amd64? ( emf? ( >=media-libs/libemf-1.0.3 ) ) + imagemagick? ( media-gfx/imagemagick ) + plotutils? ( media-libs/plotutils )" +#flash? ( >=media-libs/ming-0.3 ) + +PATCHES="${FILESDIR}/3.44-as-needed.patch" + +pkg_setup() { + if use imagemagick && built_with_use media-gfx/imagemagick nocxx; then + eerror 'pstoedit with USE "imagemagick" requires media-gfx/imagemagick' + eerror 'built with C++ bindings. Please recompile imagemagick with' + eerror 'USE "-nocxx"' + echo + die 'missing imagemagick C++ header file Magick++.h' + fi +} + +src_compile() { + eautoreconf + #$(use_with flash swf) + # --without-swf for bug https://bugs.gentoo.org/show_bug.cgi?id=137204 + econf $(use_with emf) --without-swf $(use_with imagemagick magick) \ + $(use_with plotutils libplot) || die 'econf failed' + make || die 'compilation failed' +} + +src_install () { + emake DESTDIR=${D} install || die 'make install failed' + cd doc + dodoc readme.txt || die + dohtml *.htm || die + doman pstoedit.1 || die +} |