git: 93343a157453 - main - science/cantera: Fix build with scons 4.5.2+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 14 Nov 2023 17:23:49 UTC
The branch main has been updated by sunpoet:

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

commit 93343a157453fa6f16b29578e127e040d8a57282
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-14 16:54:00 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-14 17:16:50 +0000

    science/cantera: Fix build with scons 4.5.2+
    
    from SConstruct:
    try:
        from packaging.version import parse as parse_version
    except ImportError:
        from pkg_resources import parse_version
    
    Reference:      https://pkg-status.freebsd.org/pb2/data/124i386-default-foo/2023-11-02_15h08m17s/logs/errors/cantera-3.0.0.log
    PR:             274524
---
 science/cantera/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/science/cantera/Makefile b/science/cantera/Makefile
index c25ad53ef304..7fea4f5d81c0 100644
--- a/science/cantera/Makefile
+++ b/science/cantera/Makefile
@@ -12,7 +12,8 @@ LICENSE_FILE=	${WRKSRC}/License.txt
 
 BUILD_DEPENDS=	googletest>0:devel/googletest \
 		${LOCALBASE}/include/boost/algorithm/string.hpp:devel/boost-libs \
-		highfive>0:science/highfive
+		highfive>0:science/highfive \
+		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR}
 LIB_DEPENDS=	libfmt.so:devel/libfmt \
 		libhdf5.so:science/hdf5 \
 		libopenblas.so:math/openblas \
@@ -54,6 +55,7 @@ OCTAVE_USES=		octave:env
 OCTAVE_BROKEN=		Octave support needs to be updated
 
 PYTHON_USES=		python
+PYTHON_USES_OFF=	python:env
 PYTHON_USE=		PYTHON=cython
 PYTHON_MAKE_ARGS=	python_cmd=${PYTHON_CMD} python_package=full
 PYTHON_MAKE_ARGS_OFF=	python_package="none"