Changeset View
Changeset View
Standalone View
Standalone View
graphics/py-traitsui/Makefile
Show All 35 Lines | |||||
# Support for the wxPython toolkit is also available, but | # 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 | # 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. | # while to make the port useful for Python 3. | ||||
OPTIONS_DEFINE= QT5 | OPTIONS_DEFINE= QT5 | ||||
OPTIONS_DEFAULT=QT5 | OPTIONS_DEFAULT=QT5 | ||||
QT5_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} | QT5_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} | ||||
QT5_USES= pyqt:5 | QT5_USES= pyqt:5 | ||||
QT5_USE= PYQT=core_run,gui_run,printsupport_run,svg_run,widgets_run | QT5_USE= PYQT=pyqt5_run | ||||
# These tests were extracted from etstool.py and adapted to the ports test framework | # These tests were extracted from etstool.py and adapted to the ports test framework | ||||
do-test: | do-test: | ||||
@cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v traitsui.tests | @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 | # The test "test_wrap_text_narrow_short" fails at the moment and is going to be | ||||
# fixed with the next release. | # fixed with the next release. | ||||
# See also: https://github.com/enthought/traitsui/issues/643 | # See also: https://github.com/enthought/traitsui/issues/643 | ||||
# | # | ||||
# Note: The occurences of "qt4" aren't typos | # Note: The occurences of "qt4" aren't typos | ||||
do-test-QT5-on: | do-test-QT5-on: | ||||
@cd ${WRKSRC} && ${SETENV} ETS_TOOLKIT=qt4 QT_API=pyqt5 \ | @cd ${WRKSRC} && ${SETENV} ETS_TOOLKIT=qt4 QT_API=pyqt5 \ | ||||
${PYTHON_CMD} -m nose -v traitsui.qt4.tests | ${PYTHON_CMD} -m nose -v traitsui.qt4.tests | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |