From 87381e8dc3a88f05f15277e154f1c80f7d9a2f3b Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 3 Jan 2022 23:36:53 -0800 Subject: [PATCH] science/py-gpaw: Fix missing MPI symbol; Add missing gpaw-setups dependency --- science/py-gpaw/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/science/py-gpaw/Makefile b/science/py-gpaw/Makefile index 434704bef9aa..e09977d865b7 100644 --- a/science/py-gpaw/Makefile +++ b/science/py-gpaw/Makefile @@ -1,5 +1,6 @@ PORTNAME= gpaw DISTVERSION= 21.6.0 +PORTREVISION= 1 CATEGORIES= science python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -18,12 +19,15 @@ LIB_DEPENDS= libblas.so:math/blas \ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ase>0:science/py-ase@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYNUMPY} \ - ${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR} \ + gpaw-setups>0:science/gpaw-setups 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" + post-patch: @${REINPLACE_CMD} "s|'/usr/local/|'${LOCALBASE}/|" ${WRKSRC}/gpaw/__init__.py