aboutsummaryrefslogtreecommitdiff
blob: 49032d21f695268e1381458133d08ed5cf990771 (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
45
46
47
48
49
50
51
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

DOCS_BUILDER="doxygen"
DOCS_DIR="${S}"

inherit cmake docs

DESCRIPTION="Massively Scalable Clustering"
HOMEPAGE="https://github.com/LLNL/muster"
SRC_URI="https://github.com/LLNL/muster/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc pmpi tests"

RDEPEND="
	dev-libs/boost:=
	virtual/mpi
"
DEPEND="${RDEPEND}"

src_prepare() {
	sed -e "s|DESTINATION lib|DESTINATION $(get_libdir)|g" -i src/CMakeLists.txt || die
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DINSTALL_TESTS=$(usex tests)
		-DMUSTER_USE_PMPI=$(usex pmpi)
	)
	cmake_src_configure
}

src_compile() {
	cmake_src_compile
	docs_compile
}

src_install() {
	cmake_src_install
	einstalldocs
	if use tests; then
		mkdir -p "${ED}/usr/libexec/${PN}/" || die
		mv "${ED}"/usr/bin/*-test "${ED}/usr/libexec/${PN}/" || die
	fi
}