1 |
commit: 23f10c612d85c8aef50ecdc14efbe05a4e2f05e8 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 8 15:25:09 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 8 15:25:09 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=23f10c61 |
7 |
|
8 |
sci-libs/atlas: Optionally build deprecated lapack routines |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
sci-libs/atlas/atlas-3.11.38-r1.ebuild | 11 ++++++++--- |
14 |
sci-libs/atlas/metadata.xml | 1 + |
15 |
2 files changed, 9 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild b/sci-libs/atlas/atlas-3.11.38-r1.ebuild |
18 |
index 4a7d193..3c760fe 100644 |
19 |
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild |
20 |
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild |
21 |
@@ -18,10 +18,11 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2 |
22 |
LICENSE="BSD" |
23 |
SLOT="0" |
24 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
25 |
-IUSE="doc fortran generic ifko lapack static-libs threads" |
26 |
+IUSE="+deprecated doc fortran generic ifko lapack static-libs threads" |
27 |
|
28 |
-RDEPEND="" |
29 |
-DEPEND="${RDEPEND}" |
30 |
+REQUIRED_USE=" |
31 |
+ deprecated? ( lapack ) |
32 |
+ lapack? ( fortran )" |
33 |
|
34 |
S="${WORKDIR}/ATLAS" |
35 |
|
36 |
@@ -111,6 +112,10 @@ src_configure() { |
37 |
# for debugging |
38 |
echo ${myconf[@]} > myconf.out |
39 |
"${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed" |
40 |
+ |
41 |
+ if use deprecated; then |
42 |
+ echo "BUILD_DEPRECATED=1" >> src/lapack/reference/make.inc.example || die |
43 |
+ fi |
44 |
} |
45 |
|
46 |
atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF} |
47 |
|
48 |
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml |
49 |
index 77d74d9..ba20464 100644 |
50 |
--- a/sci-libs/atlas/metadata.xml |
51 |
+++ b/sci-libs/atlas/metadata.xml |
52 |
@@ -11,6 +11,7 @@ |
53 |
LAPACK using the reference LAPACK from Netlib. |
54 |
</longdescription> |
55 |
<use> |
56 |
+ <flag name="deprecated">Build deprecated routines</flag> |
57 |
<flag name="generic">Build atlas assuming a fairly generic architecture (sse2 for x86, core2 for amd64)</flag> |
58 |
<flag name="ifko">Use iFKO to improve ATLAS performance (ATTENTION!!! Increases builtime enormously)</flag> |
59 |
</use> |