# -*- 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-pyqt4
version 4.8.6
python.versions 24 25 26 27 31
categories python devel
platforms macosx
maintainers michaelld openmaintainer
license {GPL-2 GPL-3}
description PyQt4 is a set of Python bindings for the Qt4 toolkit
long_description \
PyQt4 is a set of Python bindings for the Qt4 toolkit. The \
bindings are implemented as a set of Python modules: qt, \
qtcanvas, qtgl, qtnetwork, qtsql, qttable, qtui and qtxml, \
and contains 300 classes and over 5,750 functions and methods.
homepage http://www.riverbankcomputing.co.uk/software/pyqt/intro
master_sites http://www.riverbankcomputing.com/static/Downloads/PyQt4/ \
http://pyqwt.sourceforge.net/support/
distname PyQt-mac-gpl-${version}
dist_subdir python
checksums md5 67878ee2a3207f38f7b2be5d15b066da \
sha1 44ba16db601556276dfcf0777073a0a1da40f301 \
rmd160 1ca994ed5d8fc6e4bfde5923d2bba72ebdbc0bdc
if {$subport != $name} {
depends_lib-append port:py${python.version}-sip \
port:qt4-mac
configure.args-append -e QtGui \
-e QtHelp \
-e QtMultimedia \
-e QtNetwork \
-e QtDeclarative \
-e QtOpenGL \
-e QtScript \
-e QtScriptTools \
-e QtSql \
-e QtSvg \
-e QtTest \
-e QtWebKit \
-e QtXml \
-e QtXmlPatterns \
-e QAxContainer \
--no-qsci-api
# Don't build designer plugin for 2.4; not built as a framework
if {${python.version} != 24 } {
configure.args-append -e QtDesigner
}
variant phonon description {Add phonon support} {
configure.args-append -e phonon
depends_lib-append port:phonon
}
if {${python.version} == 26 || ${python.version} == 27} {
variant scintilla description {Add QScintilla API file } {
configure.args-delete --no-qsci-api
configure.args-append --qsci-api
depends_lib-append port:qscintilla
}
}
# The patch file alters configure.py so that the qtdesigner plugin can link.
# - it ensures that both LFLAGS are included and that the relevant version framework is linked
patchfiles patch-configure.py
post-patch {
reinplace "s|@@MACPORTS_PYTHON_FRAMEWORK@@|${frameworks_dir}/Python.framework/Versions/${python.branch}/Python|" ${worksrcpath}/configure.py
}
use_configure yes
pre-configure {
# allow ccache, if specified by the user
if {[tbool configure.ccache]} {
configure.env-append "CCACHE=ccache"
}
}
configure.cmd "${python.bin} configure.py -q ${qt_qmake_cmd} --verbose --confirm-license"
configure.pre_args
configure.post_args LFLAGS="-F${frameworks_dir} -L${prefix}/lib"
variant universal {