py2*-gobject: avoid startup warnings (https://trac.macports.org/ticket/34040)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@91978 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Anders F. Björklund
2012-04-14 11:15:16 +00:00
parent 097bac8d51
commit 014f26507e
7 changed files with 110 additions and 6 deletions
+3
View File
@@ -7,6 +7,7 @@ name py25-gobject
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 @@ depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:libxslt \
port:python25
patchfiles patch-gi_pygi.h patch-gio_gio-types.defs
configure.args --disable-glibtest \
--disable-introspection
+11
View File
@@ -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
@@ -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")
+4 -4
View File
@@ -5,12 +5,12 @@ PortSystem 1.0
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 @@ depends_lib path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
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.args-append \
configure.python ${prefix}/bin/python2.6
patchfiles patch-gi_pygi.h
post-destroot {
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
@@ -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")
+2 -2
View File
@@ -7,7 +7,7 @@ name py27-gobject
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 @@ depends_lib path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
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
@@ -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")