/[gentoo-x86]/dev-util/cmake/files/cmake-2.8.11-FindBoost-python.patch
Gentoo

Contents of /dev-util/cmake/files/cmake-2.8.11-FindBoost-python.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jun 9 12:05:26 2013 UTC (10 months, 1 week ago) by johu
Branch: MAIN
CVS Tags: HEAD
Version bump by several people in kde overlay. Fixes bug bug #436540.

(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)

1 --- Modules/FindBoost.cmake
2 +++ Modules/FindBoost.cmake
3 @@ -903,6 +903,11 @@
4
5 set( _boost_docstring_release "Boost ${COMPONENT} library (release)")
6 set( _boost_docstring_debug "Boost ${COMPONENT} library (debug)")
7 + if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
8 + # Get version of Python.
9 + execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE _python_version)
10 + endif()
11 +
12
13 #
14 # Find RELEASE libraries
15 @@ -913,6 +918,14 @@
16 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
17 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
18 ${Boost_LIB_PREFIX}boost_${COMPONENT} )
19 + if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
20 + list(APPEND _boost_RELEASE_NAMES
21 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
22 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
23 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
24 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
25 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version} )
26 + endif()
27 if(_boost_STATIC_RUNTIME_WORKAROUND)
28 set(_boost_RELEASE_STATIC_ABI_TAG "-s${_boost_RELEASE_ABI_TAG}")
29 list(APPEND _boost_RELEASE_NAMES
30 @@ -920,6 +933,13 @@
31 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
32 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
33 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
34 + if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
35 + list(APPEND _boost_RELEASE_NAMES
36 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
37 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
38 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
39 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
40 + endif()
41 endif()
42 if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
43 _Boost_PREPEND_LIST_WITH_THREADAPI(_boost_RELEASE_NAMES ${_boost_RELEASE_NAMES})
44 @@ -945,6 +965,15 @@
45 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
46 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}
47 ${Boost_LIB_PREFIX}boost_${COMPONENT} )
48 + if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
49 + list(APPEND _boost_DEBUG_NAMES
50 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
51 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
52 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
53 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
54 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}
55 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version} )
56 + endif()
57 if(_boost_STATIC_RUNTIME_WORKAROUND)
58 set(_boost_DEBUG_STATIC_ABI_TAG "-s${_boost_DEBUG_ABI_TAG}")
59 list(APPEND _boost_DEBUG_NAMES
60 @@ -952,6 +981,13 @@
61 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
62 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
63 ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
64 + if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
65 + list(APPEND _boost_DEBUG_NAMES
66 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
67 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
68 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
69 + ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
70 + endif()
71 endif()
72 if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
73 _Boost_PREPEND_LIST_WITH_THREADAPI(_boost_DEBUG_NAMES ${_boost_DEBUG_NAMES})

  ViewVC Help
Powered by ViewVC 1.1.20