Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2022 17:35:17 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9a164093978d - main - science/py-OpenMC: Update 0.13.0 -> 0.13.1
Message-ID:  <202208201735.27KHZHMk093846@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit 9a164093978d43a9d6e89966669f09cdd5a73ea2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-20 17:34:29 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-20 17:34:29 +0000

    science/py-OpenMC: Update 0.13.0 -> 0.13.1
    
    Reported by:    portscout
---
 science/py-OpenMC/Makefile | 10 ++++++++--
 science/py-OpenMC/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/science/py-OpenMC/Makefile b/science/py-OpenMC/Makefile
index 361f3eb67bff..73c358800e96 100644
--- a/science/py-OpenMC/Makefile
+++ b/science/py-OpenMC/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	OpenMC
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.13.0
+DISTVERSION=	0.13.1
 CATEGORIES=	science
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -24,7 +24,7 @@ RUN_DEPENDS=	openmc>0:science/openmc \
 		${PY_DEPENDS}
 
 USES=		python
-USE_PYTHON=	distutils concurrent autoplist
+USE_PYTHON=	distutils cython concurrent autoplist pytest # tests fail and abort in the middle, see https://github.com/openmc-dev/openmc/issues/2186
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	${PORTNAME:tl}-dev
@@ -32,10 +32,16 @@ GH_PROJECT=	${PORTNAME:tl}
 
 PLIST_FILES=	${PYTHON_SITELIBDIR}/openmc/lib/libopenmc.so
 
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
 post-install:
 	# strip
 	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/openmc/data/*.so
 	# link the library
 	@${LN} -s ${LOCALBASE}/lib/libopenmc.so ${STAGEDIR}${PYTHON_SITELIBDIR}/openmc/lib/libopenmc.so
 
+pre-test:
+	# link the library
+	@if ! [ -e ${WRKSRC}/openmc/lib/libopenmc.so ]; then ${LN} -s ${LOCALBASE}/lib/libopenmc.so ${WRKSRC}/openmc/lib/libopenmc.so; fi
+
 .include <bsd.port.mk>
diff --git a/science/py-OpenMC/distinfo b/science/py-OpenMC/distinfo
index 810a30cc53fb..1119d7dc2c6e 100644
--- a/science/py-OpenMC/distinfo
+++ b/science/py-OpenMC/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1652042411
-SHA256 (openmc-dev-openmc-v0.13.0_GH0.tar.gz) = d8ce9c49b398c3e7d99f24d73f8252c77ec764d9230a25e23798c4c4f3a4fb04
-SIZE (openmc-dev-openmc-v0.13.0_GH0.tar.gz) = 5285020
+TIMESTAMP = 1661014166
+SHA256 (openmc-dev-openmc-v0.13.1_GH0.tar.gz) = 358965ed4083e68c56ed7cd10ba6a1b63db68aab5dec81ad7200198386326c1f
+SIZE (openmc-dev-openmc-v0.13.1_GH0.tar.gz) = 5438707



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208201735.27KHZHMk093846>