source: trunk/dports/python/py-pyside-tools/Portfile

Last change on this file was 141003, checked in by michaelld@…, 22 months ago

py*-pyside-tools:
+ use qt4 PortGroup to set QMAKE properly for any qt4 install location;
+ add support for Python 3.5;
+ rev-bump for new qt4 install location.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 141003 2015-10-07 19:31:19Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5PortGroup qt4 1.0
6PortGroup cmake 1.0
7cmake.out_of_source yes
8
9set realname        pyside-tools
10name                py-${realname}
11version             0.2.15
12revision            1
13python.versions     27 34 35
14python.default_version 27
15categories-append   devel
16maintainers         openmaintainer mmoll
17license             LGPL
18description         Tools for developing PySide applications
19long_description    ${description}
20homepage            http://qt-project.org/wiki/PySide
21platforms           darwin
22license             LGPL
23master_sites        https://github.com/PySide/Tools/archive/
24
25checksums           md5     e542b9536bd9d35599ede225c9311cc8 \
26                    rmd160  481654815c8fcdd5b805a155bc2ea9bfcbced9d4 \
27                    sha1    b668d15e8d67e25a653db5abf8f542802e2ee2dd
28distname            ${version}
29worksrcdir          Tools-${version}
30
31if {${name} ne ${subport}} {
32    patch {
33        reinplace "s|find_package(Shiboken 1.1.1 REQUIRED)|set(SHIBOKEN_PYTHON_INTERPRETER \"${python.bin}\")|g" ${worksrcpath}/CMakeLists.txt
34        reinplace "s|find_package(PySide 1.0.6 REQUIRED)||g" ${worksrcpath}/CMakeLists.txt
35    }
36    depends_lib-append port:py${python.version}-pyside port:python${python.version}
37    use_configure   yes
38    configure.args-append -DBUILD_TESTS:BOOL=FALSE \
39                    -DPYTHON_EXECUTABLE=${python.bin} \
40                    -DSITE_PACKAGE=${python.pkgd}
41    build.cmd       make
42    build.target    all
43    destroot.cmd    make
44    destroot.destdir DESTDIR=${destroot}
45    post-destroot {
46        move ${destroot}${prefix}/bin/pyside-lupdate ${destroot}${prefix}/bin/pyside-lupdate-${python.branch}
47        move ${destroot}${prefix}/bin/pyside-rcc ${destroot}${prefix}/bin/pyside-rcc-${python.branch}
48        move ${destroot}${prefix}/bin/pyside-uic ${destroot}${prefix}/bin/pyside-uic-${python.branch}
49        move ${destroot}${prefix}/share/man/man1/pyside-lupdate.1 ${destroot}${prefix}/share/man/man1/pyside-lupdate-${python.branch}.1
50        move ${destroot}${prefix}/share/man/man1/pyside-rcc.1 ${destroot}${prefix}/share/man/man1/pyside-rcc-${python.branch}.1
51        move ${destroot}${prefix}/share/man/man1/pyside-uic.1 ${destroot}${prefix}/share/man/man1/pyside-uic-${python.branch}.1
52    }
53}
54
55if {${name} eq ${subport}} {
56    livecheck.type      regex
57    livecheck.url       http://qt-project.org/wiki/PySideDownloads
58    livecheck.regex     ${realname}-(\[0-9.\]+)\\.tar\\.gz
59} else {
60    livecheck.type      none
61}
Note: See TracBrowser for help on using the repository browser.