[70739] trunk/dports/comms/telepathy-farsight

devans at macports.org devans at macports.org
Thu Aug 19 15:03:30 PDT 2010


Revision: 70739
          http://trac.macports.org/changeset/70739
Author:   devans at macports.org
Date:     2010-08-19 15:03:29 -0700 (Thu, 19 Aug 2010)
Log Message:
-----------
telepathy-farsight: update to version 0.0.14, add +python variant to enable python bindings.

Modified Paths:
--------------
    trunk/dports/comms/telepathy-farsight/Portfile

Added Paths:
-----------
    trunk/dports/comms/telepathy-farsight/files/
    trunk/dports/comms/telepathy-farsight/files/patch-configure.diff
    trunk/dports/comms/telepathy-farsight/files/patch-python-pytpfarsightmodule.c.diff

Modified: trunk/dports/comms/telepathy-farsight/Portfile
===================================================================
--- trunk/dports/comms/telepathy-farsight/Portfile	2010-08-19 21:56:31 UTC (rev 70738)
+++ trunk/dports/comms/telepathy-farsight/Portfile	2010-08-19 22:03:29 UTC (rev 70739)
@@ -4,7 +4,7 @@
 PortSystem 1.0
 
 name            telepathy-farsight
-version         0.0.12
+version         0.0.14
 description     The ${name} component of Telepathy - a Flexible Communications Framework
 long_description \
                 The ${name} component of Telepathy - a Flexible Communications Framework. \
@@ -18,22 +18,41 @@
 homepage        http://telepathy.freedesktop.org/wiki/
 master_sites    http://telepathy.freedesktop.org/releases/${name}/
 
-checksums       md5     1605a4c411ca1d26c3e395d8c69ccf3f \
-                sha1    9343a85e1aac4fb2ae59389a638b8f3860a3f3f2 \
-                rmd160  887a84d7d9c08b9aa15fb616d567a278ec99239a
+checksums       md5     1e6af31be4d5cdfc72a3f06542de96c0 \
+                sha1    6a9f6f421af2f5ce5ec3b01fd8ff713ebb06ba95 \
+                rmd160  0803a38a691093ecc370ebbc4634664c30e6826b
 
 depends_build   port:pkgconfig \
                 port:gtk-doc \
-                port:python25
 
 depends_lib     port:telepathy-glib \
-                port:farsight2 \
-                port:py25-gst-python
+                port:farsight2
 
-configure.python ${prefix}/bin/python2.5
+#
+# farsight2 is not universal
+#
+universal_variant   no
 
-configure.args  --disable-python
+patchfiles      patch-python-pytpfarsightmodule.c.diff \
+                patch-configure.diff
 
+post-patch      {
+                    reinplace "s|__MP_PYTHON_PREFIX__|${frameworks_dir}/Python.framework/Versions/2.6|" ${worksrcpath}/configure
+                }
+
+configure.python ${prefix}/bin/python2.6
+
+configure.args  --disable-python \
+                --disable-silent-rules
+
+variant python description {Enable building of Python bindings} {
+                configure.args-delete       --disable-python
+                depends_lib-append          port:py26-gst-python
+                set python_pkg_config_path  ${frameworks_dir}/Python.framework/Versions/2.6/lib/pkgconfig
+                configure.pkg_config_path   ${python_pkg_config_path}
+                build.env-append            PKG_CONFIG_PATH=${python_pkg_config_path}
+}
+
 livecheck.type  regex
 livecheck.url   ${master_sites}
 livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"

Added: trunk/dports/comms/telepathy-farsight/files/patch-configure.diff
===================================================================
--- trunk/dports/comms/telepathy-farsight/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/comms/telepathy-farsight/files/patch-configure.diff	2010-08-19 22:03:29 UTC (rev 70739)
@@ -0,0 +1,14 @@
+--- configure.orig	2010-08-19 13:33:54.000000000 -0700
++++ configure	2010-08-19 13:34:44.000000000 -0700
+@@ -12593,9 +12593,9 @@
+ 
+ 
+ 
+-  PYTHON_PREFIX='${prefix}'
++  PYTHON_PREFIX='__MP_PYTHON_PREFIX__'
+ 
+-  PYTHON_EXEC_PREFIX='${exec_prefix}'
++  PYTHON_EXEC_PREFIX='__MP_PYTHON_PREFIX__'
+ 
+ 
+ 

Added: trunk/dports/comms/telepathy-farsight/files/patch-python-pytpfarsightmodule.c.diff
===================================================================
--- trunk/dports/comms/telepathy-farsight/files/patch-python-pytpfarsightmodule.c.diff	                        (rev 0)
+++ trunk/dports/comms/telepathy-farsight/files/patch-python-pytpfarsightmodule.c.diff	2010-08-19 22:03:29 UTC (rev 70739)
@@ -0,0 +1,7 @@
+--- python/pytpfarsightmodule.c.orig	2010-08-19 13:30:35.000000000 -0700
++++ python/pytpfarsightmodule.c	2010-08-19 13:31:33.000000000 -0700
+@@ -1,3 +1,4 @@
++#define NO_IMPORT_PYGOBJECT
+ #include <pygobject.h>
+ 
+ #include <gst/gst.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100819/fd0eae9f/attachment.html>


More information about the macports-changes mailing list