summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-08-08 13:03:11 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-08-08 13:03:11 +0800
commitb9650712c3dd383b10e4bf5477a252e73a59c43a (patch)
treeec1063d2c917a310b84b42ce264b713ee74f3d33 /devel
parentf4b1eb29a588320c67cb524e456b268edf722cb4 (diff)
downloadmarcuscom-ports-b9650712c3dd383b10e4bf5477a252e73a59c43a.tar
marcuscom-ports-b9650712c3dd383b10e4bf5477a252e73a59c43a.tar.gz
marcuscom-ports-b9650712c3dd383b10e4bf5477a252e73a59c43a.tar.bz2
marcuscom-ports-b9650712c3dd383b10e4bf5477a252e73a59c43a.tar.lz
marcuscom-ports-b9650712c3dd383b10e4bf5477a252e73a59c43a.tar.xz
marcuscom-ports-b9650712c3dd383b10e4bf5477a252e73a59c43a.tar.zst
marcuscom-ports-b9650712c3dd383b10e4bf5477a252e73a59c43a.zip
Restore GDK threads functionality while we wait for 2.15.3.
Obtained from: GNOME SVN git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11262 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r--devel/py-gobject/Makefile3
-rw-r--r--devel/py-gobject/files/patch-gobject_gobjectmodule.c26
2 files changed, 28 insertions, 1 deletions
diff --git a/devel/py-gobject/Makefile b/devel/py-gobject/Makefile
index d79058351..35dc90568 100644
--- a/devel/py-gobject/Makefile
+++ b/devel/py-gobject/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/devel/py-gobject/Makefile,v 1.24 2008/07/26 17:10:46 marcus Exp $
+# $MCom: ports/devel/py-gobject/Makefile,v 1.25 2008/08/06 04:22:50 mezz Exp $
#
PORTNAME= gobject
PORTVERSION= 2.15.2
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/devel/py-gobject/files/patch-gobject_gobjectmodule.c b/devel/py-gobject/files/patch-gobject_gobjectmodule.c
new file mode 100644
index 000000000..ad3bc40b2
--- /dev/null
+++ b/devel/py-gobject/files/patch-gobject_gobjectmodule.c
@@ -0,0 +1,26 @@
+--- gobject/gobjectmodule.c.orig 2008-08-08 00:58:57.000000000 -0400
++++ gobject/gobjectmodule.c 2008-08-08 01:00:31.000000000 -0400
+@@ -1944,6 +1944,14 @@ pyg_threads_init (PyObject *unused, PyOb
+ return Py_None;
+ }
+
++int
++pygobject_enable_threads(void)
++{
++ if (!pyglib_enable_threads())
++ return -1;
++ return 0;
++}
++
+ static PyObject *
+ pyg_signal_accumulator_true_handled(PyObject *unused, PyObject *args)
+ {
+@@ -2639,7 +2647,7 @@ struct _PyGObject_Functions pygobject_ap
+ pyg_flags_from_gtype,
+
+ FALSE, /* threads_enabled */
+- pyglib_enable_threads,
++ pygobject_enable_threads,
+ pygobject_gil_state_ensure,
+ pygobject_gil_state_release,
+ pyg_register_class_init,