From c41c83f1e03c19c92e35926d7b5ebdcc4e7809d2 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 29 May 2022 01:21:20 +0200 Subject: [PATCH] sci-libs/ButterflyPACK: make options conditional to use Signed-off-by: Alessandro Barbieri --- 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 53099d3583..fc3c26b5f2 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 }