From 3ee1770ad00177804b7c4a712606ae7dcd0abfba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Sun, 16 Apr 2017 15:57:38 +0200 Subject: [PATCH] sci-libs/armadillo: Re-enable superlu support Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- sci-libs/armadillo/armadillo-7.800.2.ebuild | 25 ++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/sci-libs/armadillo/armadillo-7.800.2.ebuild b/sci-libs/armadillo/armadillo-7.800.2.ebuild index 94954c6a1d6f..ad912b34eea8 100644 --- a/sci-libs/armadillo/armadillo-7.800.2.ebuild +++ b/sci-libs/armadillo/armadillo-7.800.2.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://sourceforge/arma/${P}.tar.xz" LICENSE="Apache-2.0" SLOT="0/7" KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux" -IUSE="arpack blas debug doc examples hdf5 lapack mkl tbb test" +IUSE="arpack blas debug doc examples hdf5 lapack mkl superlu tbb test" REQUIRED_USE="test? ( lapack )" RDEPEND=" @@ -22,9 +22,8 @@ RDEPEND=" arpack? ( sci-libs/arpack ) blas? ( virtual/blas ) lapack? ( virtual/lapack ) + superlu? ( >=sci-libs/superlu-5 ) " -# superlu? ( sci-libs/superlu ) -# needs superlu-5 DEPEND="${RDEPEND} arpack? ( virtual/pkgconfig ) @@ -104,16 +103,16 @@ src_configure() { -DLAPACK_FOUND=OFF ) fi -# if use superlu; then -# mycmakeargs+=( -# -DSuperLU_FOUND=ON -# -DSuperLU_LIBRARIES="$($(tc-getPKG_CONFIG) --libs superlu)" -# ) -# else -# mycmakeargs+=( -# -DSuperLU_FOUND=OFF -# ) -# fi + if use superlu; then + mycmakeargs+=( + -DSuperLU_FOUND=ON + -DSuperLU_LIBRARIES="$($(tc-getPKG_CONFIG) --libs superlu)" + ) + else + mycmakeargs+=( + -DSuperLU_FOUND=OFF + ) + fi cmake-utils_src_configure } -- 2.26.2