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

EAPI=7

inherit cmake-utils

DESCRIPTION="Numerical linear algebra software package"
HOMEPAGE="https://ginkgo-project.github.io/"

inherit git-r3
EGIT_REPO_URI="https://github.com/ginkgo-project/ginkgo"
SRC_URI=""
KEYWORDS=""

LICENSE="BSD-with-attribution"
SLOT="0"
IUSE=""

# TODO: add slepc use flag once slepc is packaged for gentoo-science
REQUIRED_USE=""

RDEPEND=""

DEPEND=""

src_prepare() {
	sed -i \
		-e "s#\"lib\"#\"$(get_libdir)\"#g" \
		-e "s#\"lib/#\"$(get_libdir)/#g" \
		cmake/install_helpers.cmake || die "sed failed"

	cmake-utils_src_prepare
}

src_configure() {

	local mycmakeargs=(
		-DGINKGO_DEVEL_TOOLS=OFF
		-DGINKGO_BUILD_TESTS=OFF
		-DGINKGO_BUILD_BENCHMARKS=OFF
		-DGINKGO_BUILD_REFERENCE=ON
		-DGINKGO_BUILD_OMP=ON
	)
	cmake-utils_src_configure
}