Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/hpx/files/, sys-cluster/hpx/
Date: Sat, 31 Oct 2020 09:47:57
Message-Id: 1604137659.14fe4e4392d78029ea9d761696b3b3d4fda08999.juippis@gentoo
1 commit: 14fe4e4392d78029ea9d761696b3b3d4fda08999
2 Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
3 AuthorDate: Fri Sep 18 20:04:19 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 31 09:47:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14fe4e43
7
8 sys-cluster/hpx: Drop old
9
10 The new version v1.5 builds with clang and boost-1.74. So, the build failure
11 bugs related to v1.4 can be closed.
12
13 Closes: https://bugs.gentoo.org/741960
14 Package-Manager: Portage-3.0.4, Repoman-3.0.1
15 Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
16 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
17
18 sys-cluster/hpx/Manifest | 1 -
19 sys-cluster/hpx/files/hpx-1.4.1-boost.patch | 30 ----
20 .../files/hpx-1.4.1-disable-failing-tests.patch | 157 ---------------------
21 sys-cluster/hpx/files/hpx-1.4.1-placeholder.patch | 79 -----------
22 sys-cluster/hpx/files/hpx-1.4.1-python.patch | 37 -----
23 sys-cluster/hpx/hpx-1.4.1.ebuild | 120 ----------------
24 6 files changed, 424 deletions(-)
25
26 diff --git a/sys-cluster/hpx/Manifest b/sys-cluster/hpx/Manifest
27 index 519246709a7..b94551a449f 100644
28 --- a/sys-cluster/hpx/Manifest
29 +++ b/sys-cluster/hpx/Manifest
30 @@ -1,2 +1 @@
31 DIST hpx-1.5.1.tar.gz 4576475 BLAKE2B 8702638461f92d9d94d0e2ac4ec32527d995a45f54babcbf08d644d1cac8fa37692fb66f59e221930f7738861b41a93fd0ab64d11c4e46d4e039ff3b0e4fec72 SHA512 ab2603adca8780808b62b55f57a03bf8491b805665831c1c484eeba8e7b306bb3269884c8940ad2fc4c5b0d679c54b1e33bc077cdb7ea6d1cb9a715ff70b9842
32 -DIST hpx_1.4.1.tar.gz 4213023 BLAKE2B dc8a9cda3061359ea1bb8eba9ccee60dea308f5425cfe0f18d9003032726962d74d417b8748124c8e6a0b207624093ccf625c82e9e1a71fce8dde74d41d987d2 SHA512 f110d5e5c10ec396f6e762568c9ecd5b767cb6efe91168b5caa8fe1e07bb5870cd13b3392fa4e008a2cc0e044b02084a35b0866e943d9b9c7435599c131f1582
33
34 diff --git a/sys-cluster/hpx/files/hpx-1.4.1-boost.patch b/sys-cluster/hpx/files/hpx-1.4.1-boost.patch
35 deleted file mode 100644
36 index 939f4f77813..00000000000
37 --- a/sys-cluster/hpx/files/hpx-1.4.1-boost.patch
38 +++ /dev/null
39 @@ -1,30 +0,0 @@
40 -From 1a3615f30491320d48e45005ad7b032fb3c1821d Mon Sep 17 00:00:00 2001
41 -From: Kurt Kanzenbach <kurt@×××××××××××××.de>
42 -Date: Sun, 22 Mar 2020 12:49:59 +0100
43 -Subject: [PATCH] cmake: Remove passing of BOOST_ROOT
44 -
45 -That variable is not used and generates QA issues:
46 -
47 - * One or more CMake variables were not used by the project:
48 - * BOOST_ROOT
49 -
50 -Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de>
51 ----
52 - tests/unit/build/CMakeLists.txt | 1 -
53 - 1 file changed, 1 deletion(-)
54 -
55 -diff --git a/tests/unit/build/CMakeLists.txt b/tests/unit/build/CMakeLists.txt
56 -index 757f4887fba2..2163b853fbad 100644
57 ---- a/tests/unit/build/CMakeLists.txt
58 -+++ b/tests/unit/build/CMakeLists.txt
59 -@@ -38,7 +38,6 @@ function(create_cmake_test name hpx_dir)
60 - "${CMAKE_COMMAND}" -E chdir "${build_dir}" "${CMAKE_COMMAND}"
61 - "${PROJECT_SOURCE_DIR}/examples/hello_world_component"
62 - -DHPX_DIR=${hpx_dir}
63 -- -DBOOST_ROOT=${BOOST_ROOT}
64 - ${ADDITIONAL_CMAKE_OPTIONS}
65 - -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS_SAFE}
66 - -DCMAKE_BUILD_TYPE=$<CONFIGURATION> VERBATIM)
67 ---
68 -2.24.1
69 -
70
71 diff --git a/sys-cluster/hpx/files/hpx-1.4.1-disable-failing-tests.patch b/sys-cluster/hpx/files/hpx-1.4.1-disable-failing-tests.patch
72 deleted file mode 100644
73 index 492cbaf2378..00000000000
74 --- a/sys-cluster/hpx/files/hpx-1.4.1-disable-failing-tests.patch
75 +++ /dev/null
76 @@ -1,157 +0,0 @@
77 -From 10577db8e8ca556dc98b1c0010b7e53416e22b22 Mon Sep 17 00:00:00 2001
78 -From: Kurt Kanzenbach <kurt@×××××××××××××.de>
79 -Date: Tue, 17 Mar 2020 11:21:53 +0100
80 -Subject: [PATCH] tests: Disable failing tests
81 -
82 -Currently six tests are failing:
83 -
84 -|99% tests passed, 6 tests failed out of 712
85 -|
86 -|Total Test time (real) = 2268.99 sec
87 -|
88 -|The following tests FAILED:
89 -| 339 - tests.unit.modules.segmented_algorithms.distributed.tcp.partitioned_vector_adjacent_find1 (Failed)
90 -| 454 - tests.regressions.dynamic_counters_loaded_1508 (Failed)
91 -| 601 - tests.unit.component.launch_process (Timeout)
92 -| 678 - tests.unit.threads.distributed.tcp.thread_stacksize (Failed)
93 -| 681 - tests.unit.topology.numa_allocator (Failed)
94 -| 712 - tests.unit.parcelset.distributed.tcp.put_parcels_with_coalescing (Failed)
95 -
96 -Needs to be further investigated. Disable them for now.
97 -
98 -Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de>
99 ----
100 - .../tests/unit/CMakeLists.txt | 2 +-
101 - tests/regressions/CMakeLists.txt | 2 +-
102 - tests/unit/component/CMakeLists.txt | 36 +++++++++----------
103 - tests/unit/parcelset/CMakeLists.txt | 2 +-
104 - tests/unit/threads/CMakeLists.txt | 2 +-
105 - tests/unit/topology/CMakeLists.txt | 6 ++--
106 - 6 files changed, 25 insertions(+), 25 deletions(-)
107 -
108 -diff --git a/libs/segmented_algorithms/tests/unit/CMakeLists.txt b/libs/segmented_algorithms/tests/unit/CMakeLists.txt
109 -index 1ed7dbd7798a..17d5e4cca3b4 100644
110 ---- a/libs/segmented_algorithms/tests/unit/CMakeLists.txt
111 -+++ b/libs/segmented_algorithms/tests/unit/CMakeLists.txt
112 -@@ -7,7 +7,7 @@
113 - set(tests
114 - partitioned_vector_adjacent_difference1
115 - partitioned_vector_adjacent_difference2
116 -- partitioned_vector_adjacent_find1
117 -+ # partitioned_vector_adjacent_find1
118 - partitioned_vector_adjacent_find2
119 - partitioned_vector_all_of1
120 - partitioned_vector_all_of2
121 -diff --git a/tests/regressions/CMakeLists.txt b/tests/regressions/CMakeLists.txt
122 -index 5a70ab8bfc99..fa4574ee0bf3 100644
123 ---- a/tests/regressions/CMakeLists.txt
124 -+++ b/tests/regressions/CMakeLists.txt
125 -@@ -25,7 +25,7 @@ foreach(subdir ${subdirs})
126 - endforeach()
127 -
128 - set(tests
129 -- dynamic_counters_loaded_1508
130 -+ # dynamic_counters_loaded_1508
131 - id_type_ref_counting_1032
132 - multiple_init
133 - multiple_init_2918
134 -diff --git a/tests/unit/component/CMakeLists.txt b/tests/unit/component/CMakeLists.txt
135 -index 8deacffedb7b..49511e82e478 100644
136 ---- a/tests/unit/component/CMakeLists.txt
137 -+++ b/tests/unit/component/CMakeLists.txt
138 -@@ -29,25 +29,25 @@ set(tests
139 - )
140 -
141 - if(HPX_WITH_NETWORKING)
142 -- set(tests ${tests}
143 -- launch_process
144 -- )
145 -+ # set(tests ${tests}
146 -+ # launch_process
147 -+ # )
148 -
149 - # add executable needed for launch_process_test
150 -- add_hpx_executable(launched_process_test
151 -- INTERNAL_FLAGS
152 -- SOURCES launched_process.cpp
153 -- EXCLUDE_FROM_ALL
154 -- HPX_PREFIX ${HPX_BUILD_PREFIX}
155 -- FOLDER "Tests/Unit/Components"
156 -- COMPONENT_DEPENDENCIES launch_process_test_server)
157 --
158 -- set(launch_process_FLAGS
159 -- DEPENDENCIES iostreams_component process_component
160 -- launch_process_test_server_component)
161 -- set(launch_process_PARAMETERS
162 -- --launch=$<TARGET_FILE:launched_process_test>
163 -- --hpx:expect-connecting-localities)
164 -+ # add_hpx_executable(launched_process_test
165 -+ # INTERNAL_FLAGS
166 -+ # SOURCES launched_process.cpp
167 -+ # EXCLUDE_FROM_ALL
168 -+ # HPX_PREFIX ${HPX_BUILD_PREFIX}
169 -+ # FOLDER "Tests/Unit/Components"
170 -+ # COMPONENT_DEPENDENCIES launch_process_test_server)
171 -+
172 -+ # set(launch_process_FLAGS
173 -+ # DEPENDENCIES iostreams_component process_component
174 -+ # launch_process_test_server_component)
175 -+ # set(launch_process_PARAMETERS
176 -+ # --launch=$<TARGET_FILE:launched_process_test>
177 -+ # --hpx:expect-connecting-localities)
178 - endif()
179 -
180 - set(action_invoke_no_more_than_PARAMETERS
181 -@@ -123,5 +123,5 @@ foreach(test ${tests})
182 - endforeach()
183 -
184 - if(HPX_WITH_NETWORKING)
185 -- add_hpx_pseudo_dependencies(tests.unit.component.launch_process launched_process_test)
186 -+ # add_hpx_pseudo_dependencies(tests.unit.component.launch_process launched_process_test)
187 - endif()
188 -diff --git a/tests/unit/parcelset/CMakeLists.txt b/tests/unit/parcelset/CMakeLists.txt
189 -index 93c5844b9210..ec2ffacd0f99 100644
190 ---- a/tests/unit/parcelset/CMakeLists.txt
191 -+++ b/tests/unit/parcelset/CMakeLists.txt
192 -@@ -16,7 +16,7 @@ set(put_parcels_FLAGS DEPENDENCIES iostreams_component)
193 - set(set_parcel_write_handler_PARAMETERS LOCALITIES 2)
194 -
195 - if(HPX_WITH_PARCEL_COALESCING)
196 -- set(tests ${tests} put_parcels_with_coalescing)
197 -+ # set(tests ${tests} put_parcels_with_coalescing)
198 - set(put_parcels_with_coalescing_PARAMETERS LOCALITIES 2)
199 - set(put_parcels_with_coalescing_FLAGS DEPENDENCIES iostreams_component parcel_coalescing)
200 - endif()
201 -diff --git a/tests/unit/threads/CMakeLists.txt b/tests/unit/threads/CMakeLists.txt
202 -index df0a1eff4dbb..d542d24136b7 100644
203 ---- a/tests/unit/threads/CMakeLists.txt
204 -+++ b/tests/unit/threads/CMakeLists.txt
205 -@@ -17,7 +17,7 @@ set(tests
206 - thread_id
207 - thread_launching
208 - thread_mf
209 -- thread_stacksize
210 -+ # thread_stacksize
211 - thread_suspension_executor
212 - thread_yield
213 - )
214 -diff --git a/tests/unit/topology/CMakeLists.txt b/tests/unit/topology/CMakeLists.txt
215 -index 8a8a26b294fb..9f6311395c61 100644
216 ---- a/tests/unit/topology/CMakeLists.txt
217 -+++ b/tests/unit/topology/CMakeLists.txt
218 -@@ -5,9 +5,9 @@
219 - # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
220 -
221 - if (HPX_WITH_SHARED_PRIORITY_SCHEDULER AND HPX_WITH_CXX14_RETURN_TYPE_DEDUCTION)
222 -- set(tests ${tests}
223 -- numa_allocator
224 -- )
225 -+ # set(tests ${tests}
226 -+ # numa_allocator
227 -+ # )
228 -
229 - # NB. threads = -2 = threads = 'cores'
230 - # NB. threads = -1 = threads = 'all'
231 ---
232 -2.24.1
233 -
234
235 diff --git a/sys-cluster/hpx/files/hpx-1.4.1-placeholder.patch b/sys-cluster/hpx/files/hpx-1.4.1-placeholder.patch
236 deleted file mode 100644
237 index 94271e6c0ec..00000000000
238 --- a/sys-cluster/hpx/files/hpx-1.4.1-placeholder.patch
239 +++ /dev/null
240 @@ -1,79 +0,0 @@
241 -From 6bdbb6a3ad6ea57c46e9998e9efd46f86f5d5729 Mon Sep 17 00:00:00 2001
242 -From: Hartmut Kaiser <hartmut.kaiser@×××××.com>
243 -Date: Tue, 28 Apr 2020 09:52:08 -0500
244 -Subject: [PATCH] Adding missing using placeholder::_X
245 -
246 -- flyby remove unneeded using statements
247 -
248 -(cherry picked from commit 1a6882195f9dc8d333ad12898fb88e3ca2931022)
249 -Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de>
250 ----
251 - src/performance_counters/registry.cpp | 3 ---
252 - src/runtime/agas/addressing_service.cpp | 3 ++-
253 - tests/performance/network/network_storage/network_storage.cpp | 1 -
254 - 3 files changed, 2 insertions(+), 5 deletions(-)
255 -
256 -diff --git a/src/performance_counters/registry.cpp b/src/performance_counters/registry.cpp
257 -index 34c8d0e71d55..8da91f379a72 100644
258 ---- a/src/performance_counters/registry.cpp
259 -+++ b/src/performance_counters/registry.cpp
260 -@@ -378,7 +378,6 @@ namespace hpx { namespace performance_counters
261 - counter_status registry::create_raw_counter_value(counter_info const& info,
262 - std::int64_t* countervalue, naming::gid_type& id, error_code& ec)
263 - {
264 -- using util::placeholders::_1;
265 - hpx::util::function_nonser<std::int64_t(bool)> func(
266 - util::bind_front(wrap_counter, countervalue));
267 - return create_raw_counter(info, func, id, ec);
268 -@@ -401,7 +400,6 @@ namespace hpx { namespace performance_counters
269 - hpx::util::function_nonser<std::int64_t()> const& f, naming::gid_type& id,
270 - error_code& ec)
271 - {
272 -- using util::placeholders::_1;
273 - hpx::util::function_nonser<std::int64_t(bool)> func(
274 - util::bind_front(&wrap_raw_counter, f));
275 - return create_raw_counter(info, func, id, ec);
276 -@@ -465,7 +463,6 @@ namespace hpx { namespace performance_counters
277 - hpx::util::function_nonser<std::vector<std::int64_t>()> const& f,
278 - naming::gid_type& id, error_code& ec)
279 - {
280 -- using util::placeholders::_1;
281 - hpx::util::function_nonser<std::vector<std::int64_t>(bool)> func(
282 - util::bind_front(&wrap_raw_values_counter, f));
283 - return create_raw_counter(info, func, id, ec);
284 -diff --git a/src/runtime/agas/addressing_service.cpp b/src/runtime/agas/addressing_service.cpp
285 -index f30760c0e05e..b416a28d12d8 100644
286 ---- a/src/runtime/agas/addressing_service.cpp
287 -+++ b/src/runtime/agas/addressing_service.cpp
288 -@@ -1864,7 +1864,6 @@ future<hpx::id_type> addressing_service::on_symbol_namespace_event(
289 - hpx::future<bool> f =
290 - symbol_ns_.on_event(name, call_for_past_events, p.get_id());
291 -
292 -- using util::placeholders::_1;
293 - return f.then(
294 - hpx::launch::sync,
295 - util::one_shot(util::bind_back(
296 -@@ -2356,6 +2355,8 @@ void addressing_service::register_counter_types()
297 - util::bind_front(
298 - &addressing_service::get_cache_erase_entry_time, this));
299 -
300 -+ using util::placeholders::_1;
301 -+ using util::placeholders::_2;
302 - performance_counters::generic_counter_type_data const counter_types[] =
303 - {
304 - { "/agas/count/cache/entries", performance_counters::counter_raw,
305 -diff --git a/tests/performance/network/network_storage/network_storage.cpp b/tests/performance/network/network_storage/network_storage.cpp
306 -index 33fc1a66afa4..dfcffbafb180 100644
307 ---- a/tests/performance/network/network_storage/network_storage.cpp
308 -+++ b/tests/performance/network/network_storage/network_storage.cpp
309 -@@ -802,7 +802,6 @@ void test_read(
310 - ++FuturesWaiting[send_rank];
311 - std::lock_guard<hpx::lcos::local::spinlock> lk(FuturesMutex);
312 - #endif
313 -- using hpx::util::placeholders::_1;
314 - std::size_t buffer_address =
315 - reinterpret_cast<std::size_t>(general_buffer.data());
316 - //
317 ---
318 -2.26.2
319 -
320
321 diff --git a/sys-cluster/hpx/files/hpx-1.4.1-python.patch b/sys-cluster/hpx/files/hpx-1.4.1-python.patch
322 deleted file mode 100644
323 index d28c8a61f23..00000000000
324 --- a/sys-cluster/hpx/files/hpx-1.4.1-python.patch
325 +++ /dev/null
326 @@ -1,37 +0,0 @@
327 -From 641d9766c73d2ee08aac8e1e0dd123b9d6db0c25 Mon Sep 17 00:00:00 2001
328 -From: Kurt Kanzenbach <kurt@×××××××××××××.de>
329 -Date: Tue, 17 Mar 2020 16:20:35 +0100
330 -Subject: [PATCH] cmake: python: Use standard python interpreter
331 -
332 -These scripts are needed during build and run time. So, use a python interpreter
333 -which works for both cases.
334 -
335 -Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de>
336 ----
337 - cmake/templates/hpxcxx.in | 2 +-
338 - cmake/templates/hpxrun.py.in | 2 +-
339 - 2 files changed, 2 insertions(+), 2 deletions(-)
340 -
341 -diff --git a/cmake/templates/hpxcxx.in b/cmake/templates/hpxcxx.in
342 -index 81f38f89367d..a0fd7837b066 100755
343 ---- a/cmake/templates/hpxcxx.in
344 -+++ b/cmake/templates/hpxcxx.in
345 -@@ -1,4 +1,4 @@
346 --#! @PYTHON_EXECUTABLE@
347 -+#! /usr/bin/env python
348 - #
349 - # Copyright (c) 2014 Steven R. Brandt
350 - #
351 -diff --git a/cmake/templates/hpxrun.py.in b/cmake/templates/hpxrun.py.in
352 -index 0e9f04a60495..7ccd2715a697 100755
353 ---- a/cmake/templates/hpxrun.py.in
354 -+++ b/cmake/templates/hpxrun.py.in
355 -@@ -1,4 +1,4 @@
356 --#! @PYTHON_EXECUTABLE@
357 -+#! /usr/bin/env python
358 - #
359 - # Copyright (c) 2014 Thomas Heller
360 - #
361 ---
362 -2.24.1
363 -
364
365 diff --git a/sys-cluster/hpx/hpx-1.4.1.ebuild b/sys-cluster/hpx/hpx-1.4.1.ebuild
366 deleted file mode 100644
367 index 7206bca4082..00000000000
368 --- a/sys-cluster/hpx/hpx-1.4.1.ebuild
369 +++ /dev/null
370 @@ -1,120 +0,0 @@
371 -# Copyright 1999-2020 Gentoo Authors
372 -# Distributed under the terms of the GNU General Public License v2
373 -
374 -EAPI=7
375 -
376 -PYTHON_COMPAT=( python3_{6..8} )
377 -
378 -if [[ ${PV} == 9999 ]] ; then
379 - inherit git-r3
380 - EGIT_REPO_URI="https://github.com/STEllAR-GROUP/hpx.git"
381 -else
382 - SRC_URI="https://stellar.cct.lsu.edu/files/${PN}_${PV}.tar.gz"
383 - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
384 -fi
385 -inherit cmake fortran-2 python-single-r1 check-reqs multiprocessing
386 -
387 -DESCRIPTION="C++ runtime system for parallel and distributed applications"
388 -HOMEPAGE="https://stellar.cct.lsu.edu/tag/hpx/"
389 -
390 -SLOT="0"
391 -LICENSE="Boost-1.0"
392 -IUSE="doc examples jemalloc mpi papi +perftools tbb test"
393 -RESTRICT="!test? ( test )"
394 -
395 -REQUIRED_USE="
396 - ${PYTHON_REQUIRED_USE}
397 - ?? ( jemalloc perftools tbb )
398 -"
399 -
400 -BDEPEND="
401 - virtual/pkgconfig
402 - doc? (
403 - ${PYTHON_DEPS}
404 - app-doc/doxygen
405 - $(python_gen_cond_dep '
406 - dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
407 - dev-python/sphinx_rtd_theme[${PYTHON_MULTI_USEDEP}]
408 - >=dev-python/breathe-4.14[${PYTHON_MULTI_USEDEP}]
409 - ')
410 - )
411 - test? ( ${PYTHON_DEPS} )
412 -"
413 -RDEPEND="
414 - ${PYTHON_DEPS}
415 - dev-libs/boost:=
416 - sys-apps/hwloc
417 - sys-libs/zlib
418 - mpi? ( virtual/mpi )
419 - papi? ( dev-libs/papi )
420 - perftools? ( dev-util/google-perftools )
421 - tbb? ( dev-cpp/tbb )
422 -"
423 -DEPEND="${RDEPEND}"
424 -
425 -PATCHES=(
426 - "${FILESDIR}/${P}-boost.patch"
427 - "${FILESDIR}/${P}-disable-failing-tests.patch"
428 - "${FILESDIR}/${P}-placeholder.patch"
429 - "${FILESDIR}/${P}-python.patch"
430 -)
431 -
432 -hpx_memory_requirement() {
433 - # HPX needs enough main memory for compiling
434 - # rule of thumb: 1G per job
435 - if [[ -z ${MAKEOPTS} ]] ; then
436 - echo "2G"
437 - else
438 - local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
439 - echo "${jobs}G"
440 - fi
441 -}
442 -
443 -pkg_pretend() {
444 - local CHECKREQS_MEMORY=$(hpx_memory_requirement)
445 - check-reqs_pkg_setup
446 -}
447 -
448 -pkg_setup() {
449 - local CHECKREQS_MEMORY=$(hpx_memory_requirement)
450 - check-reqs_pkg_setup
451 - python-single-r1_pkg_setup
452 -}
453 -
454 -src_configure() {
455 - local mycmakeargs=(
456 - -DHPX_WITH_EXAMPLES=OFF
457 - -DHPX_WITH_DOCUMENTATION=$(usex doc)
458 - -DHPX_WITH_PARCELPORT_MPI=$(usex mpi)
459 - -DHPX_WITH_PAPI=$(usex papi)
460 - -DHPX_WITH_GOOGLE_PERFTOOLS=$(usex perftools)
461 - -DBUILD_TESTING=$(usex test)
462 - )
463 - if use jemalloc; then
464 - mycmakeargs+=( -DHPX_WITH_MALLOC=jemalloc )
465 - elif use perftools; then
466 - mycmakeargs+=( -DHPX_WITH_MALLOC=tcmalloc )
467 - elif use tbb; then
468 - mycmakeargs+=( -DHPX_WITH_MALLOC=tbbmalloc )
469 - else
470 - mycmakeargs+=( -DHPX_WITH_MALLOC=system )
471 - fi
472 -
473 - cmake_src_configure
474 -}
475 -
476 -src_compile() {
477 - cmake_src_compile
478 - use test && cmake_build tests
479 -}
480 -
481 -src_test() {
482 - # avoid over-suscribing
483 - cmake_src_test -j1
484 -}
485 -
486 -src_install() {
487 - cmake_src_install
488 - use examples && dodoc -r examples/
489 - python_fix_shebang "${ED}"
490 -}