[91978] trunk/dports/python
afb at macports.org
afb at macports.org
Sat Apr 14 04:15:16 PDT 2012
Revision: 91978
https://trac.macports.org/changeset/91978
Author: afb at macports.org
Date: 2012-04-14 04:15:16 -0700 (Sat, 14 Apr 2012)
Log Message:
-----------
py2*-gobject: avoid startup warnings (#34040)
Modified Paths:
--------------
trunk/dports/python/py25-gobject/Portfile
trunk/dports/python/py26-gobject/Portfile
trunk/dports/python/py27-gobject/Portfile
Added Paths:
-----------
trunk/dports/python/py25-gobject/files/patch-gi_pygi.h
trunk/dports/python/py25-gobject/files/patch-gio_gio-types.defs
trunk/dports/python/py26-gobject/files/patch-gio_gio-types.defs
trunk/dports/python/py27-gobject/files/patch-gio_gio-types.defs
Modified: trunk/dports/python/py25-gobject/Portfile
===================================================================
--- trunk/dports/python/py25-gobject/Portfile 2012-04-14 11:14:14 UTC (rev 91977)
+++ trunk/dports/python/py25-gobject/Portfile 2012-04-14 11:15:16 UTC (rev 91978)
@@ -7,6 +7,7 @@
platforms darwin
set my_name pygobject
version 2.26.0
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories python gnome
license LGPL-2.1+
@@ -35,6 +36,8 @@
port:libxslt \
port:python25
+patchfiles patch-gi_pygi.h patch-gio_gio-types.defs
+
configure.args --disable-glibtest \
--disable-introspection
Copied: trunk/dports/python/py25-gobject/files/patch-gi_pygi.h (from rev 91891, trunk/dports/python/py26-gobject/files/patch-gi_pygi.h)
===================================================================
--- trunk/dports/python/py25-gobject/files/patch-gi_pygi.h (rev 0)
+++ trunk/dports/python/py25-gobject/files/patch-gi_pygi.h 2012-04-14 11:15:16 UTC (rev 91978)
@@ -0,0 +1,11 @@
+--- gi/pygi.h.orig 2010-11-09 20:22:40.000000000 -0600
++++ gi/pygi.h 2010-11-09 20:23:09.000000000 -0600
+@@ -152,7 +152,7 @@
+ pygi_get_property_value (PyGObject *instance,
+ const gchar *attr_name)
+ {
+- return -1;
++ return NULL;
+ }
+
+ static inline gint
Added: trunk/dports/python/py25-gobject/files/patch-gio_gio-types.defs
===================================================================
--- trunk/dports/python/py25-gobject/files/patch-gio_gio-types.defs (rev 0)
+++ trunk/dports/python/py25-gobject/files/patch-gio_gio-types.defs 2012-04-14 11:15:16 UTC (rev 91978)
@@ -0,0 +1,30 @@
+https://bugzilla.gnome.org/show_bug.cgi?id=668522
+--- gio/gio-types.defs
++++ gio/gio-types.defs
+@@ -526,7 +526,7 @@
+ )
+ )
+
+-(define-enum MountMountFlags
++(define-flags MountMountFlags
+ (in-module "gio")
+ (c-name "GMountMountFlags")
+ (gtype-id "G_TYPE_MOUNT_MOUNT_FLAGS")
+@@ -545,7 +545,7 @@
+ )
+ )
+
+-(define-enum DriveStartFlags
++(define-flags DriveStartFlags
+ (in-module "gio")
+ (c-name "GDriveStartFlags")
+ (gtype-id "G_TYPE_DRIVE_START_FLAGS")
+@@ -770,7 +770,7 @@
+ )
+ )
+
+-(define-enum SocketMsgFlags
++(define-flags SocketMsgFlags
+ (in-module "gio")
+ (c-name "GSocketMsgFlags")
+ (gtype-id "G_TYPE_SOCKET_MSG_FLAGS")
Modified: trunk/dports/python/py26-gobject/Portfile
===================================================================
--- trunk/dports/python/py26-gobject/Portfile 2012-04-14 11:14:14 UTC (rev 91977)
+++ trunk/dports/python/py26-gobject/Portfile 2012-04-14 11:15:16 UTC (rev 91978)
@@ -5,12 +5,12 @@
name py26-gobject
platforms darwin
-license LGPL-2.1+
set my_name pygobject
version 2.26.0
-revision 1
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories python gnome
+license LGPL-2.1+
maintainers mcalhoun openmaintainer
description Python bindings for GObject.
@@ -39,6 +39,8 @@
port:libffi \
port:python26
+patchfiles patch-gi_pygi.h patch-gio_gio-types.defs
+
set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
configure.pre_args-delete --prefix=${prefix}
@@ -49,8 +51,6 @@
configure.python ${prefix}/bin/python2.6
-patchfiles patch-gi_pygi.h
-
post-destroot {
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
Added: trunk/dports/python/py26-gobject/files/patch-gio_gio-types.defs
===================================================================
--- trunk/dports/python/py26-gobject/files/patch-gio_gio-types.defs (rev 0)
+++ trunk/dports/python/py26-gobject/files/patch-gio_gio-types.defs 2012-04-14 11:15:16 UTC (rev 91978)
@@ -0,0 +1,30 @@
+https://bugzilla.gnome.org/show_bug.cgi?id=668522
+--- gio/gio-types.defs
++++ gio/gio-types.defs
+@@ -526,7 +526,7 @@
+ )
+ )
+
+-(define-enum MountMountFlags
++(define-flags MountMountFlags
+ (in-module "gio")
+ (c-name "GMountMountFlags")
+ (gtype-id "G_TYPE_MOUNT_MOUNT_FLAGS")
+@@ -545,7 +545,7 @@
+ )
+ )
+
+-(define-enum DriveStartFlags
++(define-flags DriveStartFlags
+ (in-module "gio")
+ (c-name "GDriveStartFlags")
+ (gtype-id "G_TYPE_DRIVE_START_FLAGS")
+@@ -770,7 +770,7 @@
+ )
+ )
+
+-(define-enum SocketMsgFlags
++(define-flags SocketMsgFlags
+ (in-module "gio")
+ (c-name "GSocketMsgFlags")
+ (gtype-id "G_TYPE_SOCKET_MSG_FLAGS")
Modified: trunk/dports/python/py27-gobject/Portfile
===================================================================
--- trunk/dports/python/py27-gobject/Portfile 2012-04-14 11:14:14 UTC (rev 91977)
+++ trunk/dports/python/py27-gobject/Portfile 2012-04-14 11:15:16 UTC (rev 91978)
@@ -7,7 +7,7 @@
platforms darwin
set my_name pygobject
version 2.26.0
-revision 1
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories python gnome
license LGPL-2.1+
@@ -39,7 +39,7 @@
port:libffi \
port:python27
-patchfiles patch-gi_pygi.h
+patchfiles patch-gi_pygi.h patch-gio_gio-types.defs
set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
Added: trunk/dports/python/py27-gobject/files/patch-gio_gio-types.defs
===================================================================
--- trunk/dports/python/py27-gobject/files/patch-gio_gio-types.defs (rev 0)
+++ trunk/dports/python/py27-gobject/files/patch-gio_gio-types.defs 2012-04-14 11:15:16 UTC (rev 91978)
@@ -0,0 +1,30 @@
+https://bugzilla.gnome.org/show_bug.cgi?id=668522
+--- gio/gio-types.defs
++++ gio/gio-types.defs
+@@ -526,7 +526,7 @@
+ )
+ )
+
+-(define-enum MountMountFlags
++(define-flags MountMountFlags
+ (in-module "gio")
+ (c-name "GMountMountFlags")
+ (gtype-id "G_TYPE_MOUNT_MOUNT_FLAGS")
+@@ -545,7 +545,7 @@
+ )
+ )
+
+-(define-enum DriveStartFlags
++(define-flags DriveStartFlags
+ (in-module "gio")
+ (c-name "GDriveStartFlags")
+ (gtype-id "G_TYPE_DRIVE_START_FLAGS")
+@@ -770,7 +770,7 @@
+ )
+ )
+
+-(define-enum SocketMsgFlags
++(define-flags SocketMsgFlags
+ (in-module "gio")
+ (c-name "GSocketMsgFlags")
+ (gtype-id "G_TYPE_SOCKET_MSG_FLAGS")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120414/08a52db8/attachment.html>
More information about the macports-changes
mailing list