Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -4194,6 +4194,7 @@ SUBDIR += py-PyExecJS SUBDIR += py-PyLD SUBDIR += py-PyODE + SUBDIR += py-QtPy SUBDIR += py-RPyC SUBDIR += py-Record SUBDIR += py-SymbolType Index: devel/py-QtPy/Makefile =================================================================== --- /dev/null +++ devel/py-QtPy/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +PORTNAME= QtPy +DISTVERSION= 1.3.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Abstraction layer on top of the various Qt bindings + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include Index: devel/py-QtPy/distinfo =================================================================== --- /dev/null +++ devel/py-QtPy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1514403575 +SHA256 (QtPy-1.3.1.tar.gz) = 08af2525d59f9eb639946d5ed7a72b002103c5b7369c0ef0dd70ad2696845313 +SIZE (QtPy-1.3.1.tar.gz) = 25061 Index: devel/py-QtPy/pkg-descr =================================================================== --- /dev/null +++ devel/py-QtPy/pkg-descr @@ -0,0 +1,10 @@ +QtPy 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). + +Basically, you write your code as if you were using PySide2 but import Qt +modules from qtpy instead of PySide2 (or PyQt5) + +WWW: https://github.com/spyder-ide/qtpy Index: devel/py-QtPy/pkg-message =================================================================== --- /dev/null +++ devel/py-QtPy/pkg-message @@ -0,0 +1,10 @@ +====================================================================== +You installed py-QtPy: the abstraction layer on top of Qt bindings. + +One of PyQt5, PyQt4, PySide2 or PySide bindings is required to be +installed for it to work. py-QtPy will choose between the avaiable +bindings, PyQt5 will be chosen first when available. + +The QT_API environment variable can be used to force a particular +binding. +======================================================================