blob: cfdb3fee77f5f9b4cf09b0dda37521da47f32479 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Library for performance portable algorithms for geometric search"
HOMEPAGE="https://github.com/arborx/ArborX"
SRC_URI="https://github.com/${PN}/ArborX/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="LGPL-2.1+"
SLOT="0"
IUSE="mpi"
RDEPEND="dev-libs/boost:=
mpi? ( virtual/mpi[cxx] )
sci-libs/trilinos"
DEPEND="${RDEPEND}"
S="${WORKDIR}"/ArborX-${PV}
src_prepare() {
cmake_src_prepare
# replace hardcoded "lib/" directory:
sed -i -e "s#lib/#$(get_libdir)/#g" CMakeLists.txt || die "sed failed"
}
src_configure() {
local mycmakeargs=(
-DARBORX_ENABLE_MPI="$(usex mpi)"
)
cmake_src_configure
}
src_install() {
cmake_src_install
}
|