svn commit: r554148 - in head/math/cantor: . files
Tobias C. Berner
tcberner at FreeBSD.org
Thu Nov 5 18:49:12 UTC 2020
Author: tcberner
Date: Thu Nov 5 18:49:11 2020
New Revision: 554148
URL: https://svnweb.freebsd.org/changeset/ports/554148
Log:
math/cantor: Support ptyhon3.9
- instead of adding 'python3.9' to the list, simply patch in
python-${PYTHON_VER} -- this way, this should fix two issues
1) make it work with python
2) help cmake find the "wanted" python version in unclean environments
PR: 250884
Reported by: Oleg Sidorkin <osidorkin at gmail.com>, fluffy (previously)
Added:
head/math/cantor/files/
head/math/cantor/files/patch-cmake_FindPythonLibs3.cmake (contents, props changed)
Modified:
head/math/cantor/Makefile
Modified: head/math/cantor/Makefile
==============================================================================
--- head/math/cantor/Makefile Thu Nov 5 18:20:05 2020 (r554147)
+++ head/math/cantor/Makefile Thu Nov 5 18:49:11 2020 (r554148)
@@ -58,8 +58,7 @@ CMAKE_ON= CMAKE_DISABLE_FIND_PACKAGE_PythonLibs
post-patch:
${REINPLACE_CMD} -e '/FIND_PROGRAM(_GFORTRAN_EXECUTABLE/s,gfortran,${FC},' \
${WRKSRC}/cmake/FindR.cmake
- ${REINPLACE_CMD} -e '/find_library(PYTHONLIBS3_LIBRARY/s,python3.5m,python3.5m python3.6m,' \
- -e '/pkg_check_modules/s,python3,python-${PYTHON_VER},' \
+ ${REINPLACE_CMD} -e 's|%%PYTHON_VER%%|${PYTHON_VER}|g' \
${WRKSRC}/cmake/FindPythonLibs3.cmake
.include <bsd.port.mk>
Added: head/math/cantor/files/patch-cmake_FindPythonLibs3.cmake
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/cantor/files/patch-cmake_FindPythonLibs3.cmake Thu Nov 5 18:49:11 2020 (r554148)
@@ -0,0 +1,18 @@
+--- cmake/FindPythonLibs3.cmake.orig 2020-10-31 16:59:49 UTC
++++ cmake/FindPythonLibs3.cmake
+@@ -1,5 +1,5 @@
+ find_package(PkgConfig)
+-pkg_check_modules(PYTHONLIBS3 QUIET python3)
++pkg_check_modules(PYTHONLIBS3 QUIET python-%%PYTHON_VER%%)
+ set(PYTHONLIBS3_DEFINITIONS ${PYTHONLIBS3_CFLAGS_OTHER})
+
+ find_path(PYTHONLIBS3_INCLUDE_DIR Python.h
+@@ -9,7 +9,7 @@ IF(WIN32)
+ find_library(PYTHONLIBS3_LIBRARY NAMES python32 python33 python34 python35 python36 python37 python38
+ HINTS ${PYTHONLIBS3_LIBDIR} ${PYTHONLIBS3_LIBRARY_DIRS} )
+ ELSE()
+- find_library(PYTHONLIBS3_LIBRARY NAMES python3.2m python3.3m python3.4m python3.5m python3.6m python3.7m python3.8
++ find_library(PYTHONLIBS3_LIBRARY NAMES python%%PYTHON_VER%% python3.7 python3.2m python3.3m python3.4m python3.5m python3.6m python3.7m python3.8
+ HINTS ${PYTHONLIBS3_LIBDIR} ${PYTHONLIBS3_LIBRARY_DIRS} )
+ ENDIF()
+
More information about the svn-ports-all
mailing list