Gentoo Archives: gentoo-commits

From: "Slawek Lis (slis)" <slis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/hpx/files: hpx-0.9.8-cmake_dir.patch hpx-0.9.8-install-path.patch hpx-0.9.8-multilib.patch
Date: Thu, 31 Jul 2014 12:26:20
Message-Id: 20140731122613.BA65820035@flycatcher.gentoo.org
1 slis 14/07/31 12:26:11
2
3 Added: hpx-0.9.8-cmake_dir.patch
4 hpx-0.9.8-install-path.patch
5 hpx-0.9.8-multilib.patch
6 Log:
7 added hpx package
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x55265D89)
10
11 Revision Changes Path
12 1.1 sys-cluster/hpx/files/hpx-0.9.8-cmake_dir.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpx/files/hpx-0.9.8-cmake_dir.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpx/files/hpx-0.9.8-cmake_dir.patch?rev=1.1&content-type=text/plain
16
17 Index: hpx-0.9.8-cmake_dir.patch
18 ===================================================================
19 From e565c2cce934f2d6fa6e80061c416a2e7df0f311 Mon Sep 17 00:00:00 2001
20 From: Christoph Junghans <junghans@××××.gov>
21 Date: Tue, 20 May 2014 11:18:21 -0600
22 Subject: [PATCH] make cmake_dir configure-able
23
24 ---
25 CMakeLists.txt | 4 +++-
26 1 file changed, 3 insertions(+), 1 deletion(-)
27
28 diff --git a/CMakeLists.txt b/CMakeLists.txt
29 index 8ad79cb..e6f392a 100644
30 --- a/CMakeLists.txt
31 +++ b/CMakeLists.txt
32 @@ -1981,7 +1981,9 @@ endforeach()
33 # Make list unique
34 list(REMOVE_DUPLICATES external_definitions)
35
36 -set(cmake_dir cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
37 +if (NOT DEFINED cmake_dir)
38 + set(cmake_dir cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
39 +endif(NOT DEFINED cmake_dir)
40
41 if(MSVC)
42 set(output_dir "${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}")
43 --
44 1.8.5.5
45
46
47
48
49 1.1 sys-cluster/hpx/files/hpx-0.9.8-install-path.patch
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpx/files/hpx-0.9.8-install-path.patch?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpx/files/hpx-0.9.8-install-path.patch?rev=1.1&content-type=text/plain
53
54 Index: hpx-0.9.8-install-path.patch
55 ===================================================================
56 From 5c04f9c2d47a41f6113f45eeb4dd9f7968f2cd52 Mon Sep 17 00:00:00 2001
57 From: Christoph Junghans <junghans@××××.gov>
58 Date: Tue, 20 May 2014 09:27:47 -0600
59 Subject: [PATCH] fix make install non-empty DESTDIR
60
61 Symlinks were created even when make install was called with a
62 non-empty DESTDIR variable. Fixed by creating the symlinks in build
63 directory first and then install them using common install.
64 DESTDIR installation is needed for binary packages.
65 ---
66 CMakeLists.txt | 31 +++++++++++++++++++------------
67 1 file changed, 19 insertions(+), 12 deletions(-)
68
69 diff --git a/CMakeLists.txt b/CMakeLists.txt
70 index 00a71c7..8d5df19 100644
71 --- a/CMakeLists.txt
72 +++ b/CMakeLists.txt
73 @@ -1762,15 +1762,22 @@ if(NOT HPX_NO_INSTALL)
74
75 if(UNIX)
76 file(GLOB scripts "${CMAKE_SOURCE_DIR}/python/scripts/*.py")
77 + execute_process(COMMAND "${CMAKE_COMMAND}" -E make_directory
78 + "${CMAKE_BINARY_DIR}/python/scripts" )
79 foreach(script ${scripts})
80 get_filename_component(script_name ${script} NAME)
81 get_filename_component(script_name_we ${script} NAME_WE)
82 - install(CODE
83 - "set(bindir \"${CMAKE_INSTALL_PREFIX}/bin/\")
84 - execute_process(
85 - COMMAND \"\${CMAKE_COMMAND}\" -E create_symlink
86 - \"${script_name}\" \"${script_name_we}\"
87 - WORKING_DIRECTORY \"\${bindir}\")")
88 +
89 + #make copy, so that we have intact symlink in CMAKE_BINARY_DIR
90 + execute_process(
91 + COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${script}" "${script_name}"
92 + WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/python/scripts")
93 +
94 + execute_process(
95 + COMMAND "${CMAKE_COMMAND}" -E create_symlink "${script_name}" "${script_name_we}"
96 + WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/python/scripts")
97 +
98 + install(FILES "${CMAKE_BINARY_DIR}/python/scripts/${script_name_we}" DESTINATION "bin")
99 endforeach()
100 endif()
101
102 @@ -1781,13 +1788,13 @@ if(NOT HPX_NO_INSTALL)
103 FILES_MATCHING PATTERN "*.py"
104 PATTERN ".git" EXCLUDE)
105
106 + execute_process(COMMAND "${CMAKE_COMMAND}" -E make_directory "${CMAKE_BINARY_DIR}/python" )
107 + #make symlink, so that we have intact hpx symlink in CMAKE_BINARY_DIR
108 + execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink "${CMAKE_SOURCE_DIR}/python/hpx"
109 + "hpx-${HPX_VERSION}" WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/python")
110 # create a symlink in share pointing to the latest HPX installation
111 - install(CODE
112 - "set(sharedir \"${CMAKE_INSTALL_PREFIX}/share/\")
113 - execute_process(
114 - COMMAND \"\${CMAKE_COMMAND}\" -E create_symlink
115 - \"hpx-${HPX_VERSION}\" \"hpx\"
116 - WORKING_DIRECTORY \"\${sharedir}\")")
117 + execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink "hpx-${HPX_VERSION}" "hpx" WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/python")
118 + install(DIRECTORY "${CMAKE_BINARY_DIR}/python/hpx" DESTINATION "share")
119
120 install( # Install external dependencies
121 DIRECTORY external/cache/boost
122 --
123 1.8.5.5
124
125
126
127
128 1.1 sys-cluster/hpx/files/hpx-0.9.8-multilib.patch
129
130 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpx/files/hpx-0.9.8-multilib.patch?rev=1.1&view=markup
131 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/hpx/files/hpx-0.9.8-multilib.patch?rev=1.1&content-type=text/plain
132
133 Index: hpx-0.9.8-multilib.patch
134 ===================================================================
135 From 383acb45e75406fb94bb4fa86c162a78c05ab840 Mon Sep 17 00:00:00 2001
136 From: Christoph Junghans <junghans@××××.gov>
137 Date: Tue, 20 May 2014 11:03:16 -0600
138 Subject: [PATCH] added LIB cmake option to configure lib directory
139
140 for multiarch distributions the lib directory needs to changed
141 from 'lib' to 'lib64'/'lib32'. Add an cmake option to do this.
142 ---
143 CMakeLists.txt | 11 +++++++----
144 cmake/HPX_AddComponent.cmake | 2 +-
145 cmake/HPX_AddLibrary.cmake | 2 +-
146 plugins/binary_filter/bzip2/CMakeLists.txt | 2 +-
147 plugins/binary_filter/snappy/CMakeLists.txt | 2 +-
148 plugins/binary_filter/zlib/CMakeLists.txt | 2 +-
149 plugins/parcel/coalescing/CMakeLists.txt | 2 +-
150 src/CMakeLists.txt | 6 +++---
151 8 files changed, 16 insertions(+), 13 deletions(-)
152
153 diff --git a/CMakeLists.txt b/CMakeLists.txt
154 index 8d5df19..8ad79cb 100644
155 --- a/CMakeLists.txt
156 +++ b/CMakeLists.txt
157 @@ -192,6 +192,9 @@ else()
158 "64" ADVANCED)
159 endif()
160
161 +if (NOT DEFINED LIB)
162 + set(LIB "lib")
163 +endif(NOT DEFINED LIB)
164 ###############################################################################
165 if(UNIX)
166 hpx_link_directories("${CMAKE_BINARY_DIR}/lib/hpx")
167 @@ -2027,14 +2030,14 @@
168 if(NOT HPX_NO_INSTALL)
169 if(NOT ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug"))
170 install(FILES ${output_dir}/lib/pkgconfig/hpx_application.pc
171 - DESTINATION lib/pkgconfig)
172 + DESTINATION ${LIB}/pkgconfig)
173 install(FILES ${output_dir}/lib/pkgconfig/hpx_component.pc
174 - DESTINATION lib/pkgconfig)
175 + DESTINATION ${LIB}/pkgconfig)
176 else()
177 install(FILES ${output_dir}/lib/pkgconfig/hpx_application_debug.pc
178 - DESTINATION lib/pkgconfig)
179 + DESTINATION ${LIB}/pkgconfig)
180 install(FILES ${output_dir}/lib/pkgconfig/hpx_component_debug.pc
181 - DESTINATION lib/pkgconfig)
182 + DESTINATION ${LIB}/pkgconfig)
183 endif()
184 endif()
185
186 diff --git a/cmake/HPX_AddComponent.cmake b/cmake/HPX_AddComponent.cmake
187 index afbee24..babca54 100644
188 --- a/cmake/HPX_AddComponent.cmake
189 +++ b/cmake/HPX_AddComponent.cmake
190 @@ -258,7 +258,7 @@ macro(add_hpx_component name)
191 if(${name}_INSTALL_SUFFIX)
192 hpx_library_install("${name}_component" "${${name}_INSTALL_SUFFIX}")
193 else()
194 - hpx_library_install(${name}_component lib/hpx)
195 + hpx_library_install(${name}_component ${LIB}/hpx)
196 endif()
197
198 foreach(target ${${name}_INI})
199 diff --git a/cmake/HPX_AddLibrary.cmake b/cmake/HPX_AddLibrary.cmake
200 index 7f39700..8524a45 100644
201 --- a/cmake/HPX_AddLibrary.cmake
202 +++ b/cmake/HPX_AddLibrary.cmake
203 @@ -248,7 +248,7 @@ macro(add_hpx_library name)
204 if(${name}_INSTALL_SUFFIX)
205 hpx_library_install("${name}_lib" "${${name}_INSTALL_SUFFIX}")
206 else()
207 - hpx_library_install(${name}_lib lib/hpx)
208 + hpx_library_install(${name}_lib ${LIB}/hpx)
209 endif()
210 endif()
211 endmacro()
212 diff --git a/plugins/binary_filter/bzip2/CMakeLists.txt b/plugins/binary_filter/bzip2/CMakeLists.txt
213 index 2580164..b2fbf40 100644
214 --- a/plugins/binary_filter/bzip2/CMakeLists.txt
215 +++ b/plugins/binary_filter/bzip2/CMakeLists.txt
216 @@ -38,7 +38,7 @@ macro(add_bzip2_module)
217 add_hpx_pseudo_dependencies(plugins.compression.bzip2 compress_bzip2_lib)
218
219 if(NOT HPX_NO_INSTALL)
220 - hpx_library_install(compress_bzip2_lib lib/hpx)
221 + hpx_library_install(compress_bzip2_lib ${LIB}/hpx)
222 endif()
223 endif()
224 endmacro()
225 diff --git a/plugins/binary_filter/snappy/CMakeLists.txt b/plugins/binary_filter/snappy/CMakeLists.txt
226 index 6a7bbac..47e5966 100644
227 --- a/plugins/binary_filter/snappy/CMakeLists.txt
228 +++ b/plugins/binary_filter/snappy/CMakeLists.txt
229 @@ -30,7 +30,7 @@ macro(add_snappy_module)
230 add_hpx_pseudo_dependencies(plugins.compression.snappy compress_snappy_lib)
231
232 if(NOT HPX_NO_INSTALL)
233 - hpx_library_install(compress_snappy_lib lib/hpx)
234 + hpx_library_install(compress_snappy_lib ${LIB}/hpx)
235 endif()
236 endif()
237 endmacro()
238 diff --git a/plugins/binary_filter/zlib/CMakeLists.txt b/plugins/binary_filter/zlib/CMakeLists.txt
239 index 4a188ca..e4485f7 100644
240 --- a/plugins/binary_filter/zlib/CMakeLists.txt
241 +++ b/plugins/binary_filter/zlib/CMakeLists.txt
242 @@ -38,7 +38,7 @@ macro(add_zlib_module)
243 add_hpx_pseudo_dependencies(plugins.compression.zlib compress_zlib_lib)
244
245 if(NOT HPX_NO_INSTALL)
246 - hpx_library_install(compress_zlib_lib lib/hpx)
247 + hpx_library_install(compress_zlib_lib ${LIB}/hpx)
248 endif()
249 endif()
250 endmacro()
251 diff --git a/plugins/parcel/coalescing/CMakeLists.txt b/plugins/parcel/coalescing/CMakeLists.txt
252 index 093e427..889c10c 100644
253 --- a/plugins/parcel/coalescing/CMakeLists.txt
254 +++ b/plugins/parcel/coalescing/CMakeLists.txt
255 @@ -22,7 +22,7 @@ macro(add_coalescing_module)
256 add_hpx_pseudo_dependencies(plugins.parcel.coalescing parcel_coalescing_lib)
257
258 if(NOT HPX_NO_INSTALL)
259 - hpx_library_install(parcel_coalescing_lib lib/hpx)
260 + hpx_library_install(parcel_coalescing_lib ${LIB}/hpx)
261 endif()
262 endmacro()
263
264 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
265 index 4f4c79c..6190839 100644
266 --- a/src/CMakeLists.txt
267 +++ b/src/CMakeLists.txt
268 @@ -312,7 +312,7 @@ set_property(TARGET hpx_serialization APPEND
269 "HPX_COROUTINE_EXPORTS")
270
271 if(NOT HPX_NO_INSTALL)
272 - hpx_library_install(hpx_serialization lib/hpx)
273 + hpx_library_install(hpx_serialization ${LIB}/hpx)
274 endif()
275
276 ################################################################################
277 @@ -403,7 +403,7 @@ set_property(TARGET hpx APPEND
278 "HPX_COROUTINE_EXPORTS") # Do we still need this?
279
280 if(NOT HPX_NO_INSTALL)
281 - hpx_library_install(hpx lib/hpx)
282 + hpx_library_install(hpx ${LIB}/hpx)
283 endif()
284
285 ################################################################################
286 @@ -436,7 +436,7 @@ endif()
287 set_property(TARGET hpx_init PROPERTY FOLDER "Core")
288
289 if(NOT HPX_NO_INSTALL)
290 - hpx_archive_install(hpx_init lib/hpx)
291 + hpx_archive_install(hpx_init ${LIB}/hpx)
292 endif()
293
294 set(HPX_CONFIG_DEFINITIONS ${HPX_CONFIG_DEFINITIONS} PARENT_SCOPE)
295 --
296 1.8.5.5