graphics/py-mayavi: Update 4.7.4 -> 4.8.0

Also add test target.
This commit is contained in:
Yuri Victorovich 2022-07-29 00:12:40 -07:00
parent ce69a00b36
commit b5136e525c
2 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,5 @@
PORTNAME= mayavi
DISTVERSION= 4.7.4
PORTREVISION= 1
DISTVERSION= 4.8.0
CATEGORIES= graphics science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -18,8 +17,6 @@ LICENSE_FILE_LGPL3= ${WRKSRC}/image_LICENSE_OOo.txt
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/LICENSE_YORICK.txt
LICENSE_FILE_APACHE11= ${WRKSRC}/LICENSE_COLORBREWER.txt
BROKEN_i386= Building TVTK classes... Fatal Python error: Segmentation fault # might be specific to Mayavi or Python versions
BUILD_DEPENDS= vtk9>0:math/vtk9 \
${PYNUMPY} \
${PY_SPHINX} \
@ -28,11 +25,11 @@ RUN_DEPENDS= vtk9>0:math/vtk9 \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}apptools>0:devel/py-apptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}envisage>0:devel/py-envisage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyface>=6.0.0:devel/py-pyface@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyface>=6.1.1:devel/py-pyface@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}traits>=4.6.0:devel/py-traits@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}traitsui>=6.0.0:graphics/py-traitsui@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}traits>=6.0.0:devel/py-traits@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}traitsui>=7.0.0:graphics/py-traitsui@${PY_FLAVOR} # list is in mayavi/__init__.py
USES= python:3.6+ shebangfix
USE_PYTHON= noflavors distutils autoplist # noflavors to force python to be of the same version as in vtk9, which always has default python version
@ -51,4 +48,7 @@ fix-plist:
@${REINPLACE_CMD} -e "s|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}/mayavi/preferences/__pycache__$$||" ${TMPPLIST}
@${REINPLACE_CMD} -e "s|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}/tvtk/plugins/scene/__pycache__$$||" ${TMPPLIST}
do-test:
@${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${WRKSRC}/examples/mayavi/interactive/coil_design_application.py
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1638775180
SHA256 (mayavi-4.7.4.tar.gz) = ec50e7ec6afb0f9224ad1863d104a0d1ded6c8deb13e720652007aaca2303332
SIZE (mayavi-4.7.4.tar.gz) = 7130390
TIMESTAMP = 1659067320
SHA256 (mayavi-4.8.0.tar.gz) = 4c604361d9f5fa3b81be18d5bf14f30650b0ee38eed5bba16cc8a44394178f63
SIZE (mayavi-4.8.0.tar.gz) = 19788027