[60222] trunk/dports/gnome

snc at macports.org snc at macports.org
Fri Nov 6 07:19:14 PST 2009


Revision: 60222
          http://trac.macports.org/changeset/60222
Author:   snc at macports.org
Date:     2009-11-06 07:19:13 -0800 (Fri, 06 Nov 2009)
Log Message:
-----------
created gnome-python26-extras, ticket #20608

Added Paths:
-----------
    trunk/dports/gnome/gnome-python26-extras/
    trunk/dports/gnome/gnome-python26-extras/Portfile
    trunk/dports/gnome/gnome-python26-extras/files/
    trunk/dports/gnome/gnome-python26-extras/files/patch-configure.diff
    trunk/dports/gnome/gnome-python26-extras/files/patch-pygobject

Added: trunk/dports/gnome/gnome-python26-extras/Portfile
===================================================================
--- trunk/dports/gnome/gnome-python26-extras/Portfile	                        (rev 0)
+++ trunk/dports/gnome/gnome-python26-extras/Portfile	2009-11-06 15:19:13 UTC (rev 60222)
@@ -0,0 +1,69 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                gnome-python26-extras
+version             2.25.3
+
+categories          gnome python
+platforms           darwin
+maintainers         wanadoo.fr:neric27 openmaintainer
+
+description         "Extra" Python modules for some GNOME Desktop libraries.
+long_description    ${description}
+
+homepage            http://www.pygtk.org/
+
+set myname          gnome-python-extras
+set branch          [join [lrange [split ${version} .] 0 1] .]
+
+master_sites        gnome:sources/${myname}/${branch}
+distfiles           ${myname}-${version}.tar.bz2
+
+checksums           md5     9f3b7ec5c57130b96061cb486b79c076 \
+                    sha1    e69e5288466c960ed6f985bb10c9969b21ed85a4 \
+                    rmd160  e09bc0152512e2caa61626a7dc788d7336f24e46
+
+use_bzip2           yes
+
+depends_lib         port:py26-gnome \
+                    port:gdl \
+                    port:libgda4 \
+                    port:libgtkhtml \
+                    port:gtkspell2
+
+patchfiles          patch-pygobject \
+                    patch-configure.diff
+
+worksrcdir          ${myname}-${version}
+
+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.pkg_config_path   ${python.prefix}/lib/pkgconfig
+
+configure.python        ${python.bin}
+configure.env-append    PYGTK_CODEGEN=${frameworks_dir}/Python.framework/Versions/2.6/bin/pygtk-codegen-2.0
+
+platform darwin 9 {
+    post-patch {
+        reinplace "s|-export-symbols-regex.*||g" \
+            ${worksrcpath}/egg/recent/Makefile.in \
+            ${worksrcpath}/egg/tray/Makefile.in \
+            ${worksrcpath}/gda/Makefile.in \
+            ${worksrcpath}/gdl/Makefile.in \
+            ${worksrcpath}/gksu/Makefile.in \
+            ${worksrcpath}/gksu2/Makefile.in \
+            ${worksrcpath}/gtkhtml2/Makefile.in \
+            ${worksrcpath}/gtkspell/Makefile.in
+        reinplace "s|-export-symbols-regex.*|\\\\|g" \
+            ${worksrcpath}/gtkmozembed/Makefile.in
+    }
+}
+
+livecheck.type      regex
+livecheck.url       http://ftp.gnome.org/pub/gnome/sources/${myname}/${branch}/
+livecheck.regex     {LATEST-IS-(\d+(?:\.\d+)*)}


Property changes on: trunk/dports/gnome/gnome-python26-extras/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/gnome/gnome-python26-extras/files/patch-configure.diff
===================================================================
--- trunk/dports/gnome/gnome-python26-extras/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/gnome/gnome-python26-extras/files/patch-configure.diff	2009-11-06 15:19:13 UTC (rev 60222)
@@ -0,0 +1,11 @@
+--- configure.orig	2009-07-28 22:04:28.000000000 +0200
++++ configure	2009-07-28 22:05:29.000000000 +0200
+@@ -20725,7 +20725,7 @@
+         python_path=`dirname $PYTHON | sed "s,/bin.*$,,"`
+         for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
+ 		if test -e "$i"; then
+-	                python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
++	                python_path=`find $i -type l -name libpython$PYTHON_VERSION.* -print | sed "1q"`
+         	        if test -n "$python_path" ; then
+ 				python_lib="python$PYTHON_VERSION"
+                 	        break

Added: trunk/dports/gnome/gnome-python26-extras/files/patch-pygobject
===================================================================
--- trunk/dports/gnome/gnome-python26-extras/files/patch-pygobject	                        (rev 0)
+++ trunk/dports/gnome/gnome-python26-extras/files/patch-pygobject	2009-11-06 15:19:13 UTC (rev 60222)
@@ -0,0 +1,18 @@
+diff -rwub gnome-python-extras-2.14.2.orig/gda/gda.override gnome-python-extras-2.14.2/gda/gda.override
+--- gda/gda.override	2007-01-31 02:23:53.000000000 -0800
++++ gda/gda.override	2007-01-31 02:24:52.000000000 -0800
+@@ -1,5 +1,6 @@
+ %%
+ headers
++#define NO_IMPORT_PYGOBJECT 1
+ #include <Python.h>
+ #include <pygobject.h>
+ #include <libgda/gda-server-provider.h>
+diff -rwub gnome-python-extras-2.14.2.orig/gda/pygdavalue_conversions.h gnome-python-extras-2.14.2/gda/pygdavalue_conversions.h
+--- gda/pygdavalue_conversions.h	2007-01-31 02:23:53.000000000 -0800
++++ gda/pygdavalue_conversions.h	2007-01-31 02:25:43.000000000 -0800
+@@ -1,3 +1,4 @@
++#define NO_IMPORT_PYGOBJECT 1
+ #include <pygobject.h>
+ #include <libgda/libgda.h>
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091106/7730b1d1/attachment.html>


More information about the macports-changes mailing list