aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authoracm <acm@FreeBSD.org>2006-11-01 12:02:56 +0800
committeracm <acm@FreeBSD.org>2006-11-01 12:02:56 +0800
commit8ceecfd235dd65d58f34a288dee321784500e50c (patch)
tree3e363454b59c22c6de95a826e5a81b0f880c97cd /emulators
parent4443b698eaefec73fce34d023f5e46adaa2484b2 (diff)
downloadfreebsd-ports-gnome-8ceecfd235dd65d58f34a288dee321784500e50c.tar.gz
freebsd-ports-gnome-8ceecfd235dd65d58f34a288dee321784500e50c.tar.zst
freebsd-ports-gnome-8ceecfd235dd65d58f34a288dee321784500e50c.zip
- Replace some thread function marked like deprecated in the latest version of
py-gtk2
Diffstat (limited to 'emulators')
-rw-r--r--emulators/xgngeo/Makefile4
-rw-r--r--emulators/xgngeo/files/patch-data-py_command.py23
2 files changed, 27 insertions, 0 deletions
diff --git a/emulators/xgngeo/Makefile b/emulators/xgngeo/Makefile
index 1e58c55775ad..2a577cb69390 100644
--- a/emulators/xgngeo/Makefile
+++ b/emulators/xgngeo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= xgngeo
PORTVERSION= 16
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= emulators games
MASTER_SITES= ${MASTER_SITE_BERLIOS}
@@ -38,6 +39,9 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
post-patch:
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/data/py/configfile.py
+ @${REINPLACE_CMD} -e 's|gtk.threads_init|gtk.gdk.threads_init|g' -e \
+ 's|gtk.threads_enter|gtk.gdk.threads_enter|g' -e \
+ 's|gtk.threads_leave|gtk.gdk.threads_leave|g' ${WRKSRC}/data/py/__init__.py
post-install:
.if !defined(NOPORTDOCS)
diff --git a/emulators/xgngeo/files/patch-data-py_command.py b/emulators/xgngeo/files/patch-data-py_command.py
new file mode 100644
index 000000000000..68276ab10237
--- /dev/null
+++ b/emulators/xgngeo/files/patch-data-py_command.py
@@ -0,0 +1,23 @@
+--- data/py/command.py Tue Oct 17 22:10:04 2006
++++ data/py/command.py Tue Oct 17 22:10:28 2006
+@@ -26,6 +26,8 @@
+ # $Source: /cvsroot/xgngeo/xgngeo/data/py/command.py,v $
+ __date__ = "$Date: 2006/07/23 15:02:17 $"
+
++import gtk
++
+ from threading import Thread
+ from gtk import threads_enter, threads_leave
+ from os import popen
+@@ -37,9 +39,9 @@
+ self.output = ""
+
+ def run(self):
+- threads_enter()
++ gtk.gdk.threads_enter()
+ pipe = popen(self.command,"r")
+- threads_leave()
++ gtk.gdk.threads_leave()
+ self.output = pipe.read()
+
+ def get_output(self):