# $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup python 1.0 set realname shiboken name py-${realname} version 1.1.2 python.versions 25 26 27 python.default_version 27 categories python devel maintainers openmaintainer mmoll license LGPL description Plugin for generatorrunner that generates python bindings \ for C++ libraries long_description Shiboken is a plugin (front-end) for generatorrunner that \ generates python bindings for C++ libraries using CPython \ source code. homepage http://www.pyside.org/docs/shiboken/ platforms darwin master_sites http://www.pyside.org/files/ checksums md5 0a37b5011b3a7276bf4584317412a4b6 \ rmd160 ea4ecb00af002bef43e2a9093c536cc7ae12be87 \ sha1 2ffe9d47a3f536840ed9d7eff766a53040bb2a2e distname ${realname}-${version} use_bzip2 yes if {$subport != $name} { 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'" } patchfiles default_visibility.patch \ filename_collision.patch depends_lib-append port:qt4-mac port:python${python.version} use_configure yes configure.args-append -DBUILD_TESTS:BOOL=FALSE \ -DPYTHON_EXECUTABLE=${python.bin} \ -DPYTHON_LIBRARY=${python.lib} \ -DPYTHON_INCLUDE_DIR=${python.include} build.cmd make build.target all destroot.cmd make destroot.destdir DESTDIR=${destroot} } if {${name} == ${subport}} { livecheck.type regex livecheck.url ${master_sites} livecheck.regex ${realname}-(\[0-9.\]+)\\.tar\\.bz2 } else { livecheck.type none }