[99574] trunk/dports/python

mmoll at macports.org mmoll at macports.org
Sat Nov 10 06:53:45 PST 2012


Revision: 99574
          http://trac.macports.org//changeset/99574
Author:   mmoll at macports.org
Date:     2012-11-10 06:53:45 -0800 (Sat, 10 Nov 2012)
Log Message:
-----------
py-pyside, py-shiboken: enable support for python 3.x

Modified Paths:
--------------
    trunk/dports/python/py-pyside/Portfile
    trunk/dports/python/py-shiboken/Portfile

Modified: trunk/dports/python/py-pyside/Portfile
===================================================================
--- trunk/dports/python/py-pyside/Portfile	2012-11-10 11:56:35 UTC (rev 99573)
+++ trunk/dports/python/py-pyside/Portfile	2012-11-10 14:53:45 UTC (rev 99574)
@@ -10,7 +10,7 @@
 revision            1
 set          qt.ver 4.8
 revision            1
-python.versions     25 26 27
+python.versions     25 26 27 31 32 33
 python.default_version 27
 categories          python devel
 maintainers         openmaintainer mmoll

Modified: trunk/dports/python/py-shiboken/Portfile
===================================================================
--- trunk/dports/python/py-shiboken/Portfile	2012-11-10 11:56:35 UTC (rev 99573)
+++ trunk/dports/python/py-shiboken/Portfile	2012-11-10 14:53:45 UTC (rev 99574)
@@ -8,7 +8,7 @@
 name                py-${realname}
 version             1.1.2
 revision            1
-python.versions     25 26 27
+python.versions     25 26 27 31 32 33
 python.default_version 27
 categories          python devel
 maintainers         openmaintainer mmoll
@@ -32,6 +32,8 @@
     pre-patch {
         # MacOS cannot have a file and directory with the same name, as occurs here
         system "mv -v '${worksrcpath}/generator/shiboken' '${worksrcpath}/generator/shiboken.d'"
+        reinplace "s|3.2 3.1 3.0|${python.branch}|g" ${worksrcpath}/cmake/Modules/FindPython3Libs.cmake
+        reinplace "s|NAMES python3.2mu python3.2m python3.2u python3.2 python3.1 python3.0 python3|NAMES python${python.branch}|g" ${worksrcpath}/cmake/Modules/FindPython3Interp.cmake
     }
 
     patchfiles          default_visibility.patch \
@@ -45,6 +47,9 @@
                     -DPYTHON_EXECUTABLE=${python.bin} \
                     -DPYTHON_LIBRARY=${python.lib} \
                     -DPYTHON_INCLUDE_DIR=${python.include}
+    if {${python.version} >= 30} {
+        configure.args-append -DUSE_PYTHON3:BOOL=TRUE -DPYTHON3_LIBRARY=${python.lib} -DPYTHON3_INCLUDE_DIR=${python.include}m
+    }
     build.cmd       make
     build.target    all
     destroot.cmd    make
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121110/9587888a/attachment.html>


More information about the macports-changes mailing list