git: cac668881bf1 - 2022Q1 - science/py-gpaw: Fix missing MPI symbol; Add missing gpaw-setups dependency

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 04 Jan 2022 07:38:29 UTC
The branch 2022Q1 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cac668881bf11023cbff1bb3ad0a5c7b9092273e

commit cac668881bf11023cbff1bb3ad0a5c7b9092273e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-04 07:36:53 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-04 07:38:27 +0000

    science/py-gpaw: Fix missing MPI symbol; Add missing gpaw-setups dependency
    
    (cherry picked from commit 87381e8dc3a88f05f15277e154f1c80f7d9a2f3b)
---
 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