# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup qt4 1.0 PortGroup python 1.0 name py-qscintilla # WARNING: The version of these python bindings must match the version # number of the installed qscintilla port, or configure/building # will fail with strange error messages. version 2.9 checksums rmd160 3b3682a578a988466ef35aeab757466ea908934f \ sha256 d7c32e32582f93779de861006d87467b38b9ebc06e3d0b32e981cb24369fa417 categories python devel license {GPL-2 GPL-3} maintainers michaelld openmaintainer description Python bindings for QScintilla homepage http://www.riverbankcomputing.com/software/qscintilla/ platforms darwin long_description Python bindings for QScintilla, \ a port to Qt of Neil Hodgson's Scintilla C++ editor control. dist_subdir qscintilla distname QScintilla-gpl-${version} master_sites sourceforge:pyqt python.versions 27 34 python.default_version 27 if {${name} ne ${subport}} { depends_lib-append port:qscintilla # Can use either py*-pyqt4 or py*-pyqt4-devel. depends_lib-append path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 patchfiles-append patch-Python-configure.py.diff use_configure yes pre-configure { foreach arch ${qt_arch_types} { configure.args-append --use-arch=$arch } } set python_ver_dot [join [split ${python.version} ""] "."] configure.pre_args configure.dir ${worksrcpath}/Python configure.cmd ${python.bin} configure.py configure.args-append \ --sip=${prefix}/bin/sip-${python_ver_dot} \ --pyqt-sipdir=${prefix}/share/py${python.version}-sip/PyQt4 \ --apidir=${qt_data_dir}/qsci # --disable-dependency-tracking is not recognized. configure.universal_args-delete --disable-dependency-tracking build.dir ${worksrcpath}/Python build.cmd make build.target destroot.dir ${worksrcpath}/Python destroot.cmd ${build.cmd} destroot.destdir post-destroot { move ${destroot}${qt_data_dir}/qsci/api/python/QScintilla2.api \ ${destroot}${qt_data_dir}/qsci/api/python/QScintilla2-Python${python_ver_dot}.api } } livecheck.type regex livecheck.url ${homepage}download livecheck.regex >QScintilla-gpl-\(\\d+.\\d+.\\d+\).tar.gz<