sci-libs/armadillo: Re-enable superlu support
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 16 Apr 2017 13:57:38 +0000 (15:57 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 16 Apr 2017 14:11:54 +0000 (16:11 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

sci-libs/armadillo/armadillo-7.800.2.ebuild

index 94954c6a1d6f6a1b7fbfc5b95820f2c91328e6e9..ad912b34eea8b693665d3e110a704b37d1866a6c 100644 (file)
@@ -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
 }