1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools fortran-2 toolchain-funcs
8 DESCRIPTION="Library of Iterative Solvers for Linear Systems"
9 HOMEPAGE="https://www.ssisc.org/lis/index.en.html"
10 SRC_URI="https://www.ssisc.org/lis/dl/${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
15 IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse2 doc fortran mpi openmp quad saamg static-libs"
17 RDEPEND="mpi? ( virtual/mpi )"
20 PATCHES=( "${FILESDIR}"/${PN}-1.6.2-autotools.patch )
23 if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
24 if ! tc-has-openmp; then
25 ewarn "OpenMP is not available in your current selected compiler"
28 ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp,"
29 ewarn "which you will need to build ${CATEGORY}/${PN} with USE=\"openmp\""
32 die "need openmp capable compiler"
37 use fortran && fortran-2_pkg_setup
48 $(use_enable static-libs static) \
49 $(use_enable fortran) \
50 $(use_enable openmp omp) \
52 $(use_enable "cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4)" fma) \
53 $(use_enable cpu_flags_x86_sse2 sse2) \
59 use doc && DOCS+=( doc/*.pdf )
62 if ! use static-libs; then
63 find "${D}" -name '*.la' -delete || die