git: 1dcd34af411b - main - science/cantera: Fix handling of Python versions

Yuri Victorovich yuri at FreeBSD.org
Mon Sep 20 03:10:02 UTC 2021


The branch main has been updated by yuri:

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

commit 1dcd34af411b87cdbc585bee08d1bb31a781600f
Author:     Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-09-20 03:08:25 +0000
Commit:     Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-09-20 03:08:25 +0000

    science/cantera: Fix handling of Python versions
---
 science/cantera/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/science/cantera/Makefile b/science/cantera/Makefile
index f31133debef8..b5d403c77058 100644
--- a/science/cantera/Makefile
+++ b/science/cantera/Makefile
@@ -45,7 +45,7 @@ OPTIONS_DEFINE=		PYTHON
 OPTIONS_DEFAULT=	PYTHON
 OPTIONS_SUB=		yes
 
-PYTHON_USES=		python
+PYTHON_USES=		python:3.6+
 PYTHON_USE=		PYTHON=cython
 PYTHON_MAKE_ARGS=	python_cmd="${PYTHON_CMD}"
 PYTHON_MAKE_ARGS_OFF=	python_package="none"
@@ -64,6 +64,6 @@ do-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcantera_shared.so.2.6.0
 
 do-install-PYTHON-on:
-	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cantera/_cantera.cpython-38.so
+	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cantera/_cantera.cpython-${PYTHON_VER:S/.//}.so
 
 .include <bsd.port.mk>


More information about the dev-commits-ports-all mailing list