git: 0c731da5fa7d - main - science/opensim-core: Use swig40 instead of swig

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 13 Jul 2024 20:42:03 UTC
The branch main has been updated by sunpoet:

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

commit 0c731da5fa7d1b988ea6699e7d75e8f089f94a4f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-13 20:19:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-13 20:19:04 +0000

    science/opensim-core: Use swig40 instead of swig
    
    - Bump PORTREVISION for package change
    
    std_carray.i was removed from SWIG since 4.2.0.
    Use legacy devel/swig40 for now before upstream finds a better solution.
    
    PR:             279489
    Reference:      https://github.com/opensim-org/opensim-core/issues/3758
---
 science/opensim-core/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/science/opensim-core/Makefile b/science/opensim-core/Makefile
index ae3763dda257..c0431af8b098 100644
--- a/science/opensim-core/Makefile
+++ b/science/opensim-core/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	OpenSim
 DISTVERSION=	4.1
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	science
 PKGNAMESUFFIX=	-core
 
@@ -34,14 +34,16 @@ OPTIONS_SUB=		yes
 
 PYTHON_CMAKE_BOOL=	BUILD_PYTHON_WRAPPING
 PYTHON_USES=		python
-PYTHON_BUILD_DEPENDS=	swig:devel/swig
+PYTHON_BUILD_DEPENDS=	swig40:devel/swig40
+PYTHON_BINARY_ALIAS=	swig=swig40
 
 JAVA_CMAKE_BOOL=	BUILD_JAVA_WRAPPING
 JAVA_CMAKE_ON=		-DJAVA_AWT_LIBRARY=${LOCALBASE}/openjdk8/jre/lib/amd64/libawt.so \
 			-DJAVA_JVM_LIBRARY=${LOCALBASE}/openjdk8/jre/lib/amd64/server/libjvm.so \
 			-DJAVA_INCLUDE_PATH=${LOCALBASE}/openjdk8/include
 JAVA_USE=		JAVA=yes
-JAVA_BUILD_DEPENDS=	swig:devel/swig
+JAVA_BUILD_DEPENDS=	swig40:devel/swig40
+JAVA_BINARY_ALIAS=	swig=swig40
 
 DOCS_CMAKE_BOOL=	INSTALL_DOCS
 PORTDOCS=		*