Changeset View
Changeset View
Standalone View
Standalone View
devel/py-pyface/Makefile
# Created by: Vladimir Chukharev | # Created by: Vladimir Chukharev | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= pyface | PORTNAME= pyface | ||||
PORTVERSION= 6.1.1 | PORTVERSION= 6.1.2 | ||||
CATEGORIES= devel python | CATEGORIES= devel python | ||||
MASTER_SITES= CHEESESHOP | MASTER_SITES= CHEESESHOP | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= Vladimir.Chukharev@gmail.com | MAINTAINER= Vladimir.Chukharev@gmail.com | ||||
COMMENT= Enthought traits-capable windowing framework | COMMENT= Enthought traits-capable windowing framework | ||||
LICENSE= BSD3CLAUSE LGPL21 EPL LGPL3 | LICENSE= BSD3CLAUSE LGPL21 EPL LGPL3 | ||||
LICENSE_COMB= multi | LICENSE_COMB= multi | ||||
LICENSE_FILE_LGPL21= ${WRKSRC}/image_LICENSE_Nuvola.txt | LICENSE_FILE_LGPL21= ${WRKSRC}/image_LICENSE_Nuvola.txt | ||||
LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt | LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt | ||||
LICENSE_FILE_LGPL3= ${WRKSRC}/image_LICENSE_OOo.txt | LICENSE_FILE_LGPL3= ${WRKSRC}/image_LICENSE_OOo.txt | ||||
#See file ${WRKSRC}/image_LICENSE.txt for files with non BSD3CLAUSE licenses | #See file ${WRKSRC}/image_LICENSE.txt for files with non BSD3CLAUSE licenses | ||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}traits>=4.5.0:devel/py-traits@${PY_FLAVOR} | RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}traits>0: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 | USES= python | ||||
USE_PYTHON= autoplist distutils | USE_PYTHON= autoplist distutils | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
# Support for the wxPython toolkit is also available, but only for Python 2. | |||||
# Python 3 needs wxPython 4, which should be available soon once D21915 lands. | |||||
# So we use only Qt5 for a while to make the port useful for Python 2 and 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=core_run,gui_run,network_test,opengl_test,printsupport_run,svg_run,test_test,webkit_test,webkitwidgets_test,widgets_run | |||||
# 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 | |||||
koobs: Should all of this be scoped to only particular PYTHON_VER's ? | |||||
Done Inline ActionsNo, at the moment it can be used with every PYTHON_VER so far. For Python 2 it would be possible to add an option like "WX" to use the wxWidget toolkit but this would complicate things. For reference, this review has some similarities with D21229. kai: No, at the moment it can be used with every PYTHON_VER so far. For Python 2 it would be… | |||||
Not Done Inline ActionsFor reference, I'm working on wxPython4: https://reviews.freebsd.org/D21915 lbartoletti: For reference, I'm working on wxPython4: https://reviews.freebsd.org/D21915 | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Should all of this be scoped to only particular PYTHON_VER's ?