summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Torokhov <torokhov-s-a@yandex.ru>2021-03-23 00:11:43 +0300
committerJoonas Niilola <juippis@gentoo.org>2021-04-09 15:20:56 +0300
commitf33e9d3ef4e035f1f823ec2e2ff2ec2d88751bc0 (patch)
tree2a1a17ceb8e470b10fff562e55f8c45d1e4d6c23 /sci-libs/cantera
parentsci-libs/cantera: 2.5.1 rev bump, pass AR env variable (diff)
downloadgentoo-f33e9d3ef4e035f1f823ec2e2ff2ec2d88751bc0.tar.gz
gentoo-f33e9d3ef4e035f1f823ec2e2ff2ec2d88751bc0.tar.bz2
gentoo-f33e9d3ef4e035f1f823ec2e2ff2ec2d88751bc0.zip
sci-libs/cantera: 2.5.1, add USE=lapack
Add USE=lapack to use Lapack insatead of Eigen for linear algebra support in some cases. Eigen is still required if Lapack support is enabled. The sci-libs/sundials[lapack] is required to build with Lapack support. Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/20071 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sci-libs/cantera')
-rw-r--r--sci-libs/cantera/cantera-2.5.1-r1.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/sci-libs/cantera/cantera-2.5.1-r1.ebuild b/sci-libs/cantera/cantera-2.5.1-r1.ebuild
index 4cf4cc6c3c3a..2bf3e5d6a748 100644
--- a/sci-libs/cantera/cantera-2.5.1-r1.ebuild
+++ b/sci-libs/cantera/cantera-2.5.1-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://github.com/Cantera/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+cti fortran pch +python test"
+IUSE="+cti fortran lapack pch +python test"
RESTRICT="!test? ( test )"
REQUIRED_USE="
@@ -27,6 +27,7 @@ REQUIRED_USE="
RDEPEND="
${PYTHON_DEPS}
+ lapack? ( virtual/lapack )
python? (
$(python_gen_cond_dep '
dev-python/numpy[${PYTHON_MULTI_USEDEP}]
@@ -34,7 +35,7 @@ RDEPEND="
')
)
dev-cpp/yaml-cpp
- <sci-libs/sundials-5.3.0:0=
+ <sci-libs/sundials-5.3.0:0=[lapack?]
"
DEPEND="
@@ -88,6 +89,7 @@ src_configure() {
env_vars="all"
extra_inc_dirs="/usr/include/eigen3"
)
+ use lapack && scons_vars+=( blas_lapack_libs="lapack,blas" )
use test || scons_vars+=( googletest="none" )
scons_targets=(