commit: 23f10c612d85c8aef50ecdc14efbe05a4e2f05e8
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 8 15:25:09 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Dec 8 15:25:09 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=23f10c61
sci-libs/atlas: Optionally build deprecated lapack routines
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
sci-libs/atlas/atlas-3.11.38-r1.ebuild | 11 ++++++++---
sci-libs/atlas/metadata.xml | 1 +
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
index 4a7d193..3c760fe 100644
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -18,10 +18,11 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc fortran generic ifko lapack static-libs threads"
+IUSE="+deprecated doc fortran generic ifko lapack static-libs threads"
-RDEPEND=""
-DEPEND="${RDEPEND}"
+REQUIRED_USE="
+ deprecated? ( lapack )
+ lapack? ( fortran )"
S="${WORKDIR}/ATLAS"
@@ -111,6 +112,10 @@ src_configure() {
# for debugging
echo ${myconf[@]} > myconf.out
"${S}"/configure ${myconf[@]} || die "configure in ${confdir}
failed"
+
+ if use deprecated; then
+ echo "BUILD_DEPRECATED=1" >>
src/lapack/reference/make.inc.example || die
+ fi
}
atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml
index 77d74d9..ba20464 100644
--- a/sci-libs/atlas/metadata.xml
+++ b/sci-libs/atlas/metadata.xml
@@ -11,6 +11,7 @@
LAPACK using the reference LAPACK from Netlib.
</longdescription>
<use>
+ <flag name="deprecated">Build deprecated routines</flag>
<flag name="generic">Build atlas assuming a fairly generic architecture
(sse2 for x86, core2 for amd64)</flag>
<flag name="ifko">Use iFKO to improve ATLAS performance (ATTENTION!!!
Increases builtime enormously)</flag>
</use>