commit:     f33e9d3ef4e035f1f823ec2e2ff2ec2d88751bc0
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Mon Mar 22 21:11:43 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Apr  9 12:20:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f33e9d3e
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 <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/20071
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sci-libs/cantera/cantera-2.5.1-r1.ebuild | 6 ++++--
 1 file 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 4cf4cc6c3c3..2bf3e5d6a74 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=(

Reply via email to