summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-01-16 21:08:43 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-01-16 21:08:43 +0000
commitae9d935fa7dcf3e00576ebc87a0905e85aa62e33 (patch)
treec1ad38fe1d30c93bec70a57cf86fa5c8b5fff9ac /dev-python/pygtkglext
parentStable on hppa. (diff)
downloadgentoo-2-ae9d935fa7dcf3e00576ebc87a0905e85aa62e33.tar.gz
gentoo-2-ae9d935fa7dcf3e00576ebc87a0905e85aa62e33.tar.bz2
gentoo-2-ae9d935fa7dcf3e00576ebc87a0905e85aa62e33.zip
rev bump to fix deprecation warnings
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'dev-python/pygtkglext')
-rw-r--r--dev-python/pygtkglext/ChangeLog8
-rw-r--r--dev-python/pygtkglext/files/1.0.1-gtk28.patch191
-rw-r--r--dev-python/pygtkglext/files/digest-pygtkglext-1.0.1-r11
-rw-r--r--dev-python/pygtkglext/pygtkglext-1.0.1-r1.ebuild46
4 files changed, 245 insertions, 1 deletions
diff --git a/dev-python/pygtkglext/ChangeLog b/dev-python/pygtkglext/ChangeLog
index 5420d4c3d45d..42459ca25b7e 100644
--- a/dev-python/pygtkglext/ChangeLog
+++ b/dev-python/pygtkglext/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pygtkglext
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/ChangeLog,v 1.14 2006/01/07 07:14:10 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/ChangeLog,v 1.15 2006/01/16 21:08:43 liquidx Exp $
+
+*pygtkglext-1.0.1-r1 (16 Jan 2006)
+
+ 16 Jan 2006; Alastair Tse <liquidx@gentoo.org> +files/1.0.1-gtk28.patch,
+ +pygtkglext-1.0.1-r1.ebuild:
+ made compat with 2.8 without deprecation warnings
07 Jan 2006; Donnie Berkholz <spyderous@gentoo.org>;
pygtkglext-1.0.1.ebuild:
diff --git a/dev-python/pygtkglext/files/1.0.1-gtk28.patch b/dev-python/pygtkglext/files/1.0.1-gtk28.patch
new file mode 100644
index 000000000000..a6bec34578a9
--- /dev/null
+++ b/dev-python/pygtkglext/files/1.0.1-gtk28.patch
@@ -0,0 +1,191 @@
+diff -ur pygtkglext-1.0.1/gtk/gtkgl/apputils.py pygtkglext-1.0.1-gtk28/gtk/gtkgl/apputils.py
+--- pygtkglext-1.0.1/gtk/gtkgl/apputils.py 2003-11-14 10:38:38.000000000 +0000
++++ pygtkglext-1.0.1-gtk28/gtk/gtkgl/apputils.py 2005-11-16 16:15:28.082662000 +0000
+@@ -22,6 +22,7 @@
+ import pygtk
+ pygtk.require('2.0')
+ import gtk
++import gobject
+ import gtk.gtkgl
+
+ from OpenGL.GL import *
+@@ -40,10 +41,10 @@
+ self.glarea.queue_draw()
+
+ def invalidate(self):
+- self.glarea.window.invalidate_rect(self.glarea.allocation, gtk.FALSE)
++ self.glarea.window.invalidate_rect(self.glarea.allocation, False)
+
+ def update(self):
+- self.glarea.window.process_updates(gtk.FALSE)
++ self.glarea.window.process_updates(False)
+
+ def timeout_is_enabled(self):
+ return self.glarea.timeout_is_enabled()
+@@ -162,7 +163,7 @@
+ """OpenGL drawing area widget."""
+
+ def __init__(self, glscene, glconfig=None, share_list=None,
+- direct=gtk.TRUE, render_type=gtk.gdkgl.RGBA_TYPE):
++ direct=True, render_type=gtk.gdkgl.RGBA_TYPE):
+ gtk.DrawingArea.__init__(self)
+
+ assert isinstance(glscene, GLScene), "glscene must be GLScene"
+@@ -202,18 +203,18 @@
+
+ # Enable timeout
+ if isinstance(self.glscene, GLSceneTimeout):
+- self.__enable_timeout = gtk.TRUE
++ self.__enable_timeout = True
+ self.__timeout_interval = self.glscene.timeout_interval
+ else:
+- self.__enable_timeout = gtk.FALSE
++ self.__enable_timeout = False
+ self.__timeout_interval = 30
+ self.__timeout_id = 0
+
+ # Enable idle
+ if isinstance(self.glscene, GLSceneIdle):
+- self.__enable_idle = gtk.TRUE
++ self.__enable_idle = True
+ else:
+- self.__enable_idle = gtk.FALSE
++ self.__enable_idle = False
+ self.__idle_id = 0
+
+ self.connect('map_event', self.__map_event)
+@@ -241,7 +242,7 @@
+ # Call glscene.init()
+ self.glscene.init()
+ gldrawable.gl_end()
+- return gtk.TRUE
++ return True
+
+ def __configure_event(self, widget, event):
+ """'configure_event' signal handler.
+@@ -254,7 +255,7 @@
+ self.glscene.reshape(widget.allocation.width,
+ widget.allocation.height)
+ gldrawable.gl_end()
+- return gtk.TRUE
++ return True
+
+ def __expose_event(self, widget, event):
+ """'expose_event' signal handler.
+@@ -272,7 +273,7 @@
+ else:
+ glFlush()
+ gldrawable.gl_end()
+- return gtk.TRUE
++ return True
+
+ def __key_press_event(self, widget, event):
+ """'key_press_event' signal handler.
+@@ -282,7 +283,7 @@
+ self.glscene.key_press(widget.allocation.width,
+ widget.allocation.height,
+ event)
+- return gtk.TRUE
++ return True
+
+ def __key_release_event(self, widget, event):
+ """'key_release_event' signal handler.
+@@ -292,7 +293,7 @@
+ self.glscene.key_release(widget.allocation.width,
+ widget.allocation.height,
+ event)
+- return gtk.TRUE
++ return True
+
+ def __button_press_event(self, widget, event):
+ """'button_press_event' signal handler.
+@@ -306,7 +307,7 @@
+ widget.allocation.height,
+ event)
+ gldrawable.gl_end()
+- return gtk.TRUE
++ return True
+
+ def __button_release_event(self, widget, event):
+ """'button_release_event' signal handler.
+@@ -320,7 +321,7 @@
+ widget.allocation.height,
+ event)
+ gldrawable.gl_end()
+- return gtk.TRUE
++ return True
+
+ def __motion_notify_event(self, widget, event):
+ """'motion_notify_event' signal handler.
+@@ -342,7 +343,7 @@
+ self.glscene.pointer_motion(widget.allocation.width,
+ widget.allocation.height,
+ event)
+- return gtk.TRUE
++ return True
+
+ ## Timeout function management
+
+@@ -353,7 +354,7 @@
+ # Call glscene.timeout()
+ self.glscene.timeout(widget.allocation.width,
+ widget.allocation.height)
+- return gtk.TRUE
++ return True
+
+ def __timeout_add(self):
+ """Add timeout function.
+@@ -395,14 +396,14 @@
+ # Call glscene.idle()
+ self.glscene.idle(widget.allocation.width,
+ widget.allocation.height)
+- return gtk.TRUE
++ return True
+
+ def __idle_add(self):
+ """Add idle function.
+ """
+ if isinstance(self.glscene, GLSceneIdle):
+ if self.__idle_id == 0:
+- self.__idle_id = gtk.idle_add(self.__idle, self)
++ self.__idle_id = gobject.idle_add(self.__idle, self)
+
+ def __idle_remove(self):
+ """Remove idle function.
+@@ -437,14 +438,14 @@
+ if self.__enable_idle:
+ self.__idle_add()
+
+- return gtk.TRUE
++ return True
+
+ def __unmap_event(self, widget, event):
+ """'unmap_event' signal handler.
+ """
+ self.__timeout_remove()
+ self.__idle_remove()
+- return gtk.TRUE
++ return True
+
+ def __visibility_notify_event(self, widget, event):
+ """'visibility_notify_event' signal handler.
+@@ -461,7 +462,7 @@
+ else:
+ self.__idle_add()
+
+- return gtk.TRUE
++ return True
+
+
+ ### Simple OpenGL application driver
+@@ -474,8 +475,8 @@
+ self.set_title(name)
+ if sys.platform != 'win32':
+ self.set_resize_mode(gtk.RESIZE_IMMEDIATE)
+- self.set_reallocate_redraws(gtk.TRUE)
+- self.connect('destroy', gtk.mainquit)
++ self.set_reallocate_redraws(True)
++ self.connect('destroy', gtk.main_quit)
+
+ self.glarea = GLArea(glscene)
+ self.glarea.set_size_request(300, 300)
diff --git a/dev-python/pygtkglext/files/digest-pygtkglext-1.0.1-r1 b/dev-python/pygtkglext/files/digest-pygtkglext-1.0.1-r1
new file mode 100644
index 000000000000..6ad99e35e86b
--- /dev/null
+++ b/dev-python/pygtkglext/files/digest-pygtkglext-1.0.1-r1
@@ -0,0 +1 @@
+MD5 b34d61b427e5ade8791b6e4441e85793 pygtkglext-1.0.1.tar.bz2 321263
diff --git a/dev-python/pygtkglext/pygtkglext-1.0.1-r1.ebuild b/dev-python/pygtkglext/pygtkglext-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..7919b2668c64
--- /dev/null
+++ b/dev-python/pygtkglext/pygtkglext-1.0.1-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pygtkglext/pygtkglext-1.0.1-r1.ebuild,v 1.1 2006/01/16 21:08:43 liquidx Exp $
+
+inherit python eutils
+
+DESCRIPTION="Python bindings to GtkGLExt"
+HOMEPAGE="http://gtkglext.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gtkglext/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=dev-lang/python-2.3
+ >=dev-python/pygtk-2.8
+ >=dev-libs/glib-2.0
+ >=x11-libs/gtk+-2.0
+ >=x11-libs/gtkglext-1.0.0
+ dev-python/pyopengl
+ virtual/opengl
+ virtual/glu"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+ epatch ${FILESDIR}/${PV}-gtk28.patch
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc README AUTHORS ChangeLog
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/*.py
+}
+
+pkg_postinst() {
+ python_version
+ python_mod_optimize /usr/lib/python${PYVER}/site-packages/gtk-2.0
+}
+
+pkg_postrm() {
+ python_mod_cleanup
+}