freebsd-ports/devel/py-pyface/Makefile
Felix Palmen ddae4e92d8 Mk/Uses: always use colon for build/run suffix
Most USES use a colon for build/run(/test) suffixes. Change kde.mk,
qt.mk and pyqt.mk to do the same, and update all ports using that.

Document in CHANGES.

PR:			266034
Exp-run by:		antoine
Approved by:		tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D36349
2022-09-11 12:20:14 +02:00

48 lines
1.7 KiB
Makefile

PORTNAME= pyface
DISTVERSION= 7.4.2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= eduardo@FreeBSD.org
COMMENT= Enthought traits-capable windowing framework
WWW= https://docs.enthought.com/pyface/
LICENSE= BSD3CLAUSE EPL LGPL21 LGPL3
LICENSE_COMB= multi
LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt
LICENSE_FILE_LGPL21= ${WRKSRC}/image_LICENSE_Nuvola.txt
LICENSE_FILE_LGPL3= ${WRKSRC}/image_LICENSE_OOo.txt
#See file ${WRKSRC}/image_LICENSE.txt for files with non BSD3CLAUSE licenses
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6.0:devel/py-importlib-metadata@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.1.0:devel/py-importlib-resources@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}traits>=6.2:devel/py-traits@${PY_FLAVOR}
# The requirements are defined in pyface/__init__.py
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= autoplist distutils
NO_ARCH= yes
# Note: The port also supports the wxPython toolkit, but this still has to be
# tested.
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,pyqt5:test
# These tests were extracted from etstool.py and adapted to the ports test framework
# 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 pyface
.include <bsd.port.mk>