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

Last change on this file was 149413, checked in by mojca@…, 17 months ago

py-pyside, py-shiboken: revbump after relocation of Qt4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 149413 2016-06-18 15:23:14Z 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
10name                py-${realname}
11version             1.2.2
12revision            2
13set          qt.ver 4.8
14python.versions     27 34 35
15python.default_version 27
16categories-append   devel
17maintainers         openmaintainer mmoll
18license             LGPL
19description         LGPL-licensed Python bindings for Qt
20long_description    The PySide project provides LGPL-licensed Python bindings \
21                    for the Qt cross-platform application and UI framework. \
22                    PySide Qt bindings allow both free open source and \
23                    proprietary software development and ultimately aim to \
24                    support all of the platforms as Qt itself.
25homepage            http://qt-project.org/wiki/PySide
26platforms           darwin
27license             LGPL
28master_sites        http://download.qt-project.org/official_releases/pyside
29
30checksums           md5     1969c2ff90eefaa4b200d234059d2287 \
31                    rmd160  8d3102bb17138b1eb7e9f1666983bb231607058e \
32                    sha1    955e32d193d173faa64edc51111289cdcbe3b96e
33distname            ${realname}-qt${qt.ver}+${version}
34use_bzip2           yes
35
36if {${name} ne ${subport}} {
37    patchfiles      patch-cmakepkgconfig.diff
38    depends_lib-append port:py${python.version}-shiboken
39    use_configure   yes
40    configure.env-append CMAKE_PREFIX_PATH=${python.prefix}
41    configure.args-append -DBUILD_TESTS:BOOL=FALSE \
42                          -DSITE_PACKAGE=${python.pkgd} \
43                          -DPYTHONBRANCH=${python.branch} \
44                          -DPYTHONPREFIX=${python.prefix}
45    build.cmd       make
46    build.target    all
47    destroot.cmd    make
48    destroot.destdir DESTDIR=${destroot}
49    post-destroot {
50        move ${destroot}${prefix}/include/PySide ${destroot}${prefix}/include/PySide-${python.branch}
51        move ${destroot}${prefix}/share/PySide ${destroot}${prefix}/share/PySide-${python.branch}
52        move ${destroot}${prefix}/lib/cmake ${destroot}${python.prefix}/lib/cmake
53        move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python.prefix}/lib/pkgconfig
54    }
55}
56
57if {${name} eq ${subport}} {
58    livecheck.type      regex
59    livecheck.url       http://qt-project.org/wiki/PySideDownloads
60    livecheck.regex     ${realname}-qt${qt.ver}\\+(\[0-9.\]+)\\.tar\\.bz2
61} else {
62    livecheck.type      none
63}
Note: See TracBrowser for help on using the repository browser.