git: 38ce78ebbe42 - main - biology/py-libsedml: fix install with python 3.10+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Nov 2021 18:09:28 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=38ce78ebbe42e06b4acb2aa2bf2ba598ed4567a5 commit 38ce78ebbe42e06b4acb2aa2bf2ba598ed4567a5 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2021-11-02 17:33:03 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2021-11-02 18:08:31 +0000 biology/py-libsedml: fix install with python 3.10+ Approved by: portmgr blanket --- biology/py-libsedml/files/patch-CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/biology/py-libsedml/files/patch-CMakeLists.txt b/biology/py-libsedml/files/patch-CMakeLists.txt index 0a8f6e634f59..ec9da0ad9c7a 100644 --- a/biology/py-libsedml/files/patch-CMakeLists.txt +++ b/biology/py-libsedml/files/patch-CMakeLists.txt @@ -1,4 +1,4 @@ ---- CMakeLists.txt.orig 2021-09-19 17:41:37 UTC +--- CMakeLists.txt.orig 2021-09-07 06:43:55 UTC +++ CMakeLists.txt @@ -49,6 +49,7 @@ ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libsedml_wrap.cpp @@ -20,3 +20,12 @@ endif() # +@@ -135,7 +136,7 @@ endif() + # + set(PYTHON_PACKAGE_INSTALL_DIR) + if (UNIX OR CYGWIN) +- execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import sys;import platform; sys.stdout.write(platform.python_version()[:3])" ++ execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import sys;import platform; sys.stdout.write(platform.python_version().rsplit('.', 1)[0])" + OUTPUT_VARIABLE PYTHON_VERSION) + set(PYTHON_PACKAGE_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/python${PYTHON_VERSION}/site-packages) + else()