[140992] trunk/dports/devel/dbus-python/Portfile

michaelld at macports.org michaelld at macports.org
Wed Oct 7 09:28:47 PDT 2015


Revision: 140992
          https://trac.macports.org/changeset/140992
Author:   michaelld at macports.org
Date:     2015-10-07 09:28:47 -0700 (Wed, 07 Oct 2015)
Log Message:
-----------
dbus-python*:
+ add support for Python 3.5;
+ fix --includedir to use the correct abiflags, if any, that Python was build with; addresses ticket #48273.

Modified Paths:
--------------
    trunk/dports/devel/dbus-python/Portfile

Modified: trunk/dports/devel/dbus-python/Portfile
===================================================================
--- trunk/dports/devel/dbus-python/Portfile	2015-10-07 15:59:23 UTC (rev 140991)
+++ trunk/dports/devel/dbus-python/Portfile	2015-10-07 16:28:47 UTC (rev 140992)
@@ -5,9 +5,9 @@
 
 name            dbus-python
 version         1.2.0
-revision        1
+revision        2
 
-set python_versions {27 34}
+set python_versions {27 34 35}
 
 # this default version should stay synchronized with python_get_default_version
 #    in the python PortGroup
@@ -69,15 +69,21 @@
             port:python${python_version}
         
         set python_prefix ${frameworks_dir}/Python.framework/Versions/${python_branch}
-                
+
         configure.pre_args-replace --prefix=${prefix} --prefix=${python_prefix}
         
         configure.args                                                    \
             --docdir=${prefix}/share/doc/${subport}                       \
-            --includedir=${python_prefix}/include/python${python_branch}  \
             --disable-html-docs                                           \
             --disable-api-docs
-        
+
+        # determine any abiflags, for Python 3.0+ only
+        set abiflag ''
+        if {${python_version} > 30} {
+            set abiflag [exec ${prefix}/bin/python${python_branch}-config --abiflags]
+        }
+        configure.args-append --includedir=${python_prefix}/include/python${python_branch}${abiflag}
+
         configure.pkg_config_path  ${python_prefix}/lib/pkgconfig
         
         configure.python    ${prefix}/bin/python${python_branch}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151007/1920b929/attachment.html>


More information about the macports-changes mailing list