summaryrefslogtreecommitdiff
path: root/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2013-06-09 14:09:28 +0200
committerJohannes Huber <johu@gentoo.org>2013-06-09 14:09:28 +0200
commitb30ce47cd6e7c0dfd47b7902b86818c069961de2 (patch)
tree39c4bc5fc966fbfbf39d356fac252d7bfd03ca39 /dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
parent45c2eca70f4f6ef548a3607ea992f292a52b0aba (diff)
downloadkde-b30ce47cd6e7c0dfd47b7902b86818c069961de2.tar.gz
kde-b30ce47cd6e7c0dfd47b7902b86818c069961de2.tar.bz2
kde-b30ce47cd6e7c0dfd47b7902b86818c069961de2.zip
[dev-util/cmake] Moved to tree.
Package-Manager: portage-2.2.0_alpha177
Diffstat (limited to 'dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch')
-rw-r--r--dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch b/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
deleted file mode 100644
index 80cc4d38873..00000000000
--- a/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
-index bffa9fb..8fc90ee 100644
---- a/Modules/FindPythonLibs.cmake
-+++ b/Modules/FindPythonLibs.cmake
-@@ -74,6 +74,19 @@ set(_Python_VERSIONS
- ${_PYTHON_FIND_OTHER_VERSIONS}
- )
-
-+# Gentoo portage requires that you use exactly the given python version
-+if (CMAKE_BUILD_TYPE STREQUAL Gentoo)
-+ execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
-+ OUTPUT_VARIABLE _Gentoo_Python_VERSION)
-+ list(FIND _Python_VERSIONS "${_Gentoo_Python_VERSION}" _Gentoo_Python_INDEX)
-+ if (_Gentoo_Python_INDEX EQUAL -1)
-+ # the current Gentoo python version is not compatible with what is requested
-+ set(_Python_VERSIONS)
-+ else ()
-+ set(_Python_VERSIONS "${_Gentoo_Python_VERSION}")
-+ endif ()
-+endif()
-+
- unset(_PYTHON_FIND_OTHER_VERSIONS)
- unset(_PYTHON1_VERSIONS)
- unset(_PYTHON2_VERSIONS)