Permalink
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (48 sloc) 2.38 KB
# -*- 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
PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0
github.setup spyder-ide qtpy 1.5.1 v
name py-qtpy
categories-append devel
license MIT
platforms darwin
supported_archs noarch
maintainers {eborisch @eborisch} openmaintainer
description Abtraction layer for PyQt5/PyQt4/PySide2/PySide
long_description QtPy (pronounced 'cutie pie') is a small abstraction layer \
that lets you write applications using a single api call \
to either PyQt or PySide. \
It provides support for PyQt5, PyQt4, PySide2 and PySide \
using the Qt5 layout (where the QtGui module has been split \
into QtGui and QtWidgets).
checksums rmd160 2ac1f3c4b7eed2f47b733247446436965d2c845e \
sha256 9c6948c406c9dd483c2408a55e4b0f916d782fc23e8125605ff045c750d2a145 \
size 31882
python.versions 27 34 35 36 37
if {${name} ne ${subport}} {
livecheck.type none
depends_build-append port:py${python.version}-setuptools
depends_lib-append port:py${python.version}-pyqt4
# Will *work* with either/both under the hood, but provide variants to
# determine what we label as depends_lib. (We need at least one installed,
# and we don't want to force installing both.)
variant qt5 description {Depend on pyqt5. (Else pyqt4)} {
depends_lib-append port:py${python.version}-pyqt5
depends_lib-delete port:py${python.version}-pyqt4
}
default_variants +qt5
depends_test-append port:py${python.version}-pytest \
port:py${python.version}-mock
test.run yes
test.cmd py.test-${python.branch}
test.target
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE.txt ${destroot}${docdir}
}
notes "QtPy will work with one of the following backends: pyqt5, pyqt4,\
pyside2, and pyside. If multiple backends are available on your system,\
pyqt5 will be used unless you set the QT_API environment variable."
}