commit:     c41c83f1e03c19c92e35926d7b5ebdcc4e7809d2
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat May 28 23:21:20 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat May 28 23:21:20 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c41c83f1

sci-libs/ButterflyPACK: make options conditional to use

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sci-libs/ButterflyPACK/ButterflyPACK-2.1.1.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sci-libs/ButterflyPACK/ButterflyPACK-2.1.1.ebuild 
b/sci-libs/ButterflyPACK/ButterflyPACK-2.1.1.ebuild
index 53099d358..fc3c26b5f 100644
--- a/sci-libs/ButterflyPACK/ButterflyPACK-2.1.1.ebuild
+++ b/sci-libs/ButterflyPACK/ButterflyPACK-2.1.1.ebuild
@@ -32,10 +32,9 @@ src_configure() {
        local pkgc="$(tc-getPKG_CONFIG)"
        local mycmakeargs=(
                -DBUILD_SHARED_LIBS=ON
-
-               "-DTPL_ARPACK_LIBRARIES=$(${pkgc} --libs arpack)"
-               "-DTPL_MAGMA_LIBRARIES=$(${pkgc} --libs magma)"
        )
+       use arpack && mycmakeargs+=( "-DTPL_ARPACK_LIBRARIES=$(${pkgc} --libs 
arpack)" )
+       use magma && mycmakeargs+=( "-DTPL_MAGMA_LIBRARIES=$(${pkgc} --libs 
magma)" )
        cmake_src_configure
 }
 

Reply via email to