git: d3c69717c0a2 - main - biology/py-libnuml: fix install with python 3.10+

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 02 Nov 2021 18:09:29 UTC
The branch main has been updated by amdmi3:

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

commit d3c69717c0a20c231d676f9a249e7fb35d5c22f2
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-02 18:08:06 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-02 18:08:32 +0000

    biology/py-libnuml: fix install with python 3.10+
    
    Approved by:    portmgr blanket
---
 biology/py-libnuml/files/patch-CMakeLists.txt | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/biology/py-libnuml/files/patch-CMakeLists.txt b/biology/py-libnuml/files/patch-CMakeLists.txt
index 12167a58575d..4c2147149b24 100644
--- a/biology/py-libnuml/files/patch-CMakeLists.txt
+++ b/biology/py-libnuml/files/patch-CMakeLists.txt
@@ -20,3 +20,12 @@
  endif()
  
  
+@@ -153,7 +154,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()