1 |
commit: f86c6651bf45231ea31273bd5e7419b326c4e770 |
2 |
Author: Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca> |
3 |
AuthorDate: Fri Jul 27 22:07:55 2012 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 27 22:07:55 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f86c6651 |
7 |
|
8 |
sci-libs/atlas: added a generic flag for more generic architectures, and possibility for user to pass configure options via standard EXTRA_ECONF flags |
9 |
|
10 |
(Portage version: 2.2.01.20796-prefix/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
sci-libs/atlas/ChangeLog | 6 ++++ |
14 |
sci-libs/atlas/atlas-3.10.0.ebuild | 25 +++++++++++++------ |
15 |
...upport.patch => atlas-3.10.0-x32-support.patch} | 0 |
16 |
sci-libs/atlas/metadata.xml | 4 +++ |
17 |
4 files changed, 27 insertions(+), 8 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/atlas/ChangeLog b/sci-libs/atlas/ChangeLog |
20 |
index edd02db..22ed8b7 100644 |
21 |
--- a/sci-libs/atlas/ChangeLog |
22 |
+++ b/sci-libs/atlas/ChangeLog |
23 |
@@ -2,6 +2,12 @@ |
24 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
25 |
# $Header: $ |
26 |
|
27 |
+ 27 Jul 2012; Sébastien Fabbro <bicatali@g.o> |
28 |
+ +files/atlas-3.10.0-x32-support.patch, -files/atlas-3.10-x32-support.patch, |
29 |
+ atlas-3.10.0.ebuild, metadata.xml: |
30 |
+ sci-libs/atlas: added a generic flag for more generic architectures, and |
31 |
+ possibility for user to pass configure options via standard EXTRA_ECONF flags |
32 |
+ |
33 |
16 Jul 2012; Olivier Huber <oli.huber@×××××.com> |
34 |
+files/atlas-3.10-x32-support.patch, -files/3.9.76-x32.patch, |
35 |
atlas-3.10.0.ebuild: |
36 |
|
37 |
diff --git a/sci-libs/atlas/atlas-3.10.0.ebuild b/sci-libs/atlas/atlas-3.10.0.ebuild |
38 |
index ea605c3..e4f80bc 100644 |
39 |
--- a/sci-libs/atlas/atlas-3.10.0.ebuild |
40 |
+++ b/sci-libs/atlas/atlas-3.10.0.ebuild |
41 |
@@ -14,8 +14,8 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2 |
42 |
|
43 |
LICENSE="BSD" |
44 |
SLOT="0" |
45 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux" |
46 |
-IUSE="fortran doc lapack static-libs threads" |
47 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
48 |
+IUSE="fortran doc generic lapack static-libs threads" |
49 |
|
50 |
RDEPEND="fortran? ( virtual/fortran )" |
51 |
DEPEND="${RDEPEND} |
52 |
@@ -34,7 +34,7 @@ pkg_setup() { |
53 |
ewarn "Run cpufreq-set -r -g performance as root" |
54 |
die "${PN} needs all cpu set to performance" |
55 |
fi |
56 |
- cpu=$(( cpu + 1 )) |
57 |
+ cpu=$((cpu + 1)) |
58 |
done |
59 |
else |
60 |
ewarn "Please make sure to disable CPU throttling completely" |
61 |
@@ -47,7 +47,7 @@ pkg_setup() { |
62 |
} |
63 |
|
64 |
src_prepare() { |
65 |
- epatch "${FILESDIR}"/atlas-3.10-x32-support.patch |
66 |
+ epatch "${FILESDIR}"/${P}-x32-support.patch |
67 |
} |
68 |
|
69 |
src_configure() { |
70 |
@@ -69,7 +69,11 @@ src_configure() { |
71 |
# OpenMP shown to decreased performance over POSIX threads |
72 |
# (at least in 3.9.x, see atlas-dev mailing list) |
73 |
if use threads; then |
74 |
- myconf+=( "-t -1" "-Si omp 0" ) |
75 |
+ if use generic; then # 2 threads is most generic |
76 |
+ myconf+=( "-t 2" "-Si omp 0" ) |
77 |
+ else |
78 |
+ myconf+=( "-t -1" "-Si omp 0" ) |
79 |
+ fi |
80 |
else |
81 |
myconf+=( "-t 0" "-Si omp 0" ) |
82 |
fi |
83 |
@@ -107,6 +111,11 @@ src_configure() { |
84 |
else |
85 |
myconf+=( "-Si latune 0" "--nof77" ) |
86 |
fi |
87 |
+ # generic stuff found by make make xprint_enums in atlas build dir |
88 |
+ # basically assuming sse2+sse1 and 2 threads max |
89 |
+ use generic && use x86 && myconf+=( "-V 384 -A 13") |
90 |
+ use generic && use amd64 && myconf+=( "-V 384 -A 24") |
91 |
+ |
92 |
local confdir="${S}_${1}"; shift |
93 |
myconf+=( $@ ) |
94 |
mkdir "${confdir}" && cd "${confdir}" |
95 |
@@ -115,8 +124,8 @@ src_configure() { |
96 |
"${S}"/configure ${myconf[@]} || die "configure in ${confdir} failed" |
97 |
} |
98 |
|
99 |
- atlas_configure shared "-Fa alg -fPIC" |
100 |
- use static-libs && atlas_configure static |
101 |
+ atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF} |
102 |
+ use static-libs && atlas_configure static ${EXTRA_ECONF} |
103 |
} |
104 |
|
105 |
src_compile() { |
106 |
@@ -267,5 +276,5 @@ src_install() { |
107 |
dodoc INDEX.txt AtlasCredits.txt ChangeLog |
108 |
use doc && dodoc atlas*pdf cblas.pdf cblasqref.pdf |
109 |
use doc && use fortran && dodoc f77blas*pdf |
110 |
- use doc && use fortran && use lapack && dodoc lapack*pdf |
111 |
+ use doc && use fortran && use lapack && dodoc *lapack*pdf |
112 |
} |
113 |
|
114 |
diff --git a/sci-libs/atlas/files/atlas-3.10-x32-support.patch b/sci-libs/atlas/files/atlas-3.10.0-x32-support.patch |
115 |
similarity index 100% |
116 |
rename from sci-libs/atlas/files/atlas-3.10-x32-support.patch |
117 |
rename to sci-libs/atlas/files/atlas-3.10.0-x32-support.patch |
118 |
|
119 |
diff --git a/sci-libs/atlas/metadata.xml b/sci-libs/atlas/metadata.xml |
120 |
index 94634e4..4aeff0d 100644 |
121 |
--- a/sci-libs/atlas/metadata.xml |
122 |
+++ b/sci-libs/atlas/metadata.xml |
123 |
@@ -10,4 +10,8 @@ |
124 |
a subset of the linear algebra routine LAPACK library or the full |
125 |
LAPACK using the reference LAPACK from Netlib. |
126 |
</longdescription> |
127 |
+<use> |
128 |
+<flag name='generic'>Build atlas assuming a fairly generic |
129 |
+architecture (sse2 for x86, core2 for amd64)</flag> |
130 |
+</use> |
131 |
</pkgmetadata> |