git: 06212b20e724 - main - science/qmcpack: Correct python dependency; Fix tests.

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 27 Feb 2022 23:09:26 UTC
The branch main has been updated by yuri:

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

commit 06212b20e7244e58cf9a40631399a6f177b6baaa
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-02-27 23:08:19 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-02-27 23:09:21 +0000

    science/qmcpack: Correct python dependency; Fix tests.
---
 science/qmcpack/Makefile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/science/qmcpack/Makefile b/science/qmcpack/Makefile
index b07939ccc16d..da42810a5c15 100644
--- a/science/qmcpack/Makefile
+++ b/science/qmcpack/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	qmcpack
 DISTVERSIONPREFIX=	v
 DISTVERSION=	3.13.0
+PORTREVISION=	1
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -17,14 +18,17 @@ LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
 		libmpich.so:net/mpich \
 		libopenblas.so:math/openblas \
 		libsz.so:science/szip
+TEST_DEPENDS=	bash:shells/bash
 
-USES=		cmake:testing compiler:c++17-lang fortran gnome localbase:ldflags pkgconfig shebangfix
+USES=		cmake:testing compiler:c++17-lang fortran gnome localbase:ldflags pkgconfig python shebangfix
 USE_GNOME=	libxml2
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	${PORTNAME:tu}
 
-SHEBANG_FILES=	${NEXUS_PLIST_FILES:C/^/nexus\//}
+SHEBANG_FILES=	src/QMCTools/gpaw4qmcpack.py \
+		${NEXUS_PLIST_FILES:C/^/nexus\//}
+SHEBANG_GLOB=	check.sh
 
 CMAKE_OFF=	BUILD_UNIT_TESTS
 CMAKE_ARGS=	-DFREEBSD_PYTHON_VER=${PYTHON_VER}
@@ -41,8 +45,6 @@ OPTIONS_SUB=		yes
 
 NEXUS_DESC=		Install Nexus (workflow utility) alongside QMCPACK
 NEXUS_CMAKE_BOOL=	INSTALL_NEXUS
-NEXUS_USES=		python
-NEXUS_USES_OFF=		python:build
 NEXUS_PY_DEPENDS=	${PYNUMPY} \
 			${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \