File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11DIST oneTBB-2022.0.0-0c0ff19.tar.gz 2654804 BLAKE2B 3bdc893783f161b2f1fd7f98911255e2b512adb49cb72c507d299bb5e1a4bbf6f4ff10ac5353de8dd4b55bed9d0cde550bb76ad58af0b4d798a441abc7be8f48 SHA512 7a5a8ce8c7ee594a4a9197e1118e5b4cdfb9c0f086452c6e2f4e41f6cef197cfba647b500c8e021315ae2b06086cd82cc0f8c6747c8bd02303c6bcaa1eb0f362
2+ DIST oneTBB-2022.1.0-45587e9.tar.gz 3435105 BLAKE2B d77ab49a45016f184fb7f718ae0820cddb71870c6708427f297995428f5f0bfb9faf570dd59ebebe63b9b9aeb7c080c7dda98bc73c6d2c9c034507cae8f9391b SHA512 b7d4db1082f1d24f1d1aff3a93edee8af987af2404eef2dc602d656eb75cbc96ade870b99217970a1d6fb8855b97af9d50a1df399e0d85abb9067d5b8cb5a45c
Original file line number Diff line number Diff line change 1+ # Distributed under the terms of the GNU General Public License v2
2+
3+ EAPI=7
4+
5+ inherit cmake
6+
7+ DESCRIPTION=" High level abstract threading library"
8+ HOMEPAGE=" https://www.threadingbuildingblocks.org"
9+ SRC_URI=" https://github.com/uxlfoundation/oneTBB/tarball/45587e94dfb6dfe00220c5f520020a5bc745e92f -> oneTBB-2022.1.0-45587e9.tar.gz"
10+
11+ LICENSE=" Apache-2.0"
12+ SLOT=" 0"
13+ KEYWORDS=" *"
14+ IUSE=" hwloc tests valgrind"
15+
16+ REQUIRED_USE=" tests? ( ^^ ( hwloc valgrind ) )"
17+
18+ DEPEND="
19+ hwloc? ( || (
20+ =sys-apps/hwloc-1.11*
21+ =sys-apps/hwloc-2.0*
22+ =sys-apps/hwloc-2.4*
23+ ) )
24+ valgrind? ( dev-util/valgrind )
25+ "
26+ RDEPEND=" ${DEPEND} "
27+
28+ src_unpack () {
29+ default
30+ rm -rf " ${S} "
31+ mv " ${WORKDIR} " /uxlfoundation-oneTBB-* " ${S} " || die
32+ }
33+
34+ src_configure () {
35+ local mycmakeargs=(
36+ -DTBB_TEST=$( usex tests ON OFF)
37+ -DTBB_VALGRIND_MEMCHECK=$( usex valgrind ON OFF)
38+ -DTBBBIND_BUILD=$( usex hwloc ON OFF)
39+ )
40+ if use hwloc ; then
41+ has_version =sys-apps/hwloc-1.11* && HWLOC_VERSION=' 1_11'
42+ has_version =sys-apps/hwloc-2.0* && HWLOC_VERSION=' 2'
43+ has_version =sys-apps/hwloc-2.4* && HWLOC_VERSION=' 2_4'
44+ [[ -n " ${HWLOC_VERSION} " ]] && mycmakeargs+=(
45+ " -DCMAKE_HWLOC_${HWLOC_VERSION} _LIBRARY_PATH=${EROOT} /usr/$( get_libdir) /libhwloc.so"
46+ " -DCMAKE_HWLOC_${HWLOC_VERSION} _INCLUDE_PATH=${EROOT} /usr/include/"
47+ )
48+ fi
49+
50+ cmake_src_configure " ${mycmakeargs[@]} "
51+ }
You can’t perform that action at this time.
0 commit comments