mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
New port: devel/py-QtPy: Abstraction layer on top of the various Qt bindings
This is an abstraction layer on top of the various Qt bindings. It doesn't have any explicit dependencies. It has alternative dependencies on PyQt5, PyQt4, PySide2 or PySide which it selects in the run-time. Users have the responsibility to ensure that one of them is installed, and to optionally set QT_API to force one of them. Approved by: tcberner (mentor) Differential Revision: D13657
This commit is contained in:
parent
437890cd32
commit
e494ef0e46
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=460066
@ -4199,6 +4199,7 @@
|
||||
SUBDIR += py-PyExecJS
|
||||
SUBDIR += py-PyLD
|
||||
SUBDIR += py-PyODE
|
||||
SUBDIR += py-QtPy
|
||||
SUBDIR += py-RPyC
|
||||
SUBDIR += py-Record
|
||||
SUBDIR += py-SymbolType
|
||||
|
19
devel/py-QtPy/Makefile
Normal file
19
devel/py-QtPy/Makefile
Normal file
@ -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 <bsd.port.mk>
|
3
devel/py-QtPy/distinfo
Normal file
3
devel/py-QtPy/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1514403575
|
||||
SHA256 (QtPy-1.3.1.tar.gz) = 08af2525d59f9eb639946d5ed7a72b002103c5b7369c0ef0dd70ad2696845313
|
||||
SIZE (QtPy-1.3.1.tar.gz) = 25061
|
10
devel/py-QtPy/pkg-descr
Normal file
10
devel/py-QtPy/pkg-descr
Normal file
@ -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
|
10
devel/py-QtPy/pkg-message
Normal file
10
devel/py-QtPy/pkg-message
Normal file
@ -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.
|
||||
======================================================================
|
Loading…
Reference in New Issue
Block a user