aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2013-01-11 01:29:27 +1100
committerMichael Palimaka <kensington@gentoo.org>2013-01-11 01:29:27 +1100
commit9adb3b0f90aa914c43e07a4216b77d175627bfb5 (patch)
treef0a9dc77c117cb75e595d34585906458d70aa5cf /dev-util/cmake/files/cmake-2.8.4-FindPythonLibs.patch
parent[eclass] Export cmake-utils_src_prepare. (diff)
downloadkde-9adb3b0f90aa914c43e07a4216b77d175627bfb5.tar.gz
kde-9adb3b0f90aa914c43e07a4216b77d175627bfb5.tar.bz2
kde-9adb3b0f90aa914c43e07a4216b77d175627bfb5.zip
[dev-util/cmake] Add improved Python patch for testing wrt bug #405181.
Package-Manager: portage-2.1.11.38 RepoMan-Options: --force
Diffstat (limited to 'dev-util/cmake/files/cmake-2.8.4-FindPythonLibs.patch')
-rw-r--r--dev-util/cmake/files/cmake-2.8.4-FindPythonLibs.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-util/cmake/files/cmake-2.8.4-FindPythonLibs.patch b/dev-util/cmake/files/cmake-2.8.4-FindPythonLibs.patch
new file mode 100644
index 0000000000..28d2e4f879
--- /dev/null
+++ b/dev-util/cmake/files/cmake-2.8.4-FindPythonLibs.patch
@@ -0,0 +1,12 @@
+diff -urN cmake-2.8.4.old/Modules/FindPythonLibs.cmake cmake-2.8.4/Modules/FindPythonLibs.cmake
+--- cmake-2.8.4.old/Modules/FindPythonLibs.cmake 2011-02-20 19:32:16.363655002 +0100
++++ cmake-2.8.4/Modules/FindPythonLibs.cmake 2011-02-20 19:33:51.905655001 +0100
+@@ -33,6 +33,8 @@
+ ${Python_ADDITIONAL_VERSIONS}
+ 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
+
++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(_CURRENT_VERSION ${_Python_VERSIONS})
+ STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
+ IF(WIN32)