summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-09-12 12:17:12 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-09-12 12:17:12 +0000
commite73fb68719274a5d07ac9facaf4acf4d43c61e72 (patch)
tree8f0f4ad987be65ec278d975f51ca3f2c1a88652f /media-gfx/pstoedit
parentRemove old (diff)
downloadgentoo-2-e73fb68719274a5d07ac9facaf4acf4d43c61e72.tar.gz
gentoo-2-e73fb68719274a5d07ac9facaf4acf4d43c61e72.tar.bz2
gentoo-2-e73fb68719274a5d07ac9facaf4acf4d43c61e72.zip
Migrate to EAPI 2 in order to nuke built_with_use.
(Portage version: 2.2_rc40/cvs/Linux i686)
Diffstat (limited to 'media-gfx/pstoedit')
-rw-r--r--media-gfx/pstoedit/ChangeLog5
-rw-r--r--media-gfx/pstoedit/pstoedit-3.45.ebuild24
2 files changed, 12 insertions, 17 deletions
diff --git a/media-gfx/pstoedit/ChangeLog b/media-gfx/pstoedit/ChangeLog
index 488d6e87d591..0a618e7e8598 100644
--- a/media-gfx/pstoedit/ChangeLog
+++ b/media-gfx/pstoedit/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-gfx/pstoedit
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/pstoedit/ChangeLog,v 1.56 2009/07/20 10:56:12 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/pstoedit/ChangeLog,v 1.57 2009/09/12 12:17:12 betelgeuse Exp $
+
+ 12 Sep 2009; Petteri Räty <betelgeuse@gentoo.org> pstoedit-3.45.ebuild:
+ Migrate to EAPI 2 in order to nuke built_with_use.
20 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org>
pstoedit-3.45.ebuild:
diff --git a/media-gfx/pstoedit/pstoedit-3.45.ebuild b/media-gfx/pstoedit/pstoedit-3.45.ebuild
index 236fc77f36b3..a664a3057a0f 100644
--- a/media-gfx/pstoedit/pstoedit-3.45.ebuild
+++ b/media-gfx/pstoedit/pstoedit-3.45.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/pstoedit/pstoedit-3.45.ebuild,v 1.14 2009/07/20 10:56:12 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/pstoedit/pstoedit-3.45.ebuild,v 1.15 2009/09/12 12:17:12 betelgeuse Exp $
+
+EAPI="2"
inherit base eutils
@@ -20,23 +22,11 @@ DEPEND="media-libs/libpng
virtual/ghostscript
media-libs/gd
emf? ( >=media-libs/libemf-1.0.3 )
- imagemagick? ( media-gfx/imagemagick )
+ imagemagick? ( media-gfx/imagemagick[-nocxx] )
plotutils? ( media-libs/plotutils )"
#flash? ( >=media-libs/ming-0.3 )
-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_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
# Fails due to imagemagick having 'long long' in its headers (at least in
# 6.3.9.8).
sed -i -e "s/-pedantic //" configure
@@ -44,12 +34,14 @@ src_unpack() {
epatch "${FILESDIR}/${P}-gcc-4.4.patch"
}
-src_compile() {
+src_configure() {
#$(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'
+}
+src_compile() {
# bug #278417
emake -j1 || die 'compilation failed'
}