aboutsummaryrefslogtreecommitdiff
blob: ac9f4deee6b3e06dfa314a8b5f6d9f52652de7cf (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
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit cmake

DESCRIPTION="AXL provides a common C interface to transfer files in an HPC storage hierarchy."
HOMEPAGE="https://github.com/ECP-VeloC/AXL"
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
	sys-libs/zlib
	sys-cluster/KVTree
"
DEPEND="${RDEPEND}"
BDEPEND="
	>=dev-util/cmake-2.8
"

src_prepare() {
	#do not build static library
	sed -i '/axl-static/d' src/CMakeLists.txt || die
	#do not auto install README
	sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die
	default
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		#other options available: CRAY_DW INTEL_CPPR IBM_BBAPI
		-DAXL_ASYNC_API=NONE
	)
	cmake_src_configure
}

src_install() {
	cmake_src_install
	dodoc -r doc/.
}