[82289] trunk/dports/python

mmoll at macports.org mmoll at macports.org
Thu Aug 11 21:29:24 PDT 2011


Revision: 82289
          http://trac.macports.org/changeset/82289
Author:   mmoll at macports.org
Date:     2011-08-11 21:29:23 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
unify py*-side*, py*-shiboken*

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

Added Paths:
-----------
    trunk/dports/python/py-pyside/
    trunk/dports/python/py-pyside-tools/
    trunk/dports/python/py-shiboken/

Removed Paths:
-------------
    trunk/dports/python/py26-pyside/
    trunk/dports/python/py26-pyside-tools/
    trunk/dports/python/py26-shiboken/
    trunk/dports/python/py27-pyside/
    trunk/dports/python/py27-pyside-tools/
    trunk/dports/python/py27-shiboken/

Modified: trunk/dports/python/py-pyside/Portfile
===================================================================
--- trunk/dports/python/py26-pyside/Portfile	2011-08-11 22:34:53 UTC (rev 82286)
+++ trunk/dports/python/py-pyside/Portfile	2011-08-12 04:29:23 UTC (rev 82289)
@@ -1,11 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup  cmake 1.0
+PortGroup python 1.0
+PortGroup cmake 1.0
 
 set realname        pyside
-name                py26-${realname}
+name                py-${realname}
 version             1.0.5
+python.versions     25 26 27
+python.default_version 27
 categories          python devel
 maintainers         openmaintainer mmoll
 description         LGPL-licensed Python bindings for Qt
@@ -24,10 +27,21 @@
                     sha1    5a3e824622f49d45a1a96b81d47645f03c949bde
 distname            ${realname}-qt4.7+${version}
 use_bzip2           yes
-depends_lib-append  port:qt4-mac port:generatorrunner port:py26-shiboken port:python26
-configure.args-append -DBUILD_TESTS:BOOL=FALSE \
-                    -DSITE_PACKAGE=${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
 
+if {$subport != $name} {
+    depends_lib-append  port:qt4-mac port:generatorrunner \
+                        port:py${python.version}-shiboken \
+                        port:python${python.version}
+    use_configure   yes
+    configure.args-append -DBUILD_TESTS:BOOL=FALSE \
+                        -DSITE_PACKAGE=${prefix}/Library/Frameworks/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages
+    build.cmd       make
+    build.target    all
+    destroot.cmd    make
+    destroot.destdir DESTDIR=${destroot}
+    post-destroot   { }
+}
+
 livecheck.type      regex
 livecheck.url       ${master_sites}
 livecheck.regex     ${realname}-qt4.7\\+(\[0-9.\]+)\\.tar\\.bz2

Modified: trunk/dports/python/py-pyside-tools/Portfile
===================================================================
--- trunk/dports/python/py26-pyside-tools/Portfile	2011-08-11 22:34:53 UTC (rev 82286)
+++ trunk/dports/python/py-pyside-tools/Portfile	2011-08-12 04:29:23 UTC (rev 82289)
@@ -1,11 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup  cmake 1.0
+PortGroup python 1.0
+PortGroup cmake 1.0
 
 set realname        pyside-tools
-name                py26-${realname}
+name                py-${realname}
 version             0.2.12
+python.versions     25 26 27
+python.default_version 27
 categories          python devel
 maintainers         openmaintainer mmoll
 description         Tools for developing PySide applications
@@ -20,11 +23,20 @@
                     sha1    1114d44d3e4d40b5b40c91898d97027100bdb9a7
 distname            ${realname}-${version}
 use_bzip2           yes
-depends_lib-append  port:qt4-mac port:py26-pyside port:python26
-configure.args-append -DBUILD_TESTS:BOOL=FALSE \
-                    -DPYTHON_EXECUTABLE=${prefix}/bin/python2.6 \
-                    -DSITE_PACKAGE=${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
 
+if {$subport != $name} {
+    depends_lib-append  port:qt4-mac port:py${python.version}-pyside port:python${python.version}
+    use_configure   yes
+    configure.args-append -DBUILD_TESTS:BOOL=FALSE \
+                    -DPYTHON_EXECUTABLE=${prefix}/bin/python${python.branch} \
+                    -DSITE_PACKAGE=${prefix}/Library/Frameworks/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages
+    build.cmd       make
+    build.target    all
+    destroot.cmd    make
+    destroot.destdir DESTDIR=${destroot}
+    post-destroot   { }
+}
+
 livecheck.type      regex
 livecheck.url       ${master_sites}
 livecheck.regex     ${realname}-(\[0-9.\]+)\\.tar\\.bz2

Modified: trunk/dports/python/py-shiboken/Portfile
===================================================================
--- trunk/dports/python/py26-shiboken/Portfile	2011-08-11 22:34:53 UTC (rev 82286)
+++ trunk/dports/python/py-shiboken/Portfile	2011-08-12 04:29:23 UTC (rev 82289)
@@ -1,11 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup  cmake 1.0
+PortGroup cmake 1.0
+PortGroup python 1.0
 
 set realname        shiboken
-name                py26-${realname}
+name                py-${realname}
 version             1.0.5
+python.versions     25 26 27
+python.default_version 27
 categories          python devel
 maintainers         openmaintainer mmoll
 description         Plugin for generatorrunner that generates python bindings \
@@ -22,12 +25,21 @@
                     sha1    5f611d113d7b630f5397945e52d7ec10510dbc93
 distname            ${realname}-${version}
 use_bzip2           yes
-depends_lib-append  port:qt4-mac port:apiextractor port:generatorrunner port:python26
-configure.args-append -DBUILD_TESTS:BOOL=FALSE \
-                    -DPYTHON_EXECUTABLE=${prefix}/bin/python2.6 \
-                    -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/libpython2.6.dylib \
-                    -DPYTHON_INCLUDE_DIRS=${prefix}/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
 
+if {$subport != $name} {
+    depends_lib-append  port:qt4-mac port:apiextractor port:generatorrunner port:python${python.version}
+    use_configure   yes
+    configure.args-append -DBUILD_TESTS:BOOL=FALSE \
+                    -DPYTHON_EXECUTABLE=${prefix}/bin/python${python.branch} \
+                    -DPYTHON_LIBRARY=${prefix}/Library/Frameworks/Python.framework/Versions/${python.branch}/lib/python${python.branch}/config/libpython${python.branch}.dylib \
+                    -DPYTHON_INCLUDE_DIRS=${prefix}/Library/Frameworks/Python.framework/Versions/${python.branch}/include/python${python.branch}
+    build.cmd       make
+    build.target    all
+    destroot.cmd    make
+    destroot.destdir DESTDIR=${destroot}
+    post-destroot   { }
+}
+
 livecheck.type      regex
 livecheck.url       ${master_sites}
 livecheck.regex     ${realname}-(\[0-9.\]+)\\.tar\\.bz2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110811/760c61f5/attachment.html>


More information about the macports-changes mailing list