[55720] trunk/dports/python
snc at macports.org
snc at macports.org
Mon Aug 17 13:14:55 PDT 2009
Revision: 55720
http://trac.macports.org/changeset/55720
Author: snc at macports.org
Date: 2009-08-17 13:14:54 -0700 (Mon, 17 Aug 2009)
Log Message:
-----------
created py26-gnome with pygobject patch, ticket #20612
Added Paths:
-----------
trunk/dports/python/py26-gnome/
trunk/dports/python/py26-gnome/Portfile
trunk/dports/python/py26-gnome/files/
trunk/dports/python/py26-gnome/files/bonobo.diff
Added: trunk/dports/python/py26-gnome/Portfile
===================================================================
--- trunk/dports/python/py26-gnome/Portfile (rev 0)
+++ trunk/dports/python/py26-gnome/Portfile 2009-08-17 20:14:54 UTC (rev 55720)
@@ -0,0 +1,70 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name py26-gnome
+set my_name gnome-python
+version 2.26.1
+set branch [join [lrange [split $version .] 0 1] .]
+categories python gnome
+platforms darwin
+maintainers wanadoo.fr:neric27 openmaintainer
+description gnome-python is a set of python interfaces to gnome-libs.
+long_description ${description}
+
+homepage http://www.pygtk.org/
+master_sites gnome:sources/$my_name/$branch/
+use_bzip2 yes
+distname $my_name-$version
+
+checksums md5 e5dcae40b2c291126843680dbed924a8 \
+ sha1 789627d4107aa50cd7fc763c4de015032346524e \
+ rmd160 054901ecd209953225ccfa725fdd9164447fbb49
+
+depends_build port:pkgconfig
+
+depends_lib port:libgnomeui \
+ port:py26-gtk \
+ port:py26-orbit \
+ port:libgnome \
+ port:python26 \
+ port:libgnomecanvas \
+ port:gnome-vfs \
+ port:gconf \
+ port:libbonobo \
+ port:libbonoboui
+
+
+set python.branch 2.6
+set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
+set python.bin ${python.prefix}/bin/python${python.branch}
+
+configure.args-append --prefix=${python.prefix}
+configure.env-append PYGOBJECT_CODEGEN=${python.prefix}/bin/pygobject-codegen-2.0
+configure.pkg_config_path ${python.prefix}/lib/pkgconfig
+
+configure.python ${python.bin}
+
+use_parallel_build yes
+
+# fix an import error of bonobo.ui
+# when gtk quartz is in use
+variant quartz description {fix bonobo import error when gtk +quartz is used} {
+ patchfiles-append bonobo.diff
+}
+
+platform darwin 9 {
+ post-patch {
+ reinplace "s| -export-symbols-regex.*||g" \
+ ${worksrcpath}/bonobo/Makefile.in \
+ ${worksrcpath}/gconf/Makefile.in \
+ ${worksrcpath}/gnome/Makefile.in \
+ ${worksrcpath}/gnomecanvas/Makefile.in \
+ ${worksrcpath}/gnomevfs/Makefile.in
+ }
+}
+
+livecheck.check regex
+livecheck.url http://ftp.gnome.org/pub/gnome/sources/$my_name/$branch/
+livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Property changes on: trunk/dports/python/py26-gnome/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py26-gnome/files/bonobo.diff
===================================================================
--- trunk/dports/python/py26-gnome/files/bonobo.diff (rev 0)
+++ trunk/dports/python/py26-gnome/files/bonobo.diff 2009-08-17 20:14:54 UTC (rev 55720)
@@ -0,0 +1,49 @@
+diff -ru bonobo.orig/bonobo.defs bonobo/bonobo.defs
+--- bonobo.orig/bonobo.defs 2009-08-08 20:51:13.000000000 +0200
++++ bonobo/bonobo.defs 2009-08-08 20:52:00.000000000 +0200
+@@ -777,11 +777,6 @@
+ (return-type "gboolean")
+ )
+
+-(define-function setup_x_error_handler
+- (c-name "bonobo_setup_x_error_handler")
+- (return-type "none")
+-)
+-
+ (define-function orb
+ (c-name "bonobo_orb")
+ (return-type "CORBA_ORB")
+diff -ru bonobo.orig/bonoboui.defs bonobo/bonoboui.defs
+--- bonobo.orig/bonoboui.defs 2009-08-08 20:51:13.000000000 +0200
++++ bonobo/bonoboui.defs 2009-08-08 20:52:37.000000000 +0200
+@@ -1502,11 +1502,6 @@
+ )
+ )
+
+-(define-function setup_x_error_handler
+- (c-name "bonobo_setup_x_error_handler")
+- (return-type "none")
+-)
+-
+ (define-function debug_shutdown
+ (c-name "bonobo_ui_debug_shutdown")
+ (return-type "int")
+diff -ru bonobo.orig/bonobouimodule.c bonobo/bonobouimodule.c
+--- bonobo.orig/bonobouimodule.c 2009-08-08 20:51:13.000000000 +0200
++++ bonobo/bonobouimodule.c 2009-08-08 20:54:21.000000000 +0200
+@@ -25,15 +25,6 @@
+
+ init_pygtk();
+
+- /* we don't call bonobo_ui_init() here, as all it does is call
+- * bonobo_init() (done by the bonobo module we import),
+- * gnome_program_init() (meant to be done by the user), and
+- * gtk_init() (done by the gtk module we import), and call
+- * bonobo_setup_x_error_handler(). This last call is all that is
+- * left. */
+- bonobo_setup_x_error_handler();
+-
+-
+ pybonoboui_register_classes(d);
+
+ /* add anything else to the module dictionary (such as constants) */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090817/1b9c1e80/attachment.html>
More information about the macports-changes
mailing list