git: c7c764e3751d - main - biology/py-libnuml: Allow build with swig 4.1.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 18:10:19 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7c764e3751de049f1de44faa4b4744db1a24694 commit c7c764e3751de049f1de44faa4b4744db1a24694 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-04-18 17:59:21 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-04-18 18:05:12 +0000 biology/py-libnuml: Allow build with swig 4.1.0+ PR: 270720 Obtained from: https://github.com/NuML/NuML/commit/b8766a6bcc3083a5d4f5aa0d166d66d8c80f1345 --- biology/py-libnuml/files/patch-CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/biology/py-libnuml/files/patch-CMakeLists.txt b/biology/py-libnuml/files/patch-CMakeLists.txt index e5cecbcf8ec9..7cd3ba0fcbb4 100644 --- a/biology/py-libnuml/files/patch-CMakeLists.txt +++ b/biology/py-libnuml/files/patch-CMakeLists.txt @@ -1,5 +1,14 @@ ---- CMakeLists.txt.orig 2022-04-06 09:17:15 UTC +--- CMakeLists.txt.orig 2022-04-19 08:09:02 UTC +++ CMakeLists.txt +@@ -53,7 +53,7 @@ if (LIBNUML_REMOVE_WRAPPERS) + endif(LIBNUML_REMOVE_WRAPPERS) + + +-set(SWIG_EXTRA_FLAGS -DSWIGEXPORT -DLIBSBML_CPP_NAMESPACE_BEGIN -DLIBSBML_CPP_NAMESPACE_END -DLIBSBML_CPP_NAMESPACE_QUALIFIER -DLIBSBML_CPP_NAMESPACE_USE) ++set(SWIG_EXTRA_FLAGS -DSWIGEXPORT -DLIBSBML_CPP_NAMESPACE_BEGIN= -DLIBSBML_CPP_NAMESPACE_END= -DLIBSBML_CPP_NAMESPACE_QUALIFIER= -DLIBSBML_CPP_NAMESPACE_USE=) + if(NOT UNIX) + set(SWIG_EXTRA_FLAGS ${SWIG_EXTRA_FLAGS} -DSWIGWIN -DSWIG_CSHARP_NO_WSTRING_HELPER ) + endif() @@ -62,6 +62,7 @@ ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libnuml_wrap.cpp COMMAND "${SWIG_EXECUTABLE}"