blob: c70f4c5c9ef565addbfa844cde27f80f90d80535 (
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
52
53
54
55
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
FORTRAN_STANDARD=77
inherit cmake fortran-2
DESCRIPTION="Sparse LU factorization library"
HOMEPAGE="https://portal.nersc.gov/project/sparse/superlu/"
SRC_URI="https://github.com/xiaoyeli/superlu/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0/$(ver_cut 1)"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
IUSE="doc examples test"
RESTRICT="!test? ( test )"
BDEPEND="
virtual/pkgconfig
test? ( app-shells/tcsh )
"
RDEPEND="virtual/blas"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-5.2.2-no-internal-blas.patch
)
src_prepare() {
cmake_src_prepare
# respect user's CFLAGS
sed -i -e 's/O3//' CMakeLists.txt || die
}
src_configure() {
local mycmakeargs+=(
-DCMAKE_INSTALL_INCLUDEDIR="include/superlu"
-DBUILD_SHARED_LIBS=ON
-Denable_internal_blaslib=OFF
-Denable_tests=$(usex test)
)
cmake_src_configure
}
src_install() {
cmake_src_install
use doc && dodoc -r DOC/html
if use examples; then
docinto examples
dodoc -r EXAMPLE FORTRAN
docompress -x /usr/share/doc/${PF}/examples
fi
}
|