summaryrefslogtreecommitdiff
path: root/kde-apps/kig/files/kig-4.12.0-boostpython.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /kde-apps/kig/files/kig-4.12.0-boostpython.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'kde-apps/kig/files/kig-4.12.0-boostpython.patch')
-rw-r--r--kde-apps/kig/files/kig-4.12.0-boostpython.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/kde-apps/kig/files/kig-4.12.0-boostpython.patch b/kde-apps/kig/files/kig-4.12.0-boostpython.patch
new file mode 100644
index 000000000000..7a4b878c6bc3
--- /dev/null
+++ b/kde-apps/kig/files/kig-4.12.0-boostpython.patch
@@ -0,0 +1,17 @@
+diff --git a/cmake/modules/FindBoostPython.cmake b/cmake/modules/FindBoostPython.cmake
+index 2ccc161..02d9bf6 100644
+--- a/cmake/modules/FindBoostPython.cmake
++++ b/cmake/modules/FindBoostPython.cmake
+@@ -74,10 +74,10 @@ if(HAVE_BOOST_SHARED_PTR_HPP AND Boost_PYTHON_FOUND)
+ # Second try: try pkg-config way
+ find_package(PkgConfig)
+ if(PKG_CONFIG_FOUND)
+- set(PYTHON_VERSIONS "python;python2.7;python2.6;python2.5;python2.4;python2.3;python2.2")
++ execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE PYTHON_VERSIONS)
+ foreach(_pyver ${PYTHON_VERSIONS})
+ if(NOT BoostPython_INCLUDES OR NOT BoostPython_LIBS)
+- pkg_check_modules(${_pyver} QUIET ${_pyver})
++ pkg_check_modules(_python python-${_pyver})
+ if(${_pyver}_FOUND)
+ cmake_push_check_state()
+ set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${${_pyver}_INCLUDE_DIRS}) \ No newline at end of file