summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Østergaard <kloeri@gentoo.org>2004-03-11 19:56:25 +0000
committerBryan Østergaard <kloeri@gentoo.org>2004-03-11 19:56:25 +0000
commitac022ab9be37c43e179b7c2891547bbe7fb1ab16 (patch)
tree8211f8ab12c93a23c97a574262d679faf7bed4f2 /dev-python/pygtk
parentVersion bumped and corrected SRC_URI. Removed old snapshot and unified config... (diff)
downloadgentoo-2-ac022ab9be37c43e179b7c2891547bbe7fb1ab16.tar.gz
gentoo-2-ac022ab9be37c43e179b7c2891547bbe7fb1ab16.tar.bz2
gentoo-2-ac022ab9be37c43e179b7c2891547bbe7fb1ab16.zip
Version bump, bug #44378.
Diffstat (limited to 'dev-python/pygtk')
-rw-r--r--dev-python/pygtk/ChangeLog7
-rw-r--r--dev-python/pygtk/files/digest-pygtk-2.2.01
-rw-r--r--dev-python/pygtk/pygtk-2.2.0.ebuild67
3 files changed, 74 insertions, 1 deletions
diff --git a/dev-python/pygtk/ChangeLog b/dev-python/pygtk/ChangeLog
index 0e4006c89ff0..a1f7f23c40f6 100644
--- a/dev-python/pygtk/ChangeLog
+++ b/dev-python/pygtk/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/pygtk
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.38 2004/03/09 23:17:44 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/ChangeLog,v 1.39 2004/03/11 19:56:25 kloeri Exp $
+
+*pygtk-2.2.0 (11 Mar 2004)
+
+ 11 Mar 2004; Bryan Østergaard,,, <kloeri@gentoo.org> pygtk-2.2.0.ebuild:
+ Version bump, bug #44378.
09 Mar 2004; <agriffis@gentoo.org> pygtk-2.0.0.ebuild:
stable on alpha and ia64
diff --git a/dev-python/pygtk/files/digest-pygtk-2.2.0 b/dev-python/pygtk/files/digest-pygtk-2.2.0
new file mode 100644
index 000000000000..0a907e44d60a
--- /dev/null
+++ b/dev-python/pygtk/files/digest-pygtk-2.2.0
@@ -0,0 +1 @@
+MD5 992122f8a61c266aeb1b7b35be9c4be1 pygtk-2.2.0.tar.bz2 553761
diff --git a/dev-python/pygtk/pygtk-2.2.0.ebuild b/dev-python/pygtk/pygtk-2.2.0.ebuild
new file mode 100644
index 000000000000..e5494f8e9a2c
--- /dev/null
+++ b/dev-python/pygtk/pygtk-2.2.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtk/pygtk-2.2.0.ebuild,v 1.1 2004/03/11 19:56:25 kloeri Exp $
+
+inherit gnome.org python
+
+DESCRIPTION="GTK+2 bindings for Python"
+HOMEPAGE="http://www.daa.com.au/~james/pygtk/"
+SRC_URI="ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.2/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="2"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64"
+IUSE="gnome opengl"
+
+RDEPEND=">=dev-lang/python-2.2
+ >=x11-libs/pango-1
+ >=x11-libs/gtk+-2
+ >=dev-libs/atk-1
+ >=dev-libs/glib-2
+ gnome? ( >=gnome-base/libglade-2 )
+ opengl? ( virtual/opengl
+ dev-python/PyOpenGL
+ >=x11-libs/gtkglarea-1.99 )"
+
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.9"
+
+src_unpack() {
+ unpack ${A}
+ # disable pyc compiling
+ mv ${S}/py-compile ${S}/py-compile.orig
+ ln -s /bin/true ${S}/py-compile
+}
+
+src_compile() {
+ econf --enable-thread || die
+ emake || die
+}
+
+src_install() {
+ einstall || die
+ dodoc AUTHORS COPYING ChangeLog INSTALL MAPPING NEWS README THREADS TODO
+
+ python_version
+ mv ${D}/usr/lib/python${PYVER}/site-packages/pygtk.py \
+ ${D}/usr/lib/python${PYVER}/site-packages/pygtk.py-2.0
+ mv ${D}/usr/lib/python${PYVER}/site-packages/pygtk.pth \
+ ${D}/usr/lib/python${PYVER}/site-packages/pygtk.pth-2.0
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize /usr/share/pygtk/2.0/codegen /usr/lib/python${PYVER}/site-packages/gtk-2.0
+ alternatives_auto_makesym /usr/lib/python${PYVER}/site-packages/pygtk.py pygtk.py-[0-9].[0-9]
+ alternatives_auto_makesym /usr/lib/python${PYVER}/site-packages/pygtk.pth pygtk.pth-[0-9].[0-9]
+ python_mod_compile /usr/lib/python${PYVER}/site-packages/pygtk.py
+}
+
+pkg_postrm() {
+ python_version
+ python_mod_cleanup /usr/share/pygtk/2.0/codegen
+ python_mod_cleanup
+ rm -f ${ROOT}/usr/lib/python${PYVER}/site-packages/pygtk.{py,pth}
+ alternatives_auto_makesym /usr/lib/python${PYVER}/site-packages/pygtk.py pygtk.py-[0-9].[0-9]
+ alternatives_auto_makesym /usr/lib/python${PYVER}/site-packages/pygtk.pth pygtk.pth-[0-9].[0-9]
+}