aboutsummaryrefslogtreecommitdiff
path: root/science/py-gpaw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-gpaw/Makefile')
-rw-r--r--science/py-gpaw/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/science/py-gpaw/Makefile b/science/py-gpaw/Makefile
index e09977d865b7..77235ee12e84 100644
--- a/science/py-gpaw/Makefile
+++ b/science/py-gpaw/Makefile
@@ -1,6 +1,5 @@
PORTNAME= gpaw
-DISTVERSION= 21.6.0
-PORTREVISION= 1
+DISTVERSION= 22.1.0
CATEGORIES= science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -24,6 +23,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ase>0:science/py-ase@${PY_FLAVOR} \
USES= gettext-runtime localbase python:3.7+ shebangfix
USE_PYTHON= distutils concurrent autoplist
+
SHEBANG_FILES= tools/*
LDFLAGS= -lmpi # otherwise: ImportError: /usr/local/lib/python3.8/site-packages/_gpaw.cpython-38.so: Undefined symbol "MPI_Comm_rank"
@@ -34,4 +34,10 @@ post-patch:
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_gpaw*.so
+do-test: install
+ @${ECHO} "== Performing a test calculation on one CPU =="
+ @gpaw test
+ @${ECHO} "== Performing a test calculation on 8 CPUs =="
+ @gpaw -P 8 test
+
.include <bsd.port.mk>