[111841] trunk/dports/python/py-pyside-tools/Portfile

mmoll at macports.org mmoll at macports.org
Thu Oct 3 09:38:55 PDT 2013


Revision: 111841
          https://trac.macports.org/changeset/111841
Author:   mmoll at macports.org
Date:     2013-10-03 09:38:55 -0700 (Thu, 03 Oct 2013)
Log Message:
-----------
py-pyside-tools: avoid conflicts between subports, update to latest version, add py3[23] subports, use more python PortGroup variables.

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

Modified: trunk/dports/python/py-pyside-tools/Portfile
===================================================================
--- trunk/dports/python/py-pyside-tools/Portfile	2013-10-03 16:10:09 UTC (rev 111840)
+++ trunk/dports/python/py-pyside-tools/Portfile	2013-10-03 16:38:55 UTC (rev 111841)
@@ -6,8 +6,8 @@
 
 set realname        pyside-tools
 name                py-${realname}
-version             0.2.14
-python.versions     25 26 27
+version             0.2.15
+python.versions     26 27 32 33
 python.default_version 27
 categories-append   devel
 maintainers         openmaintainer mmoll
@@ -17,30 +17,42 @@
 homepage            http://qt-project.org/wiki/PySide
 platforms           darwin
 license             LGPL
-master_sites        http://www.pyside.org/files/
+master_sites        https://github.com/PySide/Tools/archive/
 
-checksums           md5     0a683e1dc426df5834cb1e540d0c6e3f \
-                    rmd160  94c593f12bddc9d9ab21a189f6a89663488b27e6 \
-                    sha1    f654553bc9bfb35dbc5673da26830969393f9fe8
-distname            ${realname}-${version}
-use_bzip2           yes
+checksums           md5     e542b9536bd9d35599ede225c9311cc8 \
+                    rmd160  481654815c8fcdd5b805a155bc2ea9bfcbced9d4 \
+                    sha1    b668d15e8d67e25a653db5abf8f542802e2ee2dd
+distname            ${version}
+worksrcdir          Tools-${version}
 
 if {$subport != $name} {
+    patch {
+        reinplace "s|find_package(Shiboken 1.1.1 REQUIRED)|set(SHIBOKEN_PYTHON_INTERPRETER \"${python.bin}\")|g" ${worksrcpath}/CMakeLists.txt
+        reinplace "s|find_package(PySide 1.0.6 REQUIRED)||g" ${worksrcpath}/CMakeLists.txt
+    }
     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
+                    -DPYTHON_EXECUTABLE=${python.bin} \
+                    -DSITE_PACKAGE=${python.pkgd}
     build.cmd       make
     build.target    all
     destroot.cmd    make
     destroot.destdir DESTDIR=${destroot}
+    post-destroot {
+        move ${destroot}${prefix}/bin/pyside-lupdate ${destroot}${prefix}/bin/pyside-lupdate-${python.branch}
+        move ${destroot}${prefix}/bin/pyside-rcc ${destroot}${prefix}/bin/pyside-rcc-${python.branch}
+        move ${destroot}${prefix}/bin/pyside-uic ${destroot}${prefix}/bin/pyside-uic-${python.branch}
+        move ${destroot}${prefix}/share/man/man1/pyside-lupdate.1 ${destroot}${prefix}/share/man/man1/pyside-lupdate-${python.branch}.1
+        move ${destroot}${prefix}/share/man/man1/pyside-rcc.1 ${destroot}${prefix}/share/man/man1/pyside-rcc-${python.branch}.1
+        move ${destroot}${prefix}/share/man/man1/pyside-uic.1 ${destroot}${prefix}/share/man/man1/pyside-uic-${python.branch}.1
+    }
 }
 
-if {${name} == ${subport}} { 
+if {${name} == ${subport}} {
     livecheck.type      regex
     livecheck.url       http://qt-project.org/wiki/PySideDownloads
-    livecheck.regex     ${realname}-(\[0-9.\]+)\\.tar\\.bz2
+    livecheck.regex     ${realname}-(\[0-9.\]+)\\.tar\\.gz
 } else {
     livecheck.type      none
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131003/7f963d3c/attachment-0001.html>


More information about the macports-changes mailing list