summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2008-06-21 18:53:45 +0000
committerHanno Böck <hanno@gentoo.org>2008-06-21 18:53:45 +0000
commit42e31ef530687c6dfa49bc963435fafe931f3275 (patch)
tree95f6aab589b877613eac9e850c9b57961bdbcfd9 /media-gfx/gimp
parentAdd sqlite USE flag. (diff)
downloadgentoo-2-42e31ef530687c6dfa49bc963435fafe931f3275.tar.gz
gentoo-2-42e31ef530687c6dfa49bc963435fafe931f3275.tar.bz2
gentoo-2-42e31ef530687c6dfa49bc963435fafe931f3275.zip
change gimp ebuild to use gnome2 eclass and fix automagic on curl
(Portage version: 2.2_rc1/cvs/Linux 2.6.25.4 i686)
Diffstat (limited to 'media-gfx/gimp')
-rw-r--r--media-gfx/gimp/ChangeLog5
-rw-r--r--media-gfx/gimp/gimp-2.4.6.ebuild72
2 files changed, 35 insertions, 42 deletions
diff --git a/media-gfx/gimp/ChangeLog b/media-gfx/gimp/ChangeLog
index 793fdb9b2129..1511241e1e9d 100644
--- a/media-gfx/gimp/ChangeLog
+++ b/media-gfx/gimp/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-gfx/gimp
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/ChangeLog,v 1.255 2008/06/02 13:28:21 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/ChangeLog,v 1.256 2008/06/21 18:53:45 hanno Exp $
+
+ 21 Jun 2008; Hanno Boeck <hanno@gentoo.org> gimp-2.4.6.ebuild:
+ Use gnome2 eclass and fix automagic curl dep.
*gimp-2.4.6 (02 Jun 2008)
diff --git a/media-gfx/gimp/gimp-2.4.6.ebuild b/media-gfx/gimp/gimp-2.4.6.ebuild
index c88bb3a6559e..99933046d991 100644
--- a/media-gfx/gimp/gimp-2.4.6.ebuild
+++ b/media-gfx/gimp/gimp-2.4.6.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.4.6.ebuild,v 1.1 2008/06/02 13:28:21 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.4.6.ebuild,v 1.2 2008/06/21 18:53:45 hanno Exp $
-inherit fdo-mime flag-o-matic multilib python eutils autotools
+inherit gnome2 fdo-mime flag-o-matic multilib python eutils autotools
DESCRIPTION="GNU Image Manipulation Program"
HOMEPAGE="http://www.gimp.org/"
@@ -52,6 +52,8 @@ DEPEND="${RDEPEND}
>=sys-devel/gettext-0.17
doc? ( >=dev-util/gtk-doc-1 )"
+DOCS="AUTHORS ChangeLog* HACKING NEWS README*"
+
pkg_setup() {
if use pdf && ! built_with_use app-text/poppler-bindings gtk; then
eerror "This package requires app-text/poppler-bindings compiled with GTK+ support."
@@ -61,40 +63,13 @@ pkg_setup() {
eerror "This package requires media-libs/alsa-lib compiled with midi support."
die "Please reemerge media-libs/alsa-lib with USE=\"midi\"."
fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/gimp-web-browser.patch"
-
- # Workaround for MIME-type, this is fixed in gimp trunk, so we can
- # remove this with >= 2.5
- use svg && epatch "${FILESDIR}/gimp-svg.diff"
-
- eautoreconf
-}
-
-src_compile() {
- # workaround portage variable leakage
- local AA=
-
- # gimp uses inline functions (e.g. plug-ins/common/grid.c) (#23078)
- # gimp uses floating point math, needs accuracy (#98685)
- filter-flags "-fno-inline" "-ffast-math"
- # gimp assumes char is signed (fixes preview corruption)
- if use ppc || use ppc64; then
- append-flags "-fsigned-char"
- fi
- econf --enable-default-binary \
+ G2CONF="--enable-default-binary \
--with-x \
$(use_with aalib aa) \
$(use_with alsa) \
$(use_enable altivec) \
- $(use_with curl) \
- $(use_enable debug) \
- $(use_enable doc gtk-doc) \
+ $(use_with curl libcurl) \
$(use_with dbus) \
$(use_with hal) \
$(use_with gnome gnomevfs) \
@@ -111,21 +86,37 @@ src_compile() {
$(use_enable sse) \
$(use_with svg librsvg) \
$(use_with tiff libtiff) \
- $(use_with wmf) \
- || die "econf failed"
+ $(use_with wmf)"
+}
+
+src_unpack() {
+ gnome2_src_unpack
+ epatch "${FILESDIR}/gimp-web-browser.patch"
- emake || die "emake failed"
+ # Workaround for MIME-type, this is fixed in gimp trunk, so we can
+ # remove this with >= 2.5
+ use svg && epatch "${FILESDIR}/gimp-svg.diff"
+
+ eautoreconf
}
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
+src_compile() {
+ # workaround portage variable leakage
+ local AA=
+
+ # gimp uses inline functions (e.g. plug-ins/common/grid.c) (#23078)
+ # gimp uses floating point math, needs accuracy (#98685)
+ filter-flags "-fno-inline" "-ffast-math"
+ # gimp assumes char is signed (fixes preview corruption)
+ if use ppc || use ppc64; then
+ append-flags "-fsigned-char"
+ fi
- dodoc AUTHORS ChangeLog* HACKING NEWS README*
+ gnome2_src_compile
}
pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
+ gnome2_pkg_postinst
elog
elog "If you want Postscript file support, emerge ghostscript."
@@ -136,8 +127,7 @@ pkg_postinst() {
}
pkg_postrm() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
+ gnome2_pkg_postrm
python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
/usr/$(get_libdir)/gimp/2.0/plug-ins
}