# -*- 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
maintainers {mmoll @mamoll} openmaintainer
description PyQt5 is a set of Python bindings for the Qt5 toolkit
long_description ${description}. The bindings \
are implemented as a set of Python modules and contain over 620 classes.
homepage http://www.riverbankcomputing.co.uk/software/pyqt/intro
master_sites sourceforge:pyqt
distname PyQt5_gpl-${version}
checksums rmd160 744f54000240c25ce2b39dbe62f5b3d2afd83e8b \
sha256 c190dac598c97b0113ca5e7a37c71c623f02d1d713088addfacac4acfa4b8394
python.versions 27 34 35 36
if {${name} ne ${subport}} {
# pull in the Qt5 meta-port
depends_lib-append port:py${python.version}-sip \
port:dbus-python${python.version}
configure.cmd "${python.bin} configure.py"
--sip=${prefix}/bin/sip-${python.branch} \
--dbus=${python.include}/dbus-1.0 \
--designer-plugindir=${qt_plugins_dir}/designer/Py${python.version}Qt5 \
--qml-plugindir=${qt_plugins_dir}/Py${python.version}Qt5 \
--disable=QtWebKitWidgets \
--disable=QtWebEngineCore \
--disable=QtWebEngineWidgets
# using --dbus means the compiler will find dbus-python.h but not
# the DBus headers themselves
# do not clear include directories just because --dbus is given
patchfiles-append patch-dbus_includes.diff
destroot.cmd ${build.cmd}
destroot.destdir DESTDIR=${destroot}
variant debug description "Build debug libraries" {
configure.cmd-append --debug
variant scintilla description {Build the PyQt API for QScintilla} {
# move the Qsci API file to a Python specific name
move ${destroot}${qt_data_dir}/qsci/api/python/PyQt5.api \
${destroot}${qt_data_dir}/qsci/api/python/PyQt5-Python${python.branch}.api
variant webengine conflicts universal description {Build QtWebEngine module} {
qt5.depends_component qtwebengine
configure.args-delete --disable=QtWebEngine \
--disable=QtWebEngineCore \
--disable=QtWebEngineWidgets
variant webkit description {Build QtWebKit module} {
qt5.depends_component qtwebkit
configure.args-delete --disable=QtWebKit \