summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2008-03-03 14:07:16 +0000
committerHanno Böck <hanno@gentoo.org>2008-03-03 14:07:16 +0000
commitf24811528a4e622f2b0ccd04b3455c57a8af5ac2 (patch)
treea1b3bc402564d97fea1704e3988dcf48eb0b6e35 /media-gfx/gimp
parentFixed various QA issues. Added check that libSDL is compiled with X support (... (diff)
downloadgentoo-2-f24811528a4e622f2b0ccd04b3455c57a8af5ac2.tar.gz
gentoo-2-f24811528a4e622f2b0ccd04b3455c57a8af5ac2.tar.bz2
gentoo-2-f24811528a4e622f2b0ccd04b3455c57a8af5ac2.zip
cleanup of old gimp ebuilds
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-gfx/gimp')
-rw-r--r--media-gfx/gimp/files/ltmain_sh-1.5.0-fix-relink.patch51
-rw-r--r--media-gfx/gimp/gimp-2.2.17.ebuild174
-rw-r--r--media-gfx/gimp/gimp-2.4.0.ebuild129
-rw-r--r--media-gfx/gimp/gimp-2.4.1.ebuild129
-rw-r--r--media-gfx/gimp/gimp-2.4.3.ebuild129
5 files changed, 0 insertions, 612 deletions
diff --git a/media-gfx/gimp/files/ltmain_sh-1.5.0-fix-relink.patch b/media-gfx/gimp/files/ltmain_sh-1.5.0-fix-relink.patch
deleted file mode 100644
index 28631587c963..000000000000
--- a/media-gfx/gimp/files/ltmain_sh-1.5.0-fix-relink.patch
+++ /dev/null
@@ -1,51 +0,0 @@
---- ltmain.sh.norelinkfix 2003-09-24 18:18:14.961005184 +0200
-+++ ltmain.sh 2003-09-24 18:20:11.204333512 +0200
-@@ -2022,6 +2022,8 @@
- convenience="$convenience $ladir/$objdir/$old_library"
- old_convenience="$old_convenience $ladir/$objdir/$old_library"
- tmp_libs=
-+ # PKGW
-+ dependency_libs=
- for deplib in $dependency_libs; do
- deplibs="$deplib $deplibs"
- if test "X$duplicate_deps" = "Xyes" ; then
-@@ -2143,6 +2145,8 @@
- fi
-
- tmp_libs=
-+ #PKGW
-+ dependency_libs=
- for deplib in $dependency_libs; do
- case $deplib in
- -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
-@@ -2359,7 +2363,9 @@
- if test -n "$inst_prefix_dir"; then
- case "$libdir" in
- [\\/]*)
-- add_dir="$add_dir -L$inst_prefix_dir$libdir"
-+ # Add the install location to the beginning, minimising possiblilty
-+ # of linking to older version of the lib already installed.
-+ add_dir="-L$inst_prefix_dir$libdir $add_dir"
- ;;
- esac
- fi
-@@ -2431,7 +2437,9 @@
- if test -n "$inst_prefix_dir"; then
- case "$libdir" in
- [\\/]*)
-- add_dir="$add_dir -L$inst_prefix_dir$libdir"
-+ # Add the install location to the beginning, minimising possiblilty
-+ # of linking to older version of the lib already installed.
-+ add_dir="-L$inst_prefix_dir$libdir $add_dir"
- ;;
- esac
- fi
-@@ -2691,7 +2699,7 @@
- -L*)
- case " $tmp_libs " in
- *" $deplib "*) ;;
-- *) tmp_libs="$tmp_libs $deplib" ;;
-+ *) tmp_libs="$deplib $tmp_libs" ;;
- esac
- ;;
- *) tmp_libs="$tmp_libs $deplib" ;;
diff --git a/media-gfx/gimp/gimp-2.2.17.ebuild b/media-gfx/gimp/gimp-2.2.17.ebuild
deleted file mode 100644
index 1ec9134b8e63..000000000000
--- a/media-gfx/gimp/gimp-2.2.17.ebuild
+++ /dev/null
@@ -1,174 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.2.17.ebuild,v 1.10 2007/10/24 10:24:31 hanno Exp $
-
-inherit flag-o-matic libtool eutils fdo-mime alternatives multilib python
-
-DESCRIPTION="GNU Image Manipulation Program"
-HOMEPAGE="http://www.gimp.org/"
-
-SRC_URI="mirror://gimp/v2.2/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="2"
-KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
-IUSE="aalib altivec debug doc gtkhtml gimpprint hardened jpeg lcms mmx mng png
-python smp sse svg tiff wmf"
-
-RDEPEND=">=dev-libs/glib-2.4.5
- >=x11-libs/gtk+-2.4.4
- >=x11-libs/pango-1.4
- >=media-libs/freetype-2.1.7
- >=media-libs/fontconfig-2.2
- >=media-libs/libart_lgpl-2.3.8-r1
- sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
-
- gimpprint? ( =media-gfx/gimp-print-4.2* )
- gtkhtml? ( =gnome-extra/gtkhtml-2* )
-
- png? ( >=media-libs/libpng-1.2.10 )
- jpeg? ( >=media-libs/jpeg-6b-r2
- media-libs/libexif )
- tiff? ( >=media-libs/tiff-3.5.7 )
- mng? ( media-libs/libmng )
-
- wmf? ( >=media-libs/libwmf-0.2.8.2 )
- svg? ( >=gnome-base/librsvg-2.2 )
-
- aalib? ( media-libs/aalib )
- python? ( >=dev-lang/python-2.2
- >=dev-python/pygtk-2 )
- lcms? ( media-libs/lcms )
- doc? ( app-doc/gimp-help )"
-
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.12.0
- dev-util/intltool
- sys-devel/gettext
- doc? ( >=dev-util/gtk-doc-1 )"
-
-src_unpack() {
-
- unpack "${A}"
- cd "${S}"
-
- # fixes bug #76050, allows for themable icons
- sed -i -e s,@gimpdatadir@/images/@GIMP_DESKTOP_ICON@,@GIMP_DESKTOP_ICON@, "${S}/data/misc/gimp.desktop.in.in"
-
- # Fix linking to older version of gimp if installed - this should
- # void liquidx's hack, so it is removed.
- epatch "${FILESDIR}/ltmain_sh-1.5.0-fix-relink.patch"
-}
-
-src_compile() {
-
- # Since 1.3.16, fixes linker problems when upgrading
- elibtoolize
-
- # Workaround portage variable leakage
- local AA=
-
- # only use mmx if hardened is not set
- local USE_MMX=
-
- # remove this for now, since I have 3 reports that this is
- # not necessary
- # replace-flags "-march=k6*" "-march=i586"
-
- # gimp uses inline functions (plug-ins/common/grid.c) (#23078)
- # gimp uses floating point math, needs accuracy (#98685)
- filter-flags "-fno-inline" "-ffast-math"
-
- # this is fixed in HEAD, but apply when using mmx
- if use mmx; then
- append-flags "-fomit-frame-pointer"
- fi
-
- if use hardened; then
- ewarn "hardened use flag suppressing mmx use flag"
- HARDENED_SUPPRESS_MMX="--disable-mmx"
- elif use x86; then
- HARDENED_SUPPRESS_MMX="`use_enable mmx`"
- elif use amd64; then
- HARDENED_SUPPRESS_MMX="--enable-mmx"
- fi
-
- local myconf
-
- # Hard enable SIMD assembler code for AMD64.
- if use x86; then
- myconf="${myconf} `use_enable sse`"
- elif use amd64; then
- myconf="${myconf} --enable-sse"
- fi
-
- econf \
- --disable-default-binary \
- --with-x \
- "${HARDENED_SUPPRESS_MMX}" \
- ${myconf} \
- `use_enable altivec` \
- `use_enable doc gtk-doc` \
- `use_enable python` \
- `use_enable gimpprint print` \
- `use_with png libpng` \
- `use_with jpeg libjpeg` \
- `use_with jpeg libexif` \
- `use_enable smp mp` \
- `use_with tiff libtiff` \
- `use_with mng libmng` \
- `use_with aalib aa` \
- `use_with lcms` \
- `use_with gtkhtml gtkhtml2` \
- `use_with svg librsvg` \
- `use_enable debug` || die
-
- # X isn't optional (#58003) atm
- # `use_with X x` \
-
- emake || die
-}
-
-src_install() {
- # Workaround portage variable leakage
- local AA=
-
- # create these dirs to make the makefile installs these items correctly
- dodir /usr/share/{applications,application-registry,mime-info}
-
- make DESTDIR="${D}" install || die
-
- dodoc AUTHORS ChangeLog* HACKING NEWS README*
-
- # Create the gimp-remote link, see bug #36648
- dosym gimp-remote-2.2 /usr/bin/gimp-remote
-}
-
-pkg_postinst() {
- alternatives_auto_makesym "/usr/bin/gimp" "/usr/bin/gimp-[0-9].[0-9]"
-
- # fix for bug #76050
- ln -s $(gimptool-2.0 --gimpdatadir)/images/wilber-icon.png \
- "${ROOT}/usr/share/pixmaps/"
-
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- elog ""
- elog "If you want Postscript file support, emerge ghostscript."
- elog ""
-
- python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
-
-pkg_postrm() {
- [[ ! -f "${ROOT}/usr/bin/gimp-2.2" ]] && \
- rm -f "${ROOT}/usr/share/pixmaps/wilber-icon.png"
-
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
diff --git a/media-gfx/gimp/gimp-2.4.0.ebuild b/media-gfx/gimp/gimp-2.4.0.ebuild
deleted file mode 100644
index 89112688db8d..000000000000
--- a/media-gfx/gimp/gimp-2.4.0.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.4.0.ebuild,v 1.2 2007/10/27 11:37:51 hanno Exp $
-
-inherit fdo-mime flag-o-matic multilib python
-
-DESCRIPTION="GNU Image Manipulation Program"
-HOMEPAGE="http://www.gimp.org/"
-SRC_URI="mirror://gimp/v2.4/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 -mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-
-IUSE="alsa aalib altivec curl dbus debug doc gtkhtml gnome jpeg lcms mmx mng pdf png python smp sse svg tiff wmf"
-
-RDEPEND=">=dev-libs/glib-2.12.3
- >=x11-libs/gtk+-2.10.13
- >=x11-libs/pango-1.12.2
- >=media-libs/freetype-2.1.7
- >=media-libs/fontconfig-2.2.0
- >=media-libs/libart_lgpl-2.3.8-r1
- sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
- x11-themes/hicolor-icon-theme
- aalib? ( media-libs/aalib )
- alsa? ( >=media-libs/alsa-lib-1.0.14a-r1 )
- curl? ( net-misc/curl )
- dbus? ( dev-libs/dbus-glib
- sys-apps/hal )
- doc? ( app-doc/gimp-help )
- gnome? ( >=gnome-base/gnome-vfs-2.10.0
- >=gnome-base/libgnomeui-2.10.0
- >=gnome-base/gnome-keyring-0.4.5 )
- gtkhtml? ( =gnome-extra/gtkhtml-2* )
- jpeg? ( >=media-libs/jpeg-6b-r2
- >=media-libs/libexif-0.6.15 )
- lcms? ( media-libs/lcms )
- mng? ( media-libs/libmng )
- pdf? ( >=app-text/poppler-bindings-0.3.1 )
- png? ( >=media-libs/libpng-1.2.2 )
- python? ( >=dev-lang/python-2.2.1
- >=dev-python/pygtk-2.10.4 )
- tiff? ( >=media-libs/tiff-3.5.7 )
- svg? ( >=gnome-base/librsvg-2.8.0 )
- wmf? ( >=media-libs/libwmf-0.2.8 )"
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.12.0
- >=dev-util/intltool-0.31
- sys-devel/gettext
- doc? ( >=dev-util/gtk-doc-1 )"
-
-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."
- die "Please reemerge app-text/poppler-bindings with USE=\"gtk\"."
- fi
- if use alsa && ! built_with_use media-libs/alsa-lib midi; then
- eerror "This package requires media-libs/alsa-lib compiled with midi support."
- die "Please reemerge media-libs/alsa-lib with USE=\"midi\"."
- fi
-}
-
-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 \
- --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 dbus) \
- $(use_with gnome) \
- $(use_with gtkhtml gtkhtml2) \
- $(use_with jpeg libjpeg) \
- $(use_with jpeg libexif) \
- $(use_with lcms) \
- $(use_enable mmx) \
- $(use_with mng libmng) \
- $(use_with pdf poppler) \
- $(use_with png libpng) \
- $(use_enable python) \
- $(use_enable smp mp) \
- $(use_enable sse) \
- $(use_with svg librsvg) \
- $(use_with tiff libtiff) \
- $(use_with wmf) \
- || die "econf failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
-
- dodoc AUTHORS ChangeLog* HACKING NEWS README*
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-
- elog
- elog "If you want Postscript file support, emerge ghostscript."
- elog
-
- python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
diff --git a/media-gfx/gimp/gimp-2.4.1.ebuild b/media-gfx/gimp/gimp-2.4.1.ebuild
deleted file mode 100644
index cb96f447ceaf..000000000000
--- a/media-gfx/gimp/gimp-2.4.1.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.4.1.ebuild,v 1.1 2007/11/01 00:18:54 hanno Exp $
-
-inherit fdo-mime flag-o-matic multilib python
-
-DESCRIPTION="GNU Image Manipulation Program"
-HOMEPAGE="http://www.gimp.org/"
-SRC_URI="mirror://gimp/v2.4/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 -mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-
-IUSE="alsa aalib altivec curl dbus debug doc gtkhtml gnome jpeg lcms mmx mng pdf png python smp sse svg tiff wmf"
-
-RDEPEND=">=dev-libs/glib-2.12.3
- >=x11-libs/gtk+-2.10.13
- >=x11-libs/pango-1.12.2
- >=media-libs/freetype-2.1.7
- >=media-libs/fontconfig-2.2.0
- >=media-libs/libart_lgpl-2.3.8-r1
- sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
- x11-themes/hicolor-icon-theme
- aalib? ( media-libs/aalib )
- alsa? ( >=media-libs/alsa-lib-1.0.14a-r1 )
- curl? ( net-misc/curl )
- dbus? ( dev-libs/dbus-glib
- sys-apps/hal )
- doc? ( app-doc/gimp-help )
- gnome? ( >=gnome-base/gnome-vfs-2.10.0
- >=gnome-base/libgnomeui-2.10.0
- >=gnome-base/gnome-keyring-0.4.5 )
- gtkhtml? ( =gnome-extra/gtkhtml-2* )
- jpeg? ( >=media-libs/jpeg-6b-r2
- >=media-libs/libexif-0.6.15 )
- lcms? ( media-libs/lcms )
- mng? ( media-libs/libmng )
- pdf? ( >=app-text/poppler-bindings-0.3.1 )
- png? ( >=media-libs/libpng-1.2.2 )
- python? ( >=dev-lang/python-2.2.1
- >=dev-python/pygtk-2.10.4 )
- tiff? ( >=media-libs/tiff-3.5.7 )
- svg? ( >=gnome-base/librsvg-2.8.0 )
- wmf? ( >=media-libs/libwmf-0.2.8 )"
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.12.0
- >=dev-util/intltool-0.31
- sys-devel/gettext
- doc? ( >=dev-util/gtk-doc-1 )"
-
-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."
- die "Please reemerge app-text/poppler-bindings with USE=\"gtk\"."
- fi
- if use alsa && ! built_with_use media-libs/alsa-lib midi; then
- eerror "This package requires media-libs/alsa-lib compiled with midi support."
- die "Please reemerge media-libs/alsa-lib with USE=\"midi\"."
- fi
-}
-
-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 \
- --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 dbus) \
- $(use_with gnome) \
- $(use_with gtkhtml gtkhtml2) \
- $(use_with jpeg libjpeg) \
- $(use_with jpeg libexif) \
- $(use_with lcms) \
- $(use_enable mmx) \
- $(use_with mng libmng) \
- $(use_with pdf poppler) \
- $(use_with png libpng) \
- $(use_enable python) \
- $(use_enable smp mp) \
- $(use_enable sse) \
- $(use_with svg librsvg) \
- $(use_with tiff libtiff) \
- $(use_with wmf) \
- || die "econf failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
-
- dodoc AUTHORS ChangeLog* HACKING NEWS README*
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-
- elog
- elog "If you want Postscript file support, emerge ghostscript."
- elog
-
- python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
diff --git a/media-gfx/gimp/gimp-2.4.3.ebuild b/media-gfx/gimp/gimp-2.4.3.ebuild
deleted file mode 100644
index d9cb83e9ce72..000000000000
--- a/media-gfx/gimp/gimp-2.4.3.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# 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.3.ebuild,v 1.1 2008/01/22 07:45:28 jer Exp $
-
-inherit fdo-mime flag-o-matic multilib python
-
-DESCRIPTION="GNU Image Manipulation Program"
-HOMEPAGE="http://www.gimp.org/"
-SRC_URI="mirror://gimp/v2.4/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="2"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 -mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-
-IUSE="alsa aalib altivec curl dbus debug doc gtkhtml gnome jpeg lcms mmx mng pdf png python smp sse svg tiff wmf"
-
-RDEPEND=">=dev-libs/glib-2.12.3
- >=x11-libs/gtk+-2.10.13
- >=x11-libs/pango-1.12.2
- >=media-libs/freetype-2.1.7
- >=media-libs/fontconfig-2.2.0
- >=media-libs/libart_lgpl-2.3.8-r1
- sys-libs/zlib
- dev-libs/libxml2
- dev-libs/libxslt
- x11-themes/hicolor-icon-theme
- aalib? ( media-libs/aalib )
- alsa? ( >=media-libs/alsa-lib-1.0.14a-r1 )
- curl? ( net-misc/curl )
- dbus? ( dev-libs/dbus-glib
- sys-apps/hal )
- doc? ( app-doc/gimp-help )
- gnome? ( >=gnome-base/gnome-vfs-2.10.0
- >=gnome-base/libgnomeui-2.10.0
- >=gnome-base/gnome-keyring-0.4.5 )
- gtkhtml? ( =gnome-extra/gtkhtml-2* )
- jpeg? ( >=media-libs/jpeg-6b-r2
- >=media-libs/libexif-0.6.15 )
- lcms? ( media-libs/lcms )
- mng? ( media-libs/libmng )
- pdf? ( >=app-text/poppler-bindings-0.3.1 )
- png? ( >=media-libs/libpng-1.2.2 )
- python? ( >=dev-lang/python-2.2.1
- >=dev-python/pygtk-2.10.4 )
- tiff? ( >=media-libs/tiff-3.5.7 )
- svg? ( >=gnome-base/librsvg-2.8.0 )
- wmf? ( >=media-libs/libwmf-0.2.8 )"
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.12.0
- >=dev-util/intltool-0.31
- sys-devel/gettext
- doc? ( >=dev-util/gtk-doc-1 )"
-
-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."
- die "Please reemerge app-text/poppler-bindings with USE=\"gtk\"."
- fi
- if use alsa && ! built_with_use media-libs/alsa-lib midi; then
- eerror "This package requires media-libs/alsa-lib compiled with midi support."
- die "Please reemerge media-libs/alsa-lib with USE=\"midi\"."
- fi
-}
-
-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 \
- --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 dbus) \
- $(use_with gnome) \
- $(use_with gtkhtml gtkhtml2) \
- $(use_with jpeg libjpeg) \
- $(use_with jpeg libexif) \
- $(use_with lcms) \
- $(use_enable mmx) \
- $(use_with mng libmng) \
- $(use_with pdf poppler) \
- $(use_with png libpng) \
- $(use_enable python) \
- $(use_enable smp mp) \
- $(use_enable sse) \
- $(use_with svg librsvg) \
- $(use_with tiff libtiff) \
- $(use_with wmf) \
- || die "econf failed"
-
- emake || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
-
- dodoc AUTHORS ChangeLog* HACKING NEWS README*
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-
- elog
- elog "If you want Postscript file support, emerge ghostscript."
- elog
-
- python_mod_optimize /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}
-
-pkg_postrm() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
- python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
- /usr/$(get_libdir)/gimp/2.0/plug-ins
-}