git: 6836582615c9 - main - science/py-moltemplate: Update 2.20.6 -> 2.20.14

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 27 Sep 2022 02:49:12 UTC
The branch main has been updated by yuri:

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

commit 6836582615c905606df406190bc443351d5bb35c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-26 16:38:05 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-27 02:48:59 +0000

    science/py-moltemplate: Update 2.20.6 -> 2.20.14
    
    Reported by:    portscout
---
 science/py-moltemplate/Makefile | 27 +++++++++++++++++++++------
 science/py-moltemplate/distinfo |  6 +++---
 2 files changed, 24 insertions(+), 9 deletions(-)

diff --git a/science/py-moltemplate/Makefile b/science/py-moltemplate/Makefile
index e8cacecfba93..06656661f898 100644
--- a/science/py-moltemplate/Makefile
+++ b/science/py-moltemplate/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	moltemplate
-DISTVERSION=	2.20.6
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.20.14
 CATEGORIES=	science python
-MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -13,15 +13,30 @@ LICENSE=	MIT
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR}
 RUN_DEPENDS=	${PYNUMPY} \
 		bash:shells/bash
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+TEST_DEPENDS=	shunit2>0:devel/shunit2
 
 USES=		python:3.6+ shebangfix
-SHEBANG_FILES=	moltemplate/scripts/molc.sh
 USE_PYTHON=	distutils concurrent autoplist
 
+USE_GITHUB=	yes
+GH_ACCOUNT=	jewettaij
+
+SHEBANG_FILES=	moltemplate/scripts/molc.sh
+
 NO_ARCH=	yes
 
-do-test: # testsuite fails to run: https://github.com/jewettaij/moltemplate/issues/65
-	@cd ${WRKSRC} && pytest
+BINARY_ALIAS=	python3=${PYTHON_CMD}
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} PATH=${STAGEDIR}${LOCALBASE}/bin:${PATH}
+
+do-test: # testsuite instructions: https://github.com/jewettaij/moltemplate/issues/65#issuecomment-1022740972
+	# 1 test fails, see https://github.com/jewettaij/moltemplate/issues/65
+	@cd ${WRKSRC} && \
+		([ -e shunit2 ] || (${MKDIR} shunit2 && ${LN} -s ${LOCALBASE}/bin/shunit2 shunit2/shunit2)) && \
+		${SETENV} ${TEST_ENV} bash tests/test_read_coords_pdb.sh && \
+		${SETENV} ${TEST_ENV} bash tests/test_ltemplify.sh && \
+		${SETENV} ${TEST_ENV} bash tests/test_oplsaa.sh && \
+		${SETENV} ${TEST_ENV} bash tests/test_compass.sh && \
+		${SETENV} ${TEST_ENV} python3 tests/test_genpoly_lt.py
 
 .include <bsd.port.mk>
diff --git a/science/py-moltemplate/distinfo b/science/py-moltemplate/distinfo
index 90d535851780..e2d07cc5f1bb 100644
--- a/science/py-moltemplate/distinfo
+++ b/science/py-moltemplate/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1656714138
-SHA256 (moltemplate-2.20.6.tar.gz) = 391fdd9995c2fbce17716e7a3dd314d6233851c639533460d394fb6d85595dac
-SIZE (moltemplate-2.20.6.tar.gz) = 280760
+TIMESTAMP = 1664206301
+SHA256 (jewettaij-moltemplate-v2.20.14_GH0.tar.gz) = 3f8f97615144e1cd17ae4ec4047bff9694c89e78ce3991972a379af58746ffd8
+SIZE (jewettaij-moltemplate-v2.20.14_GH0.tar.gz) = 8551446