freebsd-ports/graphics/py-traitsui/Makefile
Loïc Bartoletti 4f0a5e1540 PyQt: Update sip to 6.5.0, reintroduce sip4 and simplify PyQt framework.
SIP:
As mentioned in the update from sip to sip5, this is a transitional version
to remove what is deprecated in sip4.
Sip6 completely removes the deprecated parts.
Unfortunately, some ports — mostly cura things — can not use sip6, so we
reintroduce sip4.

PyQt:
At the same time, we took the opportunity to simplify PyQT and propose only one
package as for devel/pyside2. */py-qt5-* have been merged — excepted chart,
networkauth and webengine — into devel/py-qt5-pyqt.

This allows us to be in adequacy with the packages that the author of these
libraries proposes, namely:

PyQt - devel/py-qt5-pyqt
PyQt-Charts - x11-toolkits/py-qt5-chart
PyQt-NetworkAuth – net/py-qt5-networkauth
PyQt-WebEngine – www/py-qt5-webengine
SIP – devel/py-sip
py-sip - devel/py-qt5-sip
PyQt-builder - devel/py-qtbuilder
Qscintilla - devel/py-qt5-qscintilla2

Reviewed by:	diizzy, kde
Tested by:	kai, rhurlin, arrowd, madpilot
Approved by:	makc, tcberner, kde
Differential Revision:	https://reviews.freebsd.org/D33237
Exp-run by:	antoine
2022-01-27 07:12:26 +01:00

59 lines
2.1 KiB
Makefile

# Created by: Vladimir Chukharev
PORTNAME= traitsui
PORTVERSION= 7.1.1
CATEGORIES= graphics python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Enthought traits-capable user interfaces
LICENSE= BSD3CLAUSE LGPL21 EPL
LICENSE_COMB= multi
LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSE.txt
LICENSE_FILE_LGPL21= ${WRKSRC}/image_LICENSE_Nuvola.txt
LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt
# See ${WRKSRC}/image_LICENSE.txt for per file license information
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}traits>=6.0.0:devel/py-traits@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyface>=7.1.0:devel/py-pyface@${PY_FLAVOR}
# The requirements are defined in traitsui/__init__.py
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}traits>0:devel/py-traits@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}configobj>0:devel/py-configobj@${PY_FLAVOR}
# Those requirements (except for pip + coverage) were extracted from etstool.py
USES= python:3.7+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
# Support for the wxPython toolkit is also available, but
# Python 3 needs wxPython 4 which isn't ported, yet. So we use only Qt5 for a
# while to make the port useful for Python 3.
OPTIONS_DEFINE= QT5
OPTIONS_DEFAULT=QT5
QT5_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR}
QT5_USES= pyqt:5
QT5_USE= PYQT=pyqt5_run
# These tests were extracted from etstool.py and adapted to the ports test framework
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v traitsui.tests
# The test "test_wrap_text_narrow_short" fails at the moment and is going to be
# fixed with the next release.
# See also: https://github.com/enthought/traitsui/issues/643
#
# Note: The occurences of "qt4" aren't typos
do-test-QT5-on:
@cd ${WRKSRC} && ${SETENV} ETS_TOOLKIT=qt4 QT_API=pyqt5 \
${PYTHON_CMD} -m nose -v traitsui.qt4.tests
.include <bsd.port.mk>