Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= traitsui |
4 |
PORTNAME= traitsui |
5 |
PORTVERSION= 6.0.0 |
5 |
PORTVERSION= 6.1.2 |
6 |
CATEGORIES= graphics python |
6 |
CATEGORIES= graphics python |
7 |
MASTER_SITES= CHEESESHOP |
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 17-26
Link Here
|
17 |
LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt |
17 |
LICENSE_FILE_EPL= ${WRKSRC}/image_LICENSE_Eclipse.txt |
18 |
# See ${WRKSRC}/image_LICENSE.txt for per file license information |
18 |
# See ${WRKSRC}/image_LICENSE.txt for per file license information |
19 |
|
19 |
|
20 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}apptools>=4.3.0:devel/py-apptools@${PY_FLAVOR} |
20 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}traits>0:devel/py-traits@${PY_FLAVOR} \ |
|
|
21 |
${PYTHON_PKGNAMEPREFIX}pyface>=6.0.0:devel/py-pyface@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} |
23 |
# The requirements are defined in traitsui/__init__.py |
21 |
|
24 |
|
22 |
USES= python:2.7 |
25 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \ |
|
|
26 |
${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \ |
28 |
${PYTHON_PKGNAMEPREFIX}traits>0:devel/py-traits@${PY_FLAVOR} \ |
29 |
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \ |
30 |
${PYTHON_PKGNAMEPREFIX}configobj>0:devel/py-configobj@${PY_FLAVOR} |
31 |
py27_TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} |
32 |
# Those requirements (except for pip + coverage) were extracted from etstool.py |
33 |
|
34 |
USES= python |
23 |
USE_PYTHON= autoplist distutils |
35 |
USE_PYTHON= autoplist distutils |
|
|
36 |
|
24 |
NO_ARCH= yes |
37 |
NO_ARCH= yes |
25 |
|
38 |
|
|
|
39 |
# Support for the wxWidgets toolkit is also available, but only for Python 2. |
40 |
# Python 3 needs wxWidgets 4 which isn't ported, yet. So we use only Qt5 for a |
41 |
# while to make the port useful for Python 2 and 3. |
42 |
OPTIONS_DEFINE= QT5 |
43 |
OPTIONS_DEFAULT=QT5 |
44 |
|
45 |
QT5_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} |
46 |
QT5_USES= pyqt:5 |
47 |
QT5_USE= PYQT=core_run,gui_run,printsupport_run,svg_run,widgets_run |
48 |
|
49 |
# These tests were extracted from etstool.py and adapted to the ports test framework |
50 |
do-test: |
51 |
@cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v traitsui.tests |
52 |
|
53 |
# The test "test_wrap_text_narrow_short" fails at the moment and is going to be |
54 |
# fixed with the next release. |
55 |
# See also: https://github.com/enthought/traitsui/issues/643 |
56 |
# |
57 |
# Note: The occurences of "qt4" aren't typos |
58 |
do-test-QT5-on: |
59 |
@cd ${WRKSRC} && ${SETENV} ETS_TOOLKIT=qt4 QT_API=pyqt5 \ |
60 |
${PYTHON_CMD} -m nose -v -e 'test_wrap_text_narrow_short' traitsui.qt4.tests |
61 |
|
26 |
.include <bsd.port.mk> |
62 |
.include <bsd.port.mk> |