git: b07ac36c6f8d - main - science/libcint: update 5.4.0 → 6.1.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 12 Nov 2023 10:24:05 UTC
The branch main has been updated by yuri:

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

commit b07ac36c6f8dc34ab33a1196a1ae805d5ed397db
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-12 10:23:36 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-12 10:24:00 +0000

    science/libcint: update 5.4.0 → 6.1.0
    
    Reported by:    portscout
---
 science/libcint/Makefile | 9 ++++-----
 science/libcint/distinfo | 6 +++---
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/science/libcint/Makefile b/science/libcint/Makefile
index fe680ba58539..fe8795e2cfec 100644
--- a/science/libcint/Makefile
+++ b/science/libcint/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	libcint
 DISTVERSIONPREFIX=	v
-DISTVERSION=	5.4.0
+DISTVERSION=	6.1.0
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -10,7 +10,6 @@ WWW=		https://github.com/sunqm/libcint
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libopenblas.so:math/openblas
 TEST_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}pyscf>0:science/py-pyscf@${PY_FLAVOR}
 
@@ -27,10 +26,10 @@ PLIST_FILES=	include/cint.h \
 		lib/libcint.so.${PORTVERSION}
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|numpy\\.ctypeslib\\.load_library('libcint', .*$$|numpy.ctypeslib.load_library('libcint', '${BUILD_WRKSRC}')|" \
-		${WRKSRC}/testsuite/test_cint4c1e.py \
-		${WRKSRC}/testsuite/test_cint.py \
+	@${REINPLACE_CMD} -e "s|\\.\\./\\.\\./build/libcint\\.so|${BUILD_WRKSRC}/libcint.so|" \
 		${WRKSRC}/testsuite/test_3c2e.py
+	@${REINPLACE_CMD} -e "s|os\\.path\\.abspath(os\\.path\\.join(__file__, '\\.\\./\\.\\./build/libcint\\.so'))|'${BUILD_WRKSRC}/libcint.so'|" \
+		${WRKSRC}/testsuite/test_cint.py
 
 do-test: # needs science/py-pyscf, pending https://github.com/pyscf/pyscf/issues/935
 	@cd ${BUILD_WRKSRC} && \
diff --git a/science/libcint/distinfo b/science/libcint/distinfo
index 45c123c18749..91c0bdd7288a 100644
--- a/science/libcint/distinfo
+++ b/science/libcint/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1688537374
-SHA256 (sunqm-libcint-v5.4.0_GH0.tar.gz) = 42a8f2e9244e4575437e426e32cd1e60ef9559971c42a41f860c870efc745d99
-SIZE (sunqm-libcint-v5.4.0_GH0.tar.gz) = 43038690
+TIMESTAMP = 1699782027
+SHA256 (sunqm-libcint-v6.1.0_GH0.tar.gz) = 9fc5fbf5397ee980941ab4bc4398547d7e5eaa78153819327816dc6a5b000bf0
+SIZE (sunqm-libcint-v6.1.0_GH0.tar.gz) = 50859482