summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-06 14:19:33 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-06 14:19:33 +0000
commit7ca0684d732e09bfb1ecb342a5845f8e6c5c1f4f (patch)
tree954425f4be8aa3544d94ab8a5eb627df07bbf91c /media-gfx
parentalpha stable (diff)
downloadgentoo-2-7ca0684d732e09bfb1ecb342a5845f8e6c5c1f4f.tar.gz
gentoo-2-7ca0684d732e09bfb1ecb342a5845f8e6c5c1f4f.tar.bz2
gentoo-2-7ca0684d732e09bfb1ecb342a5845f8e6c5c1f4f.zip
Use Python 2 (bug #313499).
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gimp/ChangeLog6
-rw-r--r--media-gfx/gimp/gimp-2.6.8.ebuild12
-rw-r--r--media-gfx/gimp/gimp-9999.ebuild12
3 files changed, 21 insertions, 9 deletions
diff --git a/media-gfx/gimp/ChangeLog b/media-gfx/gimp/ChangeLog
index 769d2df63a00..d03884e728a9 100644
--- a/media-gfx/gimp/ChangeLog
+++ b/media-gfx/gimp/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/gimp
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/ChangeLog,v 1.310 2010/06/05 17:26:00 reavertm Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/ChangeLog,v 1.311 2010/06/06 14:19:33 arfrever Exp $
+
+ 06 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ gimp-2.6.8.ebuild, gimp-9999.ebuild:
+ Use Python 2 (bug #313499).
05 Jun 2010; Maciej Mrozowski <reavertm@gentoo.org> gimp-2.6.8.ebuild,
gimp-9999.ebuild:
diff --git a/media-gfx/gimp/gimp-2.6.8.ebuild b/media-gfx/gimp/gimp-2.6.8.ebuild
index be628d5d1304..a669de5bb979 100644
--- a/media-gfx/gimp/gimp-2.6.8.ebuild
+++ b/media-gfx/gimp/gimp-2.6.8.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.6.8.ebuild,v 1.11 2010/06/05 17:26:00 reavertm Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-2.6.8.ebuild,v 1.12 2010/06/06 14:19:33 arfrever Exp $
EAPI=2
+PYTHON_DEPEND="python? 2:2.5"
inherit eutils gnome2 fdo-mime multilib python
@@ -40,8 +41,7 @@ RDEPEND=">=dev-libs/glib-2.18.1
mng? ( media-libs/libmng )
pdf? ( >=app-text/poppler-0.12.3-r3[cairo] )
png? ( >=media-libs/libpng-1.2.2 )
- python? ( >=dev-lang/python-2.5.0
- >=dev-python/pygtk-2.10.4 )
+ python? ( >=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 )"
@@ -82,6 +82,10 @@ pkg_setup() {
$(use_with svg librsvg) \
$(use_with tiff libtiff) \
$(use_with wmf)"
+
+ if use python; then
+ python_set_active_version 2
+ fi
}
pkg_postinst() {
@@ -94,6 +98,6 @@ pkg_postinst() {
pkg_postrm() {
gnome2_pkg_postrm
- python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
+ use python && 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-9999.ebuild b/media-gfx/gimp/gimp-9999.ebuild
index 826a719ac184..77b8313c6dfb 100644
--- a/media-gfx/gimp/gimp-9999.ebuild
+++ b/media-gfx/gimp/gimp-9999.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-9999.ebuild,v 1.25 2010/06/05 17:26:00 reavertm Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gimp/gimp-9999.ebuild,v 1.26 2010/06/06 14:19:33 arfrever Exp $
EAPI=2
+PYTHON_DEPEND="python? 2:2.5"
inherit git eutils gnome2 fdo-mime multilib python
@@ -42,8 +43,7 @@ RDEPEND=">=dev-libs/glib-2.18.1
mng? ( media-libs/libmng )
pdf? ( >=app-text/poppler-0.12.3-r3[cairo] )
png? ( >=media-libs/libpng-1.2.2 )
- python? ( >=dev-lang/python-2.5.0
- >=dev-python/pygtk-2.10.4 )
+ python? ( >=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 )"
@@ -90,6 +90,10 @@ pkg_setup() {
$(use_with svg librsvg) \
$(use_with tiff libtiff) \
$(use_with wmf)"
+
+ if use python; then
+ python_set_active_version 2
+ fi
}
pkg_postinst() {
@@ -102,6 +106,6 @@ pkg_postinst() {
pkg_postrm() {
gnome2_pkg_postrm
- python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
+ use python && python_mod_cleanup /usr/$(get_libdir)/gimp/2.0/python \
/usr/$(get_libdir)/gimp/2.0/plug-ins
}