1 |
commit: e105f0f6a215d6fd15b58cb8a669e3f119c12169 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 8 00:54:40 2019 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 8 01:20:00 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e105f0f6 |
7 |
|
8 |
virtual/{{c,}blas,lapack{,e}}: replaced by counterparts in ::gentoo. |
9 |
|
10 |
sci-libs/{{c,}blas,lapack{,e}}-reference: Remove. |
11 |
|
12 |
Remove BLAS/LAPACK migration scripts. |
13 |
Remove outdated documentation on BLAS/LAPACK. |
14 |
Update README.md to point to the new framework in ::gentoo. |
15 |
|
16 |
Reference: https://wiki.gentoo.org/wiki/Blas-lapack-switch |
17 |
|
18 |
Closes: https://github.com/gentoo/sci/issues/805 |
19 |
Closes: https://github.com/gentoo/sci/issues/926 |
20 |
Closes: https://github.com/gentoo/sci/issues/734 |
21 |
Closes: https://github.com/gentoo/sci/issues/897 |
22 |
Closes: https://github.com/gentoo/sci/issues/925 |
23 |
|
24 |
Package-Manager: Portage-2.3.69, Repoman-2.3.12 |
25 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
26 |
|
27 |
README.md | 13 +- |
28 |
docs/proj/blas-lapack.xml | 492 ------------------- |
29 |
docs/proj/index.xml | 1 - |
30 |
docs/proj/linalg.xml | 530 --------------------- |
31 |
profiles/package.mask | 4 - |
32 |
.../blas-reference-20161223-r100.ebuild | 110 ----- |
33 |
.../blas-reference-20171112-r100.ebuild | 109 ----- |
34 |
.../blas-reference/blas-reference-99999999.ebuild | 108 ----- |
35 |
.../files/lapack-fix-build-system.patch | 92 ---- |
36 |
.../lapack-reference-3.7.0-fix-build-system.patch | 56 --- |
37 |
sci-libs/blas-reference/metadata.xml | 20 - |
38 |
.../cblas-reference-20110218-r100.ebuild | 144 ------ |
39 |
.../cblas-reference-20151113-r100.ebuild | 126 ----- |
40 |
.../cblas-reference-20161223-r101.ebuild | 124 ----- |
41 |
.../files/lapack-fix-build-system.patch | 124 ----- |
42 |
.../lapack-reference-3.7.0-fix-build-system.patch | 61 --- |
43 |
sci-libs/cblas-reference/metadata.xml | 21 - |
44 |
.../lapack-reference/files/3.3.1-blas-libs.patch | 35 -- |
45 |
.../lapack-reference/files/3.3.1-xblas-libs.patch | 44 -- |
46 |
.../files/lapack-3.4.1-cmake.patch | 208 -------- |
47 |
.../files/lapack-3.6.1-fix-build-system.patch | 88 ---- |
48 |
.../files/lapack-fix-build-system.patch | 92 ---- |
49 |
.../lapack-reference-3.7.0-fix-build-system.patch | 56 --- |
50 |
.../lapack-reference-3.7.0-r100.ebuild | 121 ----- |
51 |
.../lapack-reference-3.8.0-r100.ebuild | 120 ----- |
52 |
.../lapack-reference/lapack-reference-9999.ebuild | 124 ----- |
53 |
sci-libs/lapack-reference/metadata.xml | 25 - |
54 |
.../files/lapack-fix-build-system.patch | 92 ---- |
55 |
.../lapacke-reference-3.5.0.ebuild | 95 ---- |
56 |
.../lapacke-reference-3.6.0-r2.ebuild | 102 ---- |
57 |
.../lapacke-reference-9999.ebuild | 95 ---- |
58 |
sci-libs/lapacke-reference/metadata.xml | 19 - |
59 |
scripts/lapack-migration.sh | 25 - |
60 |
scripts/sci-lapack | 18 - |
61 |
virtual/blas/blas-2.1-r5.ebuild | 53 --- |
62 |
virtual/blas/blas-3.6-r100.ebuild | 53 --- |
63 |
virtual/blas/blas-3.7-r100.ebuild | 53 --- |
64 |
virtual/blas/metadata.xml | 16 - |
65 |
virtual/cblas/cblas-2.0-r4.ebuild | 34 -- |
66 |
virtual/cblas/cblas-3.6-r100.ebuild | 34 -- |
67 |
virtual/cblas/cblas-3.7-r100.ebuild | 34 -- |
68 |
virtual/cblas/metadata.xml | 16 - |
69 |
virtual/lapack/lapack-3.6-r100.ebuild | 40 -- |
70 |
virtual/lapack/lapack-3.7-r100.ebuild | 40 -- |
71 |
virtual/lapack/metadata.xml | 17 - |
72 |
virtual/lapacke/lapacke-3.6.ebuild | 24 - |
73 |
virtual/lapacke/metadata.xml | 16 - |
74 |
47 files changed, 4 insertions(+), 3920 deletions(-) |
75 |
|
76 |
diff --git a/README.md b/README.md |
77 |
index 6283a58a3..d3748dc1b 100644 |
78 |
--- a/README.md |
79 |
+++ b/README.md |
80 |
@@ -14,16 +14,11 @@ wget https://gitweb.gentoo.org/proj/sci.git/plain/metadata/science.conf -O /etc/ |
81 |
|
82 |
To start using the overlay you now only need to get the ebuilds, via `emerge --sync`. |
83 |
|
84 |
-### BLAS and LAPACK Migration |
85 |
+### BLAS and LAPACK |
86 |
|
87 |
-There is a long-standing BLAS and LAPACK stack incompatibility between the Science Overlay and the Base Gentoo Overlay. |
88 |
-A fix [is being considered](https://github.com/gentoo/sci/issues/805), bit is still not scheduled for implementation. |
89 |
-In the mean time, the most automated and up-to-date solution (building on [the original one](https://wiki.gentoo.org/wiki/User_talk:Houseofsuns)) is to run (as root, and after having installed the overlay): |
90 |
- |
91 |
-``` |
92 |
-cd ${EPREFIX}/var/lib/overlays/science/scripts |
93 |
-./lapack-migration.sh |
94 |
-``` |
95 |
+[The BLAS and LAPACK switching framework](https://wiki.gentoo.org/wiki/Blas-lapack-switch) |
96 |
+in ::gentoo has been implemented. The Science overlay will no longer |
97 |
+carry blas and lapack ebuilds. |
98 |
|
99 |
### Uninstall |
100 |
|
101 |
|
102 |
diff --git a/docs/proj/blas-lapack.xml b/docs/proj/blas-lapack.xml |
103 |
deleted file mode 100644 |
104 |
index f4ef31cee..000000000 |
105 |
--- a/docs/proj/blas-lapack.xml |
106 |
+++ /dev/null |
107 |
@@ -1,492 +0,0 @@ |
108 |
-<?xml version="1.0" encoding="UTF-8"?> |
109 |
-<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
110 |
- |
111 |
-<guide link="/proj/en/science/blas-lapack.xml"> |
112 |
-<title>Using multiple versions of BLAS and LAPACK with Gentoo/Linux</title> |
113 |
- |
114 |
-<author title="Author"> |
115 |
- <mail link="bicatali@g.o">Sébastien Fabbro</mail> |
116 |
-</author> |
117 |
-<author title="Author"> |
118 |
- <mail link="markusle@g.o">Markus Dittrich</mail> |
119 |
-</author> |
120 |
-<author title="Editor"> |
121 |
- <mail link="nightmorph@g.o">Joshua Saddler</mail> |
122 |
-</author> |
123 |
- |
124 |
-<abstract> |
125 |
-This guide explains the use of the different implementations of the BLAS |
126 |
-and LAPACK libraries that are available via Portage. |
127 |
-</abstract> |
128 |
- |
129 |
-<!-- The content of this document is licensed under the CC-BY-SA license --> |
130 |
-<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
131 |
-<license/> |
132 |
- |
133 |
-<version>1.0</version> |
134 |
-<date>2007-10-22</date> |
135 |
- |
136 |
-<chapter> |
137 |
-<title>Introduction</title> |
138 |
-<section> |
139 |
-<body> |
140 |
- |
141 |
-<p> |
142 |
-The Basic Linear Algebra Subroutines (BLAS) and Linear Algebra PACKage (LAPACK) |
143 |
-are well designed linear algebra software libraries developed by the |
144 |
-High Performance Computing (HPC) community. BLAS |
145 |
-implements dense matrix and vectors products, while LAPACK provides routines for |
146 |
-solving systems of linear equations. Both are widely used in |
147 |
-many scientific applications and it is, therefore, important to |
148 |
-have efficient implementations available. |
149 |
-</p> |
150 |
- |
151 |
-<p> |
152 |
-Originally written in FORTRAN 77, a number of additional language |
153 |
-wrappers have been developed for languages like C, C++, FORTRAN 95, and others. |
154 |
-The following legacy libraries are available via the reference ebuilds: |
155 |
-</p> |
156 |
- |
157 |
-<ul> |
158 |
- <li> |
159 |
- <uri link="http://netlib.org/blas">BLAS</uri>: FORTRAN 77 implementation of |
160 |
- BLAS |
161 |
- </li> |
162 |
- <li> |
163 |
- <uri link="http://netlib.org/blas">CBLAS</uri>: C implementation of BLAS |
164 |
- </li> |
165 |
- <li> |
166 |
- <uri link="http://netlib.org/lapack">LAPACK</uri>: FORTRAN 77 implementation |
167 |
- of LAPACK |
168 |
- </li> |
169 |
-</ul> |
170 |
- |
171 |
-<p> |
172 |
-In addition, Gentoo provides a number of optimized BLAS and LAPACK implementations |
173 |
-that will be described below. Different implementations are bundled together with |
174 |
-Gentoo's <c>eselect</c> system and the widely used <c>pkg-config</c> tool. |
175 |
-</p> |
176 |
- |
177 |
-<p> It is important to note that if you require, e.g., a well performing |
178 |
-BLAS implementation, simply emerging X over Y often is not enough. Rather, you will have |
179 |
-to carefully benchmark your applications since performance may depend |
180 |
-on many factors, |
181 |
-such as hardware or network. |
182 |
-If you are simply looking for a well performing and well tested |
183 |
-implementation, the reference ebuilds will likely be your best choice. |
184 |
-</p> |
185 |
- |
186 |
- |
187 |
-</body> |
188 |
-</section> |
189 |
-</chapter> |
190 |
- |
191 |
-<chapter> |
192 |
-<title>For Users</title> |
193 |
-<section> |
194 |
-<title>Installing</title> |
195 |
-<body> |
196 |
- |
197 |
-<p> |
198 |
-If best possible performance is not of paramount importance for you |
199 |
-and you simply |
200 |
-need BLAS and/or LAPACK, just emerge the virtual packages: |
201 |
-</p> |
202 |
- |
203 |
-<pre caption="Installing"> |
204 |
-# <i>emerge blas cblas lapack</i> |
205 |
-</pre> |
206 |
- |
207 |
-<p> |
208 |
-These will install the reference legacy packages from |
209 |
-<uri>http://netlib.org</uri>. They are well tested, easy to debug |
210 |
-implementations. They should satisfy most users; if they're all you need, you're |
211 |
-done reading. |
212 |
-</p> |
213 |
- |
214 |
-<p> |
215 |
-However, if: |
216 |
-</p> |
217 |
- |
218 |
-<ul> |
219 |
- <li>BLAS/LAPACK are critical for the speed of your applications</li> |
220 |
- <li>you absolutely need to build the fastest computer</li> |
221 |
- <li>you want to help Gentoo sci project to improve their packages</li> |
222 |
-</ul> |
223 |
- |
224 |
-<p> |
225 |
-... then read on, and be sure to file bugs both to Gentoo and upstream. |
226 |
-</p> |
227 |
- |
228 |
-<p> |
229 |
-There is a number of optimized implementations of these libraries in the Portage |
230 |
-tree: |
231 |
-</p> |
232 |
- |
233 |
-<ul> |
234 |
- <li> |
235 |
- <uri link="http://math-atlas.sourceforge.net">ATLAS</uri>: Automatically |
236 |
- Tuned Linear Algebra Software is an open-source package that empirically |
237 |
- tunes the library to the machine it is being compiled on. It provides BLAS |
238 |
- (FORTRAN 77 and C), and LAPACK implementations on various architectures. |
239 |
- </li> |
240 |
- <li> |
241 |
- <uri |
242 |
- link="http://www.tacc.utexas.edu/resources/software/software.php">GotoBLAS</uri>: |
243 |
- Goto BLAS provide open-source, free for academic use, hand-coded |
244 |
- machine language, processor optimized versions of the FORTRAN 77 BLAS |
245 |
- routines. Claims to be the fastest BLAS. |
246 |
- </li> |
247 |
- <li> |
248 |
- <uri link="http://developer.intel.com/software/products/mkl/">MKL</uri>: |
249 |
- Intel® Math Kernel Library is a closed-source but free package for |
250 |
- non-commercial use containing BLAS (FORTRAN 77 and C), LAPACK optimized for |
251 |
- Intel® based architectures: x86, amd64 and ia64. |
252 |
- </li> |
253 |
-</ul> |
254 |
- |
255 |
-<p> |
256 |
-Usually performance gain is noticeable mainly with BLAS, since LAPACK routines |
257 |
-depend on BLAS kernels. |
258 |
-</p> |
259 |
- |
260 |
-</body> |
261 |
-</section> |
262 |
-<section> |
263 |
-<title>Compiling and linking with installed libraries</title> |
264 |
-<body> |
265 |
- |
266 |
-<p> |
267 |
-We took great care to make sure that each package provides consistent pkg-config files. |
268 |
-Hence, compiling and linking with BLAS/LAPACK should be simple and straightforward: |
269 |
-</p> |
270 |
- |
271 |
-<pre caption="Compiling and linking BLAS/LAPACK"> |
272 |
-# <i>pkg-config --libs blas</i> <comment>(To link with FORTRAN 77 BLAS library)</comment> |
273 |
-# <i>pkg-config --cflags cblas</i> <comment>(To compile against C BLAS library)</comment> |
274 |
-# <i>pkg-config --libs cblas</i> <comment>(To link with C BLAS library)</comment> |
275 |
-# <i>pkg-config --libs lapack</i> <comment>(To link with FORTRAN 77 LAPACK library)</comment> |
276 |
-</pre> |
277 |
- |
278 |
-<p> |
279 |
-<c>pkg-config</c> files are available for whichever implementation you select with <c>eselect</c>. |
280 |
-More information on using <c>pkg-config</c> can be obtained with <c>man pkg-config</c>. |
281 |
-</p> |
282 |
- |
283 |
-</body> |
284 |
-</section> |
285 |
-<section> |
286 |
-<title>Choosing libraries</title> |
287 |
-<body> |
288 |
- |
289 |
-<p> |
290 |
-You can easily switch BLAS, CBLAS and LAPACK implementations with |
291 |
-<c>eselect</c>. At this point, you probably have <c>eselect-blas</c>, |
292 |
-<c>eselect-cblas</c> and <c>eselect-lapack</c> installed. If you do not, |
293 |
-install them now! Using eselect, you can view which implementations of CBLAS |
294 |
-are available. |
295 |
-</p> |
296 |
- |
297 |
-<pre caption="Viewing available implementations"> |
298 |
-# <i>eselect cblas list</i> |
299 |
-Installed CBLAS for library directory lib64 |
300 |
-[1] atlas |
301 |
-[2] atlas-threads |
302 |
-[3] gsl |
303 |
-[4] mkl-threads * |
304 |
-[5] reference |
305 |
-</pre> |
306 |
- |
307 |
-<p> |
308 |
-The implementation marked with an asterisk (*) is the currently |
309 |
-selected implementation. To switch implementations, run: |
310 |
-</p> |
311 |
- |
312 |
-<pre caption="Switching to the ATLAS implementation of LAPACK"> |
313 |
-# <i>eselect lapack set atlas</i> |
314 |
-</pre> |
315 |
- |
316 |
-<p> |
317 |
-To learn more about the <c>eselect</c> tool, visit the |
318 |
-<uri link="http://www.gentoo.org/proj/en/eselect/user-guide.xml">eselect guide</uri> |
319 |
-</p> |
320 |
- |
321 |
-<p> |
322 |
-When selecting blas, cblas or lapack profiles try to avoid mixing |
323 |
-different implementations since we don't have any mechanism to enforce |
324 |
-reasonable profiles. However, here is a list of well performing |
325 |
-profile combinations that have been used successfully in the past: |
326 |
-</p> |
327 |
-<ul> |
328 |
- <li> Most CPUs: |
329 |
- <ul> |
330 |
- <li>blas,cblas: atlas (or atlas-threads with multi-processor)</li> |
331 |
- <li>lapack:atlas</li> |
332 |
- </ul> |
333 |
- </li> |
334 |
- <li> Most CPUs: |
335 |
- <ul> |
336 |
- <li>blas: goto </li> |
337 |
- <li>cblas,lapack: reference</li> |
338 |
- </ul> |
339 |
- </li> |
340 |
- <li> AMD based CPUs: |
341 |
- <ul> |
342 |
- <li>cblas: reference</li> |
343 |
- </ul> |
344 |
- </li> |
345 |
- <li> Intel based CPUs: |
346 |
- <ul> |
347 |
- <li>blas,cblas,lapack: mkl-threads</li> |
348 |
- </ul> |
349 |
- </li> |
350 |
-</ul> |
351 |
- |
352 |
-</body> |
353 |
-</section> |
354 |
- |
355 |
-<section> |
356 |
-<title>Choosing a compiler</title> |
357 |
-<body> |
358 |
- |
359 |
-<p> |
360 |
-Most of the libraries can compile with both the GNU compiler collection and the |
361 |
-Intel® compilers on the x86, amd64 and ia64 architectures. By default, you are |
362 |
-probably using <c>gcc</c>. You can also compile the <c>*-reference</c> packages |
363 |
-with <c>ifort</c> and <c>icc</c>. To do this, you need to define the F77 |
364 |
-environment variable and don't forget the FFLAGS. |
365 |
-</p> |
366 |
- |
367 |
-<pre caption="Using non-GCC compilers"> |
368 |
-# <i>F77=ifort FFLAGS="-O2 -mp" emerge blas-reference</i> |
369 |
-</pre> |
370 |
- |
371 |
-<p> |
372 |
-Depending on your hardware, a small performance gain can be noticed thanks to |
373 |
-vectorization. The <c>-mp</c> flag maintains floating-point precision, since by |
374 |
-default ifort is pretty aggressive on floating point arithmetic, and we are |
375 |
-actually compiling a math package. Try <c>man ifort</c> to see additional flags |
376 |
-to fit your hardware. |
377 |
-</p> |
378 |
- |
379 |
-<p> |
380 |
-Some of the implementations let you specify the Intel® C compiler as |
381 |
-well. Please beware that not all libraries compile with all |
382 |
-combinations. You should receive an error during the emerge in case you have |
383 |
-chosen an incompatible combination. |
384 |
-</p> |
385 |
- |
386 |
-<p> |
387 |
-As usual for Gentoo, there are many combinations of USE flags and |
388 |
-compilers with which you could compile a package. Unfortunately |
389 |
-switching compilers between BLAS and LAPACK might not be always |
390 |
-compatible. For example: |
391 |
-</p> |
392 |
- |
393 |
-<pre caption="Incompatible combinations"> |
394 |
-# <i>F77=gfortran FFLAGS="-O2" emerge lapack-reference</i> |
395 |
-</pre> |
396 |
- |
397 |
-<p> |
398 |
-This will most likely break things or not even compile. |
399 |
-</p> |
400 |
- |
401 |
-<p> |
402 |
-Try to be consistent in your choice. Stay with the GCC most of the time will |
403 |
-avoid you some trouble, unless you want to use the MKL, in which case the Intel® |
404 |
-C and FORTRAN compilers make a good combination. |
405 |
-</p> |
406 |
- |
407 |
-</body> |
408 |
-</section> |
409 |
-<section> |
410 |
-<title>Documentation</title> |
411 |
-<body> |
412 |
- |
413 |
-<p> |
414 |
-If you need BLAS or LAPACK to develop your own programs, the documentation |
415 |
-becomes pretty handy. Setting the USE="doc" flag for the corresponding BLAS or |
416 |
-LAPACK package will install man pages and quick reference sheets from the |
417 |
-<c>app-doc/blas-docs</c> and <c>app-doc/lapack-docs</c> packages. They are |
418 |
-standard and valid for all implementations. For optimized packages, the |
419 |
-USE="doc" flags will usually install extra doc in PDF or HTML format. |
420 |
-</p> |
421 |
- |
422 |
-</body> |
423 |
-</section> |
424 |
-</chapter> |
425 |
- |
426 |
-<chapter> |
427 |
-<title>For Developers</title> |
428 |
-<section> |
429 |
-<title>Providing new implementations</title> |
430 |
-<body> |
431 |
- |
432 |
-<p> |
433 |
-The Portage tree contains many ebuilds that depend on the BLAS/CBLAS/LAPACK |
434 |
-libraries. As there is more than one possible implementation, the Gentoo |
435 |
-Scientific Project reorganized all the packages to provide <c>virtual/blas</c>, |
436 |
-<c>virtual/cblas</c>, and <c>virtual/lapack</c>. All ebuilds using BLAS should |
437 |
-depend on this virtual package, unless it is explicitly known to break with |
438 |
-different BLAS implementations. |
439 |
-</p> |
440 |
- |
441 |
-<p> |
442 |
-To work with Gentoo's configuration tools |
443 |
-<c>app-admin/eselect-{blas,cblas,lapack}</c>, and the virtual, every ebuild that |
444 |
-installs a BLAS implementation must fulfill following requirements: |
445 |
-</p> |
446 |
- |
447 |
-<ol> |
448 |
- <li> |
449 |
- The ebuild must install an eselect file for each profile it provides. The |
450 |
- libraries should link to the ones in <path>/usr/$(get_libdir)</path> |
451 |
- directories and the include files in <path>/usr/include</path>: |
452 |
- <ul> |
453 |
- <li> |
454 |
- <path>libblas.so[.0]</path> - Shared object for FORTRAN BLAS |
455 |
- applications |
456 |
- </li> |
457 |
- <li> |
458 |
- <path>libblas.a</path> - Static library for FORTRAN BLAS applications |
459 |
- </li> |
460 |
- <li> |
461 |
- <path>libcblas.so[.0]</path> - Shared object for C/C++ CBLAS applications |
462 |
- </li> |
463 |
- <li> |
464 |
- <path>libcblas.a</path> - Static library for C/C++ CBLAS applications |
465 |
- </li> |
466 |
- <li><path>cblas.h</path> - Include header for C/C++ applications</li> |
467 |
- <li> |
468 |
- <path>liblapack.so[.0]</path> - Shared object for FORTRAN LAPACK |
469 |
- applications |
470 |
- </li> |
471 |
- <li> |
472 |
- <path>liblapack.a</path> - Static library for FORTRAN LAPACK applications |
473 |
- </li> |
474 |
- </ul> |
475 |
- </li> |
476 |
- <li> |
477 |
- The ebuild must install a <path>blas.pc</path>, <path>cblas.pc</path> and/or |
478 |
- <path>lapack.pc</path> pkg-config file and therefore RDEPEND on |
479 |
- <c>dev-util/pkgconfig</c>. They should also be included in the eselect |
480 |
- files, and link to the <path>/usr/$(get_libdir)/pkgconfig</path> directory: |
481 |
- <ul> |
482 |
- <li><path>blas.pc</path> - BLAS pkg-config file</li> |
483 |
- <li><path>cblas.pc</path> - CBLAS pkg-config file</li> |
484 |
- <li><path>lapack.pc</path> - LAPACK pkg-config file</li> |
485 |
- </ul> |
486 |
- </li> |
487 |
- <li>Be included in the virtual package as a possible provider: |
488 |
- <ul> |
489 |
- <li><c>virtual/blas</c> - BLAS virtual package</li> |
490 |
- <li><c>virtual/cblas</c> - CBLAS virtual package</li> |
491 |
- <li><c>virtual/lapack</c> - LAPACK virtual package</li> |
492 |
- </ul> |
493 |
- </li> |
494 |
-</ol> |
495 |
- |
496 |
-<p> |
497 |
-The easiest way of understanding all this is probably getting inspiration from |
498 |
-one of the available packages. Currently the Portage tree provide the following |
499 |
-virtuals: |
500 |
-</p> |
501 |
- |
502 |
-<table> |
503 |
-<tr> |
504 |
- <th>Package name</th> |
505 |
- <th>virtual/blas</th> |
506 |
- <th>virtual/cblas</th> |
507 |
- <th>virtual/lapack</th> |
508 |
-</tr> |
509 |
-<tr> |
510 |
- <ti><c>sci-libs/blas-atlas</c></ti> |
511 |
- <ti>*</ti> |
512 |
- <ti>*</ti> |
513 |
- <ti></ti> |
514 |
-</tr> |
515 |
-<tr> |
516 |
- <ti><c>sci-libs/blas-goto</c></ti> |
517 |
- <ti>*</ti> |
518 |
- <ti></ti> |
519 |
- <ti></ti> |
520 |
-</tr> |
521 |
-<tr> |
522 |
- <ti><c>sci-libs/blas-reference</c></ti> |
523 |
- <ti>*</ti> |
524 |
- <ti></ti> |
525 |
- <ti></ti> |
526 |
-</tr> |
527 |
-<tr> |
528 |
- <ti><c>sci-libs/cblas-reference</c></ti> |
529 |
- <ti></ti> |
530 |
- <ti>*</ti> |
531 |
- <ti></ti> |
532 |
-</tr> |
533 |
-<tr> |
534 |
- <ti><c>sci-libs/gsl</c></ti> |
535 |
- <ti></ti> |
536 |
- <ti>*</ti> |
537 |
- <ti></ti> |
538 |
-</tr> |
539 |
-<tr> |
540 |
- <ti><c>sci-libs/lapack-atlas</c></ti> |
541 |
- <ti></ti> |
542 |
- <ti></ti> |
543 |
- <ti>*</ti> |
544 |
-</tr> |
545 |
-<tr> |
546 |
- <ti><c>sci-libs/lapack-reference</c></ti> |
547 |
- <ti></ti> |
548 |
- <ti></ti> |
549 |
- <ti>*</ti> |
550 |
-</tr> |
551 |
-<tr> |
552 |
- <ti><c>sci-libs/mkl</c></ti> |
553 |
- <ti>*</ti> |
554 |
- <ti>*</ti> |
555 |
- <ti>*</ti> |
556 |
-</tr> |
557 |
-</table> |
558 |
- |
559 |
-</body> |
560 |
-</section> |
561 |
-<section> |
562 |
-<title>Packages with BLAS/LAPACK dependencies</title> |
563 |
-<body> |
564 |
- |
565 |
-<p> |
566 |
-Simply use <c>virtual/{blas,cblas,lapack}</c> as a [R]DEPEND. To build some |
567 |
-packages, you might need to use the pkg-config tool. If you are lucky, the |
568 |
-package uses autotools together with common BLAS and LAPACK M4 macros.In this |
569 |
-case, the configuration step becomes simple. For example: |
570 |
-</p> |
571 |
- |
572 |
-<pre caption="Sample package configuration"> |
573 |
-<keyword>econf</keyword> --with-blas="<var>$(pkg-config --libs blas)</var>" |
574 |
-</pre> |
575 |
- |
576 |
-<impo> |
577 |
-Don't forget to add <c>dev-util/pkgconfig</c> in DEPEND. |
578 |
-</impo> |
579 |
- |
580 |
-</body> |
581 |
-</section> |
582 |
-</chapter> |
583 |
- |
584 |
-<chapter> |
585 |
-<title>In the near future</title> |
586 |
-<section> |
587 |
-<body> |
588 |
- |
589 |
-<p> |
590 |
-We plan to include more standard BLAS, LAPACK libraries: BLAS 95, LAPACK 95, |
591 |
-Sparse BLAS, ScaLAPACK. If you feel inclined to write an ebuild for these, you |
592 |
-are more than welcomed to file it on our <uri |
593 |
-link="http://bugs.gentoo.org">Bugzilla</uri>. |
594 |
-</p> |
595 |
- |
596 |
-</body> |
597 |
-</section> |
598 |
-</chapter> |
599 |
-</guide> |
600 |
|
601 |
diff --git a/docs/proj/index.xml b/docs/proj/index.xml |
602 |
index 98656304d..b672ed36e 100644 |
603 |
--- a/docs/proj/index.xml |
604 |
+++ b/docs/proj/index.xml |
605 |
@@ -55,7 +55,6 @@ |
606 |
<subproject ref="/proj/en/science/physics/index.xml" /> |
607 |
--> |
608 |
|
609 |
- <resource link="blas-lapack.xml">Guide on using BLAS/LAPACK</resource> |
610 |
<resource link="contrib.xml">Guide on contributing to the science project</resource> |
611 |
<resource link="http://overlays.gentoo.org/proj/science">Official overlay</resource> |
612 |
<resource link="http://news.gmane.org/gmane.linux.gentoo.science/">Mailing list archives</resource> |
613 |
|
614 |
diff --git a/docs/proj/linalg.xml b/docs/proj/linalg.xml |
615 |
deleted file mode 100644 |
616 |
index 02ce98bf4..000000000 |
617 |
--- a/docs/proj/linalg.xml |
618 |
+++ /dev/null |
619 |
@@ -1,530 +0,0 @@ |
620 |
-<?xml version="1.0" encoding="UTF-8"?> |
621 |
-<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
622 |
- |
623 |
-<guide link="/proj/en/science/linalg.xml"> |
624 |
-<title>Linear Algebra on Gentoo</title> |
625 |
- |
626 |
-<author title="Author"> |
627 |
- <mail link="bicatali@g.o">Sébastien Fabbro</mail> |
628 |
-</author> |
629 |
- |
630 |
-<abstract> |
631 |
- This guide explains the use of linear algebra libraries and focus on |
632 |
- how to use the different implementations of BLAS and LAPACK available on Gentoo. |
633 |
-</abstract> |
634 |
- |
635 |
-<!-- The content of this document is licensed under the CC-BY-SA license --> |
636 |
-<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
637 |
-<license/> |
638 |
- |
639 |
-<version>1.0</version> |
640 |
-<date>2010-12-22</date> |
641 |
- |
642 |
-<chapter> |
643 |
-<title>Introduction</title> |
644 |
-<section> |
645 |
-<body> |
646 |
- |
647 |
-<p> |
648 |
- There are <uri link="http://en.wikipedia.org/wiki/List_of_numerical_libraries">many</uri> |
649 |
- performant numerical libraries available. |
650 |
- The Basic Linear Algebra Subprograms (BLAS) and the Linear Algebra PACKage (LAPACK) |
651 |
- are well designed linear algebra libraries developed by the |
652 |
- High Performance Computing (HPC) community. BLAS is an API of dense |
653 |
- matrix and vectors products, while LAPACK provides routines for |
654 |
- solving systems of linear equations. Both are widely used in |
655 |
- many scientific applications and it is, therefore, important to |
656 |
- have efficient implementations available. |
657 |
-</p> |
658 |
- |
659 |
-<p> |
660 |
- BLAS and LAPACK were originally written in FORTRAN 77. Since then, a |
661 |
- number of additional language wrappers have been developed for |
662 |
- languages like C, C++, FORTRAN 95, Java, Python, etc... |
663 |
- Netlib offers exact implementations of the APIs and they are called |
664 |
- "reference" libraries. |
665 |
-</p> |
666 |
- |
667 |
-<ul> |
668 |
-<li> |
669 |
- <uri link="http://www.netlib.org/blas/">BLAS</uri>: FORTRAN 77 and C |
670 |
- (CBLAS) implementations of BLAS |
671 |
-</li> |
672 |
-<li> |
673 |
- <uri link="http://www.netlib.org/lapack/">LAPACK</uri>: FORTRAN 77 and |
674 |
- C (LAPACKE) implementations of LAPACK |
675 |
-</li> |
676 |
-</ul> |
677 |
- |
678 |
-<p> |
679 |
- |
680 |
-</p> |
681 |
- |
682 |
-<ul> |
683 |
-<li> |
684 |
- <uri link="http://www.netlib.org/blacs/">BLACS</uri>: FORTRAN 77 and C |
685 |
- implementations of BLACS |
686 |
-</li> |
687 |
-<li> |
688 |
- <uri link="http://www.netlib.org/scalapack/">ScaLAPACK</uri>: FORTRAN 77 and |
689 |
- C implementations of PBLAS and ScaLAPACK |
690 |
-</li> |
691 |
-</ul> |
692 |
- |
693 |
-<p> |
694 |
- In addition, Gentoo provides a number of optimized implementations |
695 |
- of the above linear algebra libraries that will be described |
696 |
- below. You can switch between implementations with the |
697 |
- Gentoo's <c>eselect</c> system and the widely used <c>pkg-config</c> |
698 |
- tool. |
699 |
-</p> |
700 |
- |
701 |
-<p> |
702 |
- It is important to note that if you require, e.g., a well performing |
703 |
- BLAS implementation, simply emerging X over Y often is not enough. Rather, you will have |
704 |
- to carefully benchmark your applications since performance may depend |
705 |
- on many factors, |
706 |
- such as hardware or network. |
707 |
- If you are simply looking for a well performing and well tested |
708 |
- implementation, the reference ebuilds will likely be your best choice. |
709 |
-</p> |
710 |
- |
711 |
- |
712 |
-</body> |
713 |
-</section> |
714 |
-</chapter> |
715 |
- |
716 |
-<chapter> |
717 |
-<title>For Users</title> |
718 |
-<section> |
719 |
-<title>Installing</title> |
720 |
-<body> |
721 |
- |
722 |
-<p> |
723 |
- If best possible performance is not of paramount importance for you |
724 |
- and you simply need BLAS and/or LAPACK, just emerge the virtual |
725 |
- package: |
726 |
-</p> |
727 |
- |
728 |
-<pre caption="Installing"> |
729 |
-# <i>emerge lapack</i> |
730 |
-</pre> |
731 |
- |
732 |
-<p> |
733 |
- This will install both <><> and <><> the reference packages from |
734 |
- <uri>http://www.netlib.org/</uri> . They are well tested, easy to debug |
735 |
- implementations. They should satisfy most users; if they're all you need, you're |
736 |
- done reading. |
737 |
-</p> |
738 |
- |
739 |
-<p> |
740 |
-However, if: |
741 |
-</p> |
742 |
- |
743 |
-<ul> |
744 |
- <li>linear algebra libraries are critical for the speed of your applications</li> |
745 |
- <li>you absolutely need to build the fastest computer</li> |
746 |
- <li>you want to help Gentoo sci project to improve their packages</li> |
747 |
-</ul> |
748 |
- |
749 |
-<p> |
750 |
-... then read on, and be sure to file bugs both to Gentoo and upstream. |
751 |
-</p> |
752 |
- |
753 |
-<p> |
754 |
- There is a number of optimized implementations of these libraries in the Portage |
755 |
- tree: |
756 |
-</p> |
757 |
- |
758 |
-<ul> |
759 |
- <li> |
760 |
- <uri link="http://math-atlas.sourceforge.net">ATLAS</uri>: Automatically |
761 |
- Tuned Linear Algebra Software is an open-source package that empirically |
762 |
- tunes the library to the machine it is being compiled on. It provides BLAS |
763 |
- (FORTRAN 77 and C), and LAPACK implementations on various architectures. |
764 |
- </li> |
765 |
- <li> |
766 |
- <uri |
767 |
- link="http://www.tacc.utexas.edu/tacc-projects/gotoblas2/">GotoBLAS</uri>: |
768 |
- Goto BLAS provides open-source, free for academic use, hand-coded |
769 |
- machine language, processor optimized versions of the FORTRAN 77 |
770 |
- and C BLAS routines. Still claims to be the fastest BLAS. |
771 |
- </li> |
772 |
- <li> |
773 |
- <uri link="http://software.intel.com/en-us/articles/intel-mkl/">MKL</uri>: |
774 |
- Intel® Math Kernel Library is a closed-source but free package for |
775 |
- non-commercial use on Linux systems containing implementations of all the linear |
776 |
- algebra libraries mentioned here. |
777 |
- </li> |
778 |
-</ul> |
779 |
- |
780 |
-<p> |
781 |
- Usually performance gain is noticeable mainly with BLAS, since LAPACK routines |
782 |
- depend on BLAS kernels. |
783 |
-</p> |
784 |
- |
785 |
-</body> |
786 |
-</section> |
787 |
- |
788 |
- |
789 |
-<section> |
790 |
-<title>Developping with the installed linear algebra libraries</title> |
791 |
-<body> |
792 |
- |
793 |
-<p> |
794 |
- We took great care to make sure that each package provides |
795 |
- consistent pkg-config files generated by us. |
796 |
- Compiling and linking becomes straightforward: |
797 |
-</p> |
798 |
- |
799 |
-<pre caption="Compiling and linking linear algebra libraries"> |
800 |
-# <i>pkg-config --libs blas</i> <comment>(To link with FORTRAN 77 BLAS library)</comment> |
801 |
-# <i>pkg-config --cflags cblas</i> <comment>(To compile against C BLAS library)</comment> |
802 |
-# <i>pkg-config --libs cblas</i> <comment>(To link with C BLAS library)</comment> |
803 |
-# <i>pkg-config --libs scalapack</i> <comment>(To link with the ScaLAPACK library)</comment> |
804 |
-</pre> |
805 |
- |
806 |
-<p> |
807 |
- <c>pkg-config</c> files are available for all implementations and |
808 |
- various alternatives within implementations. The default names of |
809 |
- the implementations are: blas, cblas, lapack, lapacke, blacs and |
810 |
- scalapack, and they can be chosen with <c>eselect</c>. You can also always compile or link |
811 |
- with an library not selected for the |
812 |
- More information on using <c>pkg-config</c> can be obtained with <c>man pkg-config</c>. |
813 |
-</p> |
814 |
- |
815 |
-</body> |
816 |
-</section> |
817 |
-<section> |
818 |
-<title>Selecting libraries</title> |
819 |
-<body> |
820 |
- |
821 |
-<p> |
822 |
- You can switch BLAS, CBLAS and LAPACK implementations with |
823 |
- <c>eselect</c>. you can view which implementations of CBLAS |
824 |
- are available. |
825 |
-</p> |
826 |
- |
827 |
-<pre caption="Viewing available implementations of CBLAS"> |
828 |
-# <i>eselect cblas list</i> |
829 |
-Installed CBLAS for library directory lib64 |
830 |
-[1] atlas |
831 |
-[2] atlas-threads |
832 |
-[3] gsl |
833 |
-[4] mkl-threads * |
834 |
-[5] reference |
835 |
-</pre> |
836 |
- |
837 |
-<p> |
838 |
- The implementation marked with an asterisk (*) is the currently |
839 |
- selected implementation. To switch implementations, run: |
840 |
-</p> |
841 |
- |
842 |
-<pre caption="Switching to the threaded ATLAS implementation of BLAS"> |
843 |
-# <i>eselect blas set atlas-threads</i> |
844 |
-</pre> |
845 |
- |
846 |
-<p> |
847 |
- To learn more about the <c>eselect</c> tool, visit the |
848 |
- <uri link="http://www.gentoo.org/proj/en/eselect/user-guide.xml">eselect guide</uri> |
849 |
-</p> |
850 |
- |
851 |
-<p> |
852 |
- When selecting your linear algebra profiles try to avoid mixing |
853 |
- different implementations since we don't have any mechanism to enforce |
854 |
- reasonable profiles. However, here is a list of well performing |
855 |
- profile combinations that have been used successfully in the past: |
856 |
-</p> |
857 |
-<ul> |
858 |
- <li> performant on most CPUs: |
859 |
- <ul> |
860 |
- <li>blas, cblas: atlas (or atlas-threads with multi-processor)</li> |
861 |
- <li>lapack, lapacke: atlas</li> |
862 |
- </ul> |
863 |
- </li> |
864 |
- <li> performant on most CPUs: |
865 |
- <ul> |
866 |
- <li>blas, cblas: goto2 </li> |
867 |
- <li>lapack, lapacke: reference</li> |
868 |
- </ul> |
869 |
- </li> |
870 |
- <li> performant on AMD based CPUs: |
871 |
- <ul> |
872 |
- <li>cblas: reference</li> |
873 |
- </ul> |
874 |
- </li> |
875 |
- <li> performant on Intel based CPUs: |
876 |
- <ul> |
877 |
- <li>blas,cblas,lapack: mkl-threads</li> |
878 |
- </ul> |
879 |
- </li> |
880 |
-</ul> |
881 |
- |
882 |
-</body> |
883 |
-</section> |
884 |
- |
885 |
-<section> |
886 |
-<title>Choosing a compiler</title> |
887 |
-<body> |
888 |
- |
889 |
-<p> |
890 |
- All the above libraries have been tested with the GNU compiler |
891 |
- collections (gcc, gfortran). |
892 |
- There are many available C compilers and a few FORTRAN (ifort, |
893 |
- Open64) compilers on Gentoo and many other FORTRAN compilers outside |
894 |
- of Gentoo (). |
895 |
-</p> |
896 |
- |
897 |
-<pre caption="Installing BLAS with the Intel FORTRAN compiler"> |
898 |
-# <i>F77=ifort FFLAGS="-O2 -mp1" emerge blas-reference</i> |
899 |
-</pre> |
900 |
- |
901 |
-<p> |
902 |
- Depending on your hardware, a small performance gain can be noticed thanks to |
903 |
- vectorization. The <c>-mp</c> flag maintains floating-point precision, since by |
904 |
- default ifort is pretty aggressive on floating point arithmetic, and we are |
905 |
- actually compiling a math package. Try <c>man ifort</c> to see additional flags |
906 |
- to fit your hardware. |
907 |
-</p> |
908 |
- |
909 |
-<p> |
910 |
- Some of the implementations let you specify the Intel® C compiler as |
911 |
- well. Please beware that not all libraries compile with all |
912 |
- combinations. You should receive an error during the emerge in case you have |
913 |
- chosen an incompatible combination. |
914 |
-</p> |
915 |
- |
916 |
-<p> |
917 |
- As usual for Gentoo, there are many combinations of USE flags and |
918 |
- compilers with which you could compile a package. Unfortunately |
919 |
- switching compilers between BLAS and LAPACK might not be always |
920 |
- compatible. For example: |
921 |
-</p> |
922 |
- |
923 |
-<pre caption="Looking for trouble combinations"> |
924 |
-# <i>FC=gfortran FFLAGS="-O2" emerge lapack-reference</i> |
925 |
-</pre> |
926 |
- |
927 |
-<p> |
928 |
- This will most likely break things or not even compile. |
929 |
-</p> |
930 |
- |
931 |
-<p> |
932 |
- Try to be consistent in your choice. Stay with the GCC most of the time will |
933 |
- avoid you some trouble, unless you want to use the MKL, in which case the Intel |
934 |
- compilers make a good combination. |
935 |
-</p> |
936 |
- |
937 |
-</body> |
938 |
-</section> |
939 |
-<section> |
940 |
-<title>Documentation</title> |
941 |
-<body> |
942 |
- |
943 |
-<p> |
944 |
- If you need BLAS or LAPACK to develop your own programs, the documentation |
945 |
- becomes pretty handy. Setting the USE="doc" flag for the corresponding BLAS or |
946 |
- LAPACK package will install man pages and quick reference sheets from the |
947 |
- <c>app-doc/blas-docs</c> and <c>app-doc/lapack-docs</c> packages. They are |
948 |
- standard and valid for all implementations. For optimized packages, the |
949 |
- USE="doc" flags will usually install extra doc in PDF or HTML format. |
950 |
-</p> |
951 |
- |
952 |
-</body> |
953 |
-</section> |
954 |
-</chapter> |
955 |
- |
956 |
-<chapter> |
957 |
-<title>For ebuild developers</title> |
958 |
-<section> |
959 |
- |
960 |
-<section> |
961 |
-<title>Packages with BLAS/LAPACK dependencies</title> |
962 |
-<body> |
963 |
- |
964 |
-<p> |
965 |
- You need two things: |
966 |
- set [R]DEPEND to <c>virtual/<imp></c>. To build some |
967 |
- packages, you m need to use the pkg-config tool. If you are lucky, the |
968 |
- package uses autotools together with the autoconf <>AX_BLAS and <>AX_LAPACK M4 |
969 |
- macros. In this case, the configuration step becomes simple. For example: |
970 |
-</p> |
971 |
- |
972 |
-<pre caption="Sample package configuration with autotools"> |
973 |
-<keyword>econf</keyword> --with-blas="<var>$(pkg-config --libs blas)</var>" |
974 |
-</pre> |
975 |
- |
976 |
-</body> |
977 |
-</section> |
978 |
- |
979 |
- |
980 |
- |
981 |
-<title>Providing new implementations</title> |
982 |
-<body> |
983 |
- |
984 |
-<p> |
985 |
- The Portage tree contains many ebuilds that depend on the |
986 |
- BLAS/CBLAS/LAPACK/BLACS/ScaLAPACK libraries. As there is more than |
987 |
- one possible implementation, the Gentoo Science Project |
988 |
- reorganized all the packages to provide <c>virtual</c>. All ebuilds using |
989 |
- should depend on this virtual package, unless it is explicitly |
990 |
- known to break with a specific implementation. |
991 |
-</p> |
992 |
- |
993 |
-<p> |
994 |
- To work with Gentoo's configuration tools |
995 |
- <c>app-admin/eselect-{blas,cblas,lapack}</c>, and the virtual, every ebuild that |
996 |
- installs a BLAS implementation must fulfill following requirements: |
997 |
-</p> |
998 |
- |
999 |
-<ol> |
1000 |
-<li> |
1001 |
- The ebuild must install an eselect file for each profile it provides. The |
1002 |
- libraries should link to the ones in <path>/usr/$(get_libdir)</path> |
1003 |
- directories and the include files in <path>/usr/include</path>: |
1004 |
- <ul> |
1005 |
- <li> |
1006 |
- <path>libblas.so[.0]</path> - Shared object for FORTRAN BLAS |
1007 |
- applications |
1008 |
- </li> |
1009 |
- <li> |
1010 |
- <path>libblas.a</path> - Static library for FORTRAN BLAS applications |
1011 |
- </li> |
1012 |
- <li> |
1013 |
- <path>libcblas.so[.0]</path> - Shared object for C/C++ CBLAS applications |
1014 |
- </li> |
1015 |
- <li> |
1016 |
- <path>libcblas.a</path> - Static library for C/C++ CBLAS applications |
1017 |
- </li> |
1018 |
- <li><path>cblas.h</path> - Include header for C/C++ applications</li> |
1019 |
- <li> |
1020 |
- <path>liblapack.so[.0]</path> - Shared object for FORTRAN LAPACK |
1021 |
- applications |
1022 |
- </li> |
1023 |
- <li> |
1024 |
- <path>liblapack.a</path> - Static library for FORTRAN LAPACK applications |
1025 |
- </li> |
1026 |
- </ul> |
1027 |
- </li> |
1028 |
- <li> |
1029 |
- The ebuild must install a <path>blas.pc</path>, <path>cblas.pc</path> and/or |
1030 |
- <path>lapack.pc</path> pkg-config file and therefore RDEPEND on |
1031 |
- <c>dev-util/pkgconfig</c>. They should also be included in the eselect |
1032 |
- files, and link to the <path>/usr/$(get_libdir)/pkgconfig</path> directory: |
1033 |
- <ul> |
1034 |
- <li><path>blas.pc</path> - BLAS pkg-config file</li> |
1035 |
- <li><path>cblas.pc</path> - CBLAS pkg-config file</li> |
1036 |
- <li><path>lapack.pc</path> - LAPACK pkg-config file</li> |
1037 |
- </ul> |
1038 |
- </li> |
1039 |
- <li>Be included in the virtual package as a possible provider: |
1040 |
- <ul> |
1041 |
- <li><c>virtual/blas</c> - BLAS virtual package</li> |
1042 |
- <li><c>virtual/cblas</c> - CBLAS virtual package</li> |
1043 |
- <li><c>virtual/lapack</c> - LAPACK virtual package</li> |
1044 |
- </ul> |
1045 |
- </li> |
1046 |
-</ol> |
1047 |
- |
1048 |
-<p> |
1049 |
- The easiest way of understanding all this is probably getting inspiration from |
1050 |
- one of the available packages. Currently the Portage tree provide the following |
1051 |
- virtual packages: |
1052 |
-</p> |
1053 |
- |
1054 |
-<table> |
1055 |
-<tr> |
1056 |
- <th>Package name</th> |
1057 |
- <th>virtual/blas</th> |
1058 |
- <th>virtual/cblas</th> |
1059 |
- <th>virtual/lapack</th> |
1060 |
- <th>virtual/lapacke</th> |
1061 |
- <th>virtual/blacs</th> |
1062 |
- <th>virtual/scalapack</th> |
1063 |
-</tr> |
1064 |
-<tr> |
1065 |
- <ti><c>sci-libs/atlas</c></ti> |
1066 |
- <ti>*</ti> |
1067 |
- <ti>*</ti> |
1068 |
- <ti>*</ti> |
1069 |
- <ti>*</ti> |
1070 |
- <ti></ti> |
1071 |
- <ti></ti> |
1072 |
-</tr> |
1073 |
-<tr> |
1074 |
- <ti><c>sci-libs/gotoblas2</c></ti> |
1075 |
- <ti>*</ti> |
1076 |
- <ti>*</ti> |
1077 |
- <ti></ti> |
1078 |
- <ti></ti> |
1079 |
- <ti></ti> |
1080 |
- <ti></ti> |
1081 |
-</tr> |
1082 |
-<tr> |
1083 |
- <ti><c>sci-libs/blas-reference</c></ti> |
1084 |
- <ti>*</ti> |
1085 |
- <ti></ti> |
1086 |
- <ti></ti> |
1087 |
- <ti></ti> |
1088 |
- <ti></ti> |
1089 |
- <ti></ti> |
1090 |
-</tr> |
1091 |
-<tr> |
1092 |
- <ti><c>sci-libs/cblas-reference</c></ti> |
1093 |
- <ti></ti> |
1094 |
- <ti>*</ti> |
1095 |
- <ti></ti> |
1096 |
- <ti></ti> |
1097 |
- <ti></ti> |
1098 |
- <ti></ti> |
1099 |
-</tr> |
1100 |
-<tr> |
1101 |
- <ti><c>sci-libs/gsl</c></ti> |
1102 |
- <ti></ti> |
1103 |
- <ti>*</ti> |
1104 |
- <ti></ti> |
1105 |
- <ti></ti> |
1106 |
- <ti></ti> |
1107 |
- <ti></ti> |
1108 |
-</tr> |
1109 |
-<tr> |
1110 |
- <ti><c>sci-libs/lapack-reference</c></ti> |
1111 |
- <ti></ti> |
1112 |
- <ti></ti> |
1113 |
- <ti>*</ti> |
1114 |
- <ti></ti> |
1115 |
- <ti></ti> |
1116 |
- <ti></ti> |
1117 |
-</tr> |
1118 |
-<tr> |
1119 |
- <ti><c>sci-libs/mkl</c></ti> |
1120 |
- <ti>*</ti> |
1121 |
- <ti>*</ti> |
1122 |
- <ti>*</ti> |
1123 |
- <ti>*</ti> |
1124 |
- <ti>*</ti> |
1125 |
- <ti>*</ti> |
1126 |
-</tr> |
1127 |
-</table> |
1128 |
- |
1129 |
-</body> |
1130 |
-</section> |
1131 |
- |
1132 |
-</chapter> |
1133 |
- |
1134 |
-<chapter> |
1135 |
-<title>Benchmarks</title> |
1136 |
-<section> |
1137 |
-<body> |
1138 |
- |
1139 |
-<p> |
1140 |
- If you feel inclined to write an ebuild for these, you |
1141 |
- are more than welcomed to file it on our <uri |
1142 |
- link="http://bugs.gentoo.org">Bugzilla</uri>. |
1143 |
-</p> |
1144 |
- |
1145 |
-</body> |
1146 |
-</section> |
1147 |
-</chapter> |
1148 |
- |
1149 |
-</guide> |
1150 |
|
1151 |
diff --git a/profiles/package.mask b/profiles/package.mask |
1152 |
index 9f3e2465b..ce89ca929 100644 |
1153 |
--- a/profiles/package.mask |
1154 |
+++ b/profiles/package.mask |
1155 |
@@ -42,7 +42,3 @@ sci-biology/samri |
1156 |
=sci-biology/afni-19.0.21 |
1157 |
=sci-biology/afni-18.1.04 |
1158 |
|
1159 |
-# Sebastien Fabbro <bicatali@g.o> (23 Aug 2011) |
1160 |
-# mask old blas from main tree to allow smoother transition to |
1161 |
-# new blas/lapack framework |
1162 |
-=sci-libs/blas-reference-20070226* |
1163 |
|
1164 |
diff --git a/sci-libs/blas-reference/blas-reference-20161223-r100.ebuild b/sci-libs/blas-reference/blas-reference-20161223-r100.ebuild |
1165 |
deleted file mode 100644 |
1166 |
index 596d49844..000000000 |
1167 |
--- a/sci-libs/blas-reference/blas-reference-20161223-r100.ebuild |
1168 |
+++ /dev/null |
1169 |
@@ -1,110 +0,0 @@ |
1170 |
-# Copyright 1999-2017 Gentoo Foundation |
1171 |
-# Distributed under the terms of the GNU General Public License v2 |
1172 |
- |
1173 |
-EAPI=6 |
1174 |
- |
1175 |
-PYTHON_COMPAT=( python2_7 ) |
1176 |
- |
1177 |
-NUMERIC_MODULE_NAME="refblas" |
1178 |
- |
1179 |
-inherit alternatives-2 cmake-utils eutils fortran-2 numeric-int64-multibuild python-any-r1 toolchain-funcs |
1180 |
- |
1181 |
-LPN=lapack |
1182 |
-LPV=3.7.0 |
1183 |
- |
1184 |
-DESCRIPTION="Reference implementation of BLAS" |
1185 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
1186 |
-SRC_URI="http://www.netlib.org/${LPN}/${LPN}-${LPV}.tgz" |
1187 |
- |
1188 |
-LICENSE="BSD" |
1189 |
-SLOT="0/${LPV}" |
1190 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
1191 |
-IUSE="static-libs test" |
1192 |
- |
1193 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
1194 |
- |
1195 |
-RDEPEND="" |
1196 |
-DEPEND="${RDEPEND} |
1197 |
- test? ( ${PYTHON_DEPS} ) |
1198 |
- virtual/pkgconfig" |
1199 |
- |
1200 |
-S="${WORKDIR}/${LPN}-${LPV}" |
1201 |
-PATCHES=( "${FILESDIR}/lapack-reference-${LPV}-fix-build-system.patch" ) |
1202 |
- |
1203 |
-src_prepare() { |
1204 |
- default |
1205 |
- |
1206 |
- # rename library to avoid collision with other blas implementations |
1207 |
- # ${LIBNAME} and ${PROFNAME} are not defined here, they are in single |
1208 |
- # quotes in the following seds. They are later set by defining cmake |
1209 |
- # variables with -DPROFNAME etc in src_configure |
1210 |
- sed -i \ |
1211 |
- -e 's:\([^xc]\)blas:\1${LIBNAME}:g' \ |
1212 |
- -e '/PROPERTIES/s:blas:${LIBNAME}:g' \ |
1213 |
- CMakeLists.txt \ |
1214 |
- BLAS/SRC/CMakeLists.txt || die |
1215 |
- sed -i \ |
1216 |
- -e '/Name: /s:blas:@PROFNAME@:' \ |
1217 |
- -e 's:-lblas:-l@LIBNAME@:g' \ |
1218 |
- BLAS/blas.pc.in || die |
1219 |
- sed -i \ |
1220 |
- -e 's:blas):${LIBNAME}):' \ |
1221 |
- BLAS/TESTING/CMakeLists.txt || die |
1222 |
- sed -i \ |
1223 |
- -e 's:BINARY_DIR}/blas:BINARY_DIR}/${PROFNAME}:' \ |
1224 |
- BLAS/CMakeLists.txt || die |
1225 |
-} |
1226 |
- |
1227 |
-src_configure() { |
1228 |
- blas_configure() { |
1229 |
- local FCFLAGS="${FCFLAGS}" |
1230 |
- append-fflags $($(tc-getPKG_CONFIG) --cflags ${blas_profname}) |
1231 |
- append-fflags $(get_abi_CFLAGS) |
1232 |
- append-fflags $(numeric-int64_get_fortran_int64_abi_fflags) |
1233 |
- |
1234 |
- local profname=$(numeric-int64_get_module_name) |
1235 |
- local libname="${profname//-/_}" |
1236 |
- |
1237 |
- local mycmakeargs=( |
1238 |
- -Wno-dev |
1239 |
- -DPROFNAME="${profname}" |
1240 |
- -DLIBNAME="${libname}" |
1241 |
- -DUSE_OPTIMIZED_BLAS=OFF |
1242 |
- -DCMAKE_Fortran_FLAGS="${FCFLAGS}" |
1243 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
1244 |
- -DBUILD_TESTING="$(usex test)" |
1245 |
- ) |
1246 |
- if $(numeric-int64_is_static_build); then |
1247 |
- mycmakeargs+=( |
1248 |
- -DBUILD_SHARED_LIBS=OFF |
1249 |
- -DBUILD_STATIC_LIBS=ON |
1250 |
- ) |
1251 |
- else |
1252 |
- mycmakeargs+=( |
1253 |
- -DBUILD_SHARED_LIBS=ON |
1254 |
- -DBUILD_STATIC_LIBS=OFF |
1255 |
- ) |
1256 |
- fi |
1257 |
- cmake-utils_src_configure |
1258 |
- } |
1259 |
- numeric-int64-multibuild_foreach_all_abi_variants blas_configure |
1260 |
-} |
1261 |
- |
1262 |
-src_compile() { |
1263 |
- local each target_dirs=( BLAS ) |
1264 |
- use test && target_dirs+=( TESTING ) |
1265 |
- for each in ${target_dirs[@]}; do |
1266 |
- numeric-int64-multibuild_foreach_all_abi_variants \ |
1267 |
- cmake-utils_src_compile -C ${each} |
1268 |
- done |
1269 |
- |
1270 |
-} |
1271 |
- |
1272 |
-src_test() { |
1273 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
1274 |
-} |
1275 |
- |
1276 |
-src_install() { |
1277 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install -C BLAS |
1278 |
- numeric-int64-multibuild_install_alternative blas reference |
1279 |
-} |
1280 |
|
1281 |
diff --git a/sci-libs/blas-reference/blas-reference-20171112-r100.ebuild b/sci-libs/blas-reference/blas-reference-20171112-r100.ebuild |
1282 |
deleted file mode 100644 |
1283 |
index 72bcfd5f3..000000000 |
1284 |
--- a/sci-libs/blas-reference/blas-reference-20171112-r100.ebuild |
1285 |
+++ /dev/null |
1286 |
@@ -1,109 +0,0 @@ |
1287 |
-# Copyright 1999-2018 Gentoo Foundation |
1288 |
-# Distributed under the terms of the GNU General Public License v2 |
1289 |
- |
1290 |
-EAPI=6 |
1291 |
- |
1292 |
-PYTHON_COMPAT=( python2_7 ) |
1293 |
- |
1294 |
-NUMERIC_MODULE_NAME="refblas" |
1295 |
- |
1296 |
-inherit alternatives-2 cmake-utils eutils fortran-2 numeric-int64-multibuild python-any-r1 toolchain-funcs |
1297 |
- |
1298 |
-LPN=lapack |
1299 |
-LPV=3.8.0 |
1300 |
- |
1301 |
-DESCRIPTION="Reference implementation of BLAS" |
1302 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
1303 |
-SRC_URI="http://www.netlib.org/${LPN}/${LPN}-${LPV}.tar.gz" |
1304 |
- |
1305 |
-LICENSE="BSD" |
1306 |
-SLOT="0/${LPV}" |
1307 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
1308 |
-IUSE="static-libs test" |
1309 |
- |
1310 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
1311 |
- |
1312 |
-RDEPEND="" |
1313 |
-DEPEND="${RDEPEND} |
1314 |
- test? ( ${PYTHON_DEPS} ) |
1315 |
- virtual/pkgconfig" |
1316 |
- |
1317 |
-S="${WORKDIR}/${LPN}-${LPV}" |
1318 |
- |
1319 |
-src_prepare() { |
1320 |
- cmake-utils_src_prepare |
1321 |
- |
1322 |
- # rename library to avoid collision with other blas implementations |
1323 |
- # ${LIBNAME} and ${PROFNAME} are not defined here, they are in single |
1324 |
- # quotes in the following seds. They are later set by defining cmake |
1325 |
- # variables with -DPROFNAME etc in src_configure |
1326 |
- sed -i \ |
1327 |
- -e 's:\([^xc]\)blas:\1${LIBNAME}:g' \ |
1328 |
- -e '/PROPERTIES/s:blas:${LIBNAME}:g' \ |
1329 |
- CMakeLists.txt \ |
1330 |
- BLAS/SRC/CMakeLists.txt || die |
1331 |
- sed -i \ |
1332 |
- -e '/Name: /s:blas:@PROFNAME@:' \ |
1333 |
- -e 's:-lblas:-l@LIBNAME@:g' \ |
1334 |
- BLAS/blas.pc.in || die |
1335 |
- sed -i \ |
1336 |
- -e 's:blas):${LIBNAME}):' \ |
1337 |
- BLAS/TESTING/CMakeLists.txt || die |
1338 |
- sed -i \ |
1339 |
- -e 's:BINARY_DIR}/blas:BINARY_DIR}/${PROFNAME}:' \ |
1340 |
- BLAS/CMakeLists.txt || die |
1341 |
-} |
1342 |
- |
1343 |
-src_configure() { |
1344 |
- blas_configure() { |
1345 |
- local FCFLAGS="${FCFLAGS}" |
1346 |
- append-fflags $($(tc-getPKG_CONFIG) --cflags ${blas_profname}) |
1347 |
- append-fflags $(get_abi_CFLAGS) |
1348 |
- append-fflags $(numeric-int64_get_fortran_int64_abi_fflags) |
1349 |
- |
1350 |
- local profname=$(numeric-int64_get_module_name) |
1351 |
- local libname="${profname//-/_}" |
1352 |
- |
1353 |
- local mycmakeargs=( |
1354 |
- -Wno-dev |
1355 |
- -DPROFNAME="${profname}" |
1356 |
- -DLIBNAME="${libname}" |
1357 |
- -DUSE_OPTIMIZED_BLAS=OFF |
1358 |
- -DCMAKE_Fortran_FLAGS="${FCFLAGS}" |
1359 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
1360 |
- -DBUILD_TESTING="$(usex test)" |
1361 |
- ) |
1362 |
- if $(numeric-int64_is_static_build); then |
1363 |
- mycmakeargs+=( |
1364 |
- -DBUILD_SHARED_LIBS=OFF |
1365 |
- -DBUILD_STATIC_LIBS=ON |
1366 |
- ) |
1367 |
- else |
1368 |
- mycmakeargs+=( |
1369 |
- -DBUILD_SHARED_LIBS=ON |
1370 |
- -DBUILD_STATIC_LIBS=OFF |
1371 |
- ) |
1372 |
- fi |
1373 |
- cmake-utils_src_configure |
1374 |
- } |
1375 |
- numeric-int64-multibuild_foreach_all_abi_variants blas_configure |
1376 |
-} |
1377 |
- |
1378 |
-src_compile() { |
1379 |
- local each target_dirs=( BLAS ) |
1380 |
- use test && target_dirs+=( TESTING ) |
1381 |
- for each in ${target_dirs[@]}; do |
1382 |
- numeric-int64-multibuild_foreach_all_abi_variants \ |
1383 |
- cmake-utils_src_compile -C ${each} |
1384 |
- done |
1385 |
- |
1386 |
-} |
1387 |
- |
1388 |
-src_test() { |
1389 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
1390 |
-} |
1391 |
- |
1392 |
-src_install() { |
1393 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install -C BLAS |
1394 |
- numeric-int64-multibuild_install_alternative blas reference |
1395 |
-} |
1396 |
|
1397 |
diff --git a/sci-libs/blas-reference/blas-reference-99999999.ebuild b/sci-libs/blas-reference/blas-reference-99999999.ebuild |
1398 |
deleted file mode 100644 |
1399 |
index 71b81ca97..000000000 |
1400 |
--- a/sci-libs/blas-reference/blas-reference-99999999.ebuild |
1401 |
+++ /dev/null |
1402 |
@@ -1,108 +0,0 @@ |
1403 |
-# Copyright 1999-2018 Gentoo Foundation |
1404 |
-# Distributed under the terms of the GNU General Public License v2 |
1405 |
- |
1406 |
-EAPI=6 |
1407 |
- |
1408 |
-PYTHON_COMPAT=( python2_7 ) |
1409 |
- |
1410 |
-NUMERIC_MODULE_NAME="refblas" |
1411 |
- |
1412 |
-inherit alternatives-2 cmake-utils fortran-2 numeric-int64-multibuild python-any-r1 toolchain-funcs subversion |
1413 |
- |
1414 |
-LPN=lapack |
1415 |
-LPV=3.8.0 |
1416 |
- |
1417 |
-DESCRIPTION="Reference implementation of BLAS" |
1418 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
1419 |
-ESVN_REPO_URI="https://icl.cs.utk.edu/svn/lapack-dev/${LPN}/trunk" |
1420 |
- |
1421 |
-LICENSE="BSD" |
1422 |
-SLOT="0/${LPV}" |
1423 |
-KEYWORDS="" |
1424 |
-IUSE="static-libs test" |
1425 |
- |
1426 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
1427 |
- |
1428 |
-RDEPEND="" |
1429 |
-DEPEND="${RDEPEND} |
1430 |
- test? ( ${PYTHON_DEPS} ) |
1431 |
- virtual/pkgconfig" |
1432 |
- |
1433 |
-S="${WORKDIR}/${LPN}-${LPV}" |
1434 |
- |
1435 |
-src_prepare() { |
1436 |
- cmake-utils_src_prepare |
1437 |
- # rename library to avoid collision with other blas implementations |
1438 |
- # ${LIBNAME} and ${PROFNAME} are not defined here, they are in single |
1439 |
- # quotes in the following seds. They are later set by defining cmake |
1440 |
- # variables with -DPROFNAME etc in src_configure |
1441 |
- sed -i \ |
1442 |
- -e 's:\([^xc]\)blas:\1${LIBNAME}:g' \ |
1443 |
- -e '/PROPERTIES/s:blas:${LIBNAME}:g' \ |
1444 |
- CMakeLists.txt \ |
1445 |
- BLAS/SRC/CMakeLists.txt || die |
1446 |
- sed -i \ |
1447 |
- -e '/Name: /s:blas:${PROFNAME}:' \ |
1448 |
- -e 's:-lblas:-l${LIBNAME}:g' \ |
1449 |
- BLAS/blas.pc.in || die |
1450 |
- sed -i \ |
1451 |
- -e 's:blas):${LIBNAME}):' \ |
1452 |
- BLAS/TESTING/CMakeLists.txt || die |
1453 |
- sed -i \ |
1454 |
- -e 's:BINARY_DIR}/blas:BINARY_DIR}/${PROFNAME}:' \ |
1455 |
- BLAS/CMakeLists.txt || die |
1456 |
-} |
1457 |
- |
1458 |
-src_configure() { |
1459 |
- blas_configure() { |
1460 |
- local FCFLAGS="${FCFLAGS}" |
1461 |
- append-fflags $($(tc-getPKG_CONFIG) --cflags ${blas_profname}) |
1462 |
- append-fflags $(get_abi_CFLAGS) |
1463 |
- append-fflags $(numeric-int64_get_fortran_int64_abi_fflags) |
1464 |
- |
1465 |
- local profname=$(numeric-int64_get_module_name) |
1466 |
- local libname="${profname//-/_}" |
1467 |
- |
1468 |
- local mycmakeargs=( |
1469 |
- -Wno-dev |
1470 |
- -DPROFNAME="${profname}" |
1471 |
- -DLIBNAME="${libname}" |
1472 |
- -DUSE_OPTIMIZED_BLAS=OFF |
1473 |
- -DCMAKE_Fortran_FLAGS="${FCFLAGS}" |
1474 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
1475 |
- $(cmake-utils_use_build test TESTING) |
1476 |
- ) |
1477 |
- if $(numeric-int64_is_static_build); then |
1478 |
- mycmakeargs+=( |
1479 |
- -DBUILD_SHARED_LIBS=OFF |
1480 |
- -DBUILD_STATIC_LIBS=ON |
1481 |
- ) |
1482 |
- else |
1483 |
- mycmakeargs+=( |
1484 |
- -DBUILD_SHARED_LIBS=ON |
1485 |
- -DBUILD_STATIC_LIBS=OFF |
1486 |
- ) |
1487 |
- fi |
1488 |
- cmake-utils_src_configure |
1489 |
- } |
1490 |
- numeric-int64-multibuild_foreach_all_abi_variants blas_configure |
1491 |
-} |
1492 |
- |
1493 |
-src_compile() { |
1494 |
- local each target_dirs=( BLAS ) |
1495 |
- use test && target_dirs+=( TESTING ) |
1496 |
- for each in ${target_dirs[@]}; do |
1497 |
- numeric-int64-multibuild_foreach_all_abi_variants \ |
1498 |
- cmake-utils_src_compile -C ${each} |
1499 |
- done |
1500 |
- |
1501 |
-} |
1502 |
- |
1503 |
-src_test() { |
1504 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
1505 |
-} |
1506 |
- |
1507 |
-src_install() { |
1508 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install -C BLAS |
1509 |
- numeric-int64-multibuild_install_alternative blas reference |
1510 |
-} |
1511 |
|
1512 |
diff --git a/sci-libs/blas-reference/files/lapack-fix-build-system.patch b/sci-libs/blas-reference/files/lapack-fix-build-system.patch |
1513 |
deleted file mode 100644 |
1514 |
index 8661709d3..000000000 |
1515 |
--- a/sci-libs/blas-reference/files/lapack-fix-build-system.patch |
1516 |
+++ /dev/null |
1517 |
@@ -1,92 +0,0 @@ |
1518 |
---- lapack-3.6.0/BLAS/blas.pc.in |
1519 |
-+++ lapack-3.6.0/BLAS/blas.pc.in |
1520 |
-@@ -1,5 +1,7 @@ |
1521 |
--prefix=@prefix@ |
1522 |
--libdir=@libdir@ |
1523 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1524 |
-+exec_prefix=${prefix} |
1525 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1526 |
-+includedir=${prefix}/include |
1527 |
- |
1528 |
- Name: blas |
1529 |
- Description: Basic Linear Algebra Subprograms F77 reference implementations |
1530 |
---- lapack-3.6.0/BLAS/CMakeLists.txt |
1531 |
-+++ lapack-3.6.0/BLAS/CMakeLists.txt |
1532 |
-@@ -2,7 +2,7 @@ |
1533 |
- if(BUILD_TESTING) |
1534 |
- add_subdirectory(TESTING) |
1535 |
- endif(BUILD_TESTING) |
1536 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc) |
1537 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY) |
1538 |
- install(FILES |
1539 |
- ${CMAKE_CURRENT_BINARY_DIR}/blas.pc |
1540 |
- DESTINATION ${PKG_CONFIG_DIR} |
1541 |
---- lapack-3.6.0/CBLAS/cblas.pc.in |
1542 |
-+++ lapack-3.6.0/CBLAS/cblas.pc.in |
1543 |
-@@ -1,5 +1,7 @@ |
1544 |
--prefix=@prefix@ |
1545 |
--libdir=@libdir@ |
1546 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1547 |
-+exec_prefix=${prefix} |
1548 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1549 |
-+includedir=${prefix}/include |
1550 |
- |
1551 |
- Name: lapacke |
1552 |
- Description: C Standard Interface to BLAS Linear Algebra PACKage |
1553 |
---- lapack-3.6.0/CBLAS/CMakeLists.txt |
1554 |
-+++ lapack-3.6.0/CBLAS/CMakeLists.txt |
1555 |
-@@ -71,7 +71,7 @@ |
1556 |
- ${LAPACK_BINARY_DIR}/cblas-config.cmake @ONLY) |
1557 |
- |
1558 |
- |
1559 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc) |
1560 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc @ONLY) |
1561 |
- install(FILES |
1562 |
- ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc |
1563 |
- DESTINATION ${PKG_CONFIG_DIR} |
1564 |
---- lapack-3.6.0/CMakeLists.txt |
1565 |
-+++ lapack-3.6.0/CMakeLists.txt |
1566 |
-@@ -333,7 +333,7 @@ |
1567 |
- ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY) |
1568 |
- |
1569 |
- |
1570 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc) |
1571 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY) |
1572 |
- install(FILES |
1573 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc |
1574 |
- DESTINATION ${PKG_CONFIG_DIR} |
1575 |
---- lapack-3.6.0/LAPACKE/CMakeLists.txt |
1576 |
-+++ lapack-3.6.0/LAPACKE/CMakeLists.txt |
1577 |
-@@ -65,7 +65,7 @@ |
1578 |
- endif(BUILD_TESTING) |
1579 |
- |
1580 |
- |
1581 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc) |
1582 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc @ONLY) |
1583 |
- install(FILES |
1584 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc |
1585 |
- DESTINATION ${PKG_CONFIG_DIR} |
1586 |
---- lapack-3.6.0/LAPACKE/lapacke.pc.in |
1587 |
-+++ lapack-3.6.0/LAPACKE/lapacke.pc.in |
1588 |
-@@ -1,5 +1,7 @@ |
1589 |
--prefix=@prefix@ |
1590 |
--libdir=@libdir@ |
1591 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1592 |
-+exec_prefix=${prefix} |
1593 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1594 |
-+includedir=${prefix}/include |
1595 |
- |
1596 |
- Name: lapacke |
1597 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
1598 |
---- lapack-3.6.0/lapack.pc.in |
1599 |
-+++ lapack-3.6.0/lapack.pc.in |
1600 |
-@@ -1,5 +1,7 @@ |
1601 |
--prefix=@prefix@ |
1602 |
--libdir=@libdir@ |
1603 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1604 |
-+exec_prefix=${prefix} |
1605 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1606 |
-+includedir=${prefix}/include |
1607 |
- |
1608 |
- Name: lapack |
1609 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
1610 |
|
1611 |
diff --git a/sci-libs/blas-reference/files/lapack-reference-3.7.0-fix-build-system.patch b/sci-libs/blas-reference/files/lapack-reference-3.7.0-fix-build-system.patch |
1612 |
deleted file mode 100644 |
1613 |
index 70f7cb0ee..000000000 |
1614 |
--- a/sci-libs/blas-reference/files/lapack-reference-3.7.0-fix-build-system.patch |
1615 |
+++ /dev/null |
1616 |
@@ -1,56 +0,0 @@ |
1617 |
-diff --git a/BLAS/blas.pc.in b/BLAS/blas.pc.in |
1618 |
-index 7fd6f1e..e52f3ad 100644 |
1619 |
---- a/BLAS/blas.pc.in |
1620 |
-+++ b/BLAS/blas.pc.in |
1621 |
-@@ -1,5 +1,7 @@ |
1622 |
--prefix=@prefix@ |
1623 |
--libdir=@libdir@ |
1624 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1625 |
-+exec_prefix=${prefix} |
1626 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1627 |
-+includedir=${prefix}/include |
1628 |
- |
1629 |
- Name: BLAS |
1630 |
- Description: FORTRAN reference implementation of BLAS Basic Linear Algebra Subprograms |
1631 |
-diff --git a/CBLAS/cblas.pc.in b/CBLAS/cblas.pc.in |
1632 |
-index 4a938fe..311aed9 100644 |
1633 |
---- a/CBLAS/cblas.pc.in |
1634 |
-+++ b/CBLAS/cblas.pc.in |
1635 |
-@@ -1,5 +1,7 @@ |
1636 |
--prefix=@prefix@ |
1637 |
--libdir=@libdir@ |
1638 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1639 |
-+exec_prefix=${prefix} |
1640 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1641 |
-+includedir=${prefix}/include |
1642 |
- |
1643 |
- Name: CBLAS |
1644 |
- Description: C Standard Interface to BLAS Basic Linear Algebra Subprograms |
1645 |
-diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in |
1646 |
-index 028f8da..dc092b1 100644 |
1647 |
---- a/LAPACKE/lapacke.pc.in |
1648 |
-+++ b/LAPACKE/lapacke.pc.in |
1649 |
-@@ -1,5 +1,7 @@ |
1650 |
--prefix=@prefix@ |
1651 |
--libdir=@libdir@ |
1652 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1653 |
-+exec_prefix=${prefix} |
1654 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1655 |
-+includedir=${prefix}/include |
1656 |
- |
1657 |
- Name: LAPACKE |
1658 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
1659 |
-diff --git a/lapack.pc.in b/lapack.pc.in |
1660 |
-index 878efc2..2cca4c2 100644 |
1661 |
---- a/lapack.pc.in |
1662 |
-+++ b/lapack.pc.in |
1663 |
-@@ -1,5 +1,7 @@ |
1664 |
--prefix=@prefix@ |
1665 |
--libdir=@libdir@ |
1666 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
1667 |
-+exec_prefix=${prefix} |
1668 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
1669 |
-+includedir=${prefix}/include |
1670 |
- |
1671 |
- Name: LAPACK |
1672 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
1673 |
|
1674 |
diff --git a/sci-libs/blas-reference/metadata.xml b/sci-libs/blas-reference/metadata.xml |
1675 |
deleted file mode 100644 |
1676 |
index 17dbcb54a..000000000 |
1677 |
--- a/sci-libs/blas-reference/metadata.xml |
1678 |
+++ /dev/null |
1679 |
@@ -1,20 +0,0 @@ |
1680 |
-<?xml version="1.0" encoding="UTF-8"?> |
1681 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1682 |
-<pkgmetadata> |
1683 |
- <maintainer type="project"> |
1684 |
- <email>sci@g.o</email> |
1685 |
- <name>Gentoo Science Project</name> |
1686 |
- </maintainer> |
1687 |
- <longdescription lang="en"> |
1688 |
-The BLAS (Basic Linear Algebra Subprograms) are high quality "building |
1689 |
-block" routines for performing basic vector and matrix operations. Level 1 |
1690 |
-BLAS do vector-vector operations, Level 2 BLAS do matrix-vector operations, |
1691 |
-and Level 3 BLAS do matrix-matrix operations. Because the BLAS are |
1692 |
-efficient, portable, and widely available, they're commonly used in the |
1693 |
-development of high quality linear algebra software, LAPACK for |
1694 |
-example. This packages implements the reference FORTRAN 77 library. |
1695 |
-</longdescription> |
1696 |
- <use> |
1697 |
- <flag name="int64">Build the 64 bits integer library</flag> |
1698 |
- </use> |
1699 |
-</pkgmetadata> |
1700 |
|
1701 |
diff --git a/sci-libs/cblas-reference/cblas-reference-20110218-r100.ebuild b/sci-libs/cblas-reference/cblas-reference-20110218-r100.ebuild |
1702 |
deleted file mode 100644 |
1703 |
index 0d44ec5f2..000000000 |
1704 |
--- a/sci-libs/cblas-reference/cblas-reference-20110218-r100.ebuild |
1705 |
+++ /dev/null |
1706 |
@@ -1,144 +0,0 @@ |
1707 |
-# Copyright 1999-2016 Gentoo Foundation |
1708 |
-# Distributed under the terms of the GNU General Public License v2 |
1709 |
- |
1710 |
-EAPI=5 |
1711 |
- |
1712 |
-NUMERIC_MODULE_NAME="refcblas" |
1713 |
- |
1714 |
-inherit alternatives-2 flag-o-matic fortran-2 multilib numeric numeric-int64-multibuild toolchain-funcs versionator |
1715 |
- |
1716 |
-MYPN="${PN/-reference/}" |
1717 |
- |
1718 |
-DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation" |
1719 |
-HOMEPAGE="http://www.netlib.org/blas/" |
1720 |
-SRC_URI="http://www.netlib.org/blas/blast-forum/${MYPN}.tgz -> ${P}.tgz" |
1721 |
- |
1722 |
-SLOT="0" |
1723 |
-LICENSE="public-domain" |
1724 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
1725 |
-IUSE="static-libs" |
1726 |
- |
1727 |
-RDEPEND="virtual/blas" |
1728 |
-DEPEND="${RDEPEND} |
1729 |
- virtual/pkgconfig" |
1730 |
- |
1731 |
-S="${WORKDIR}/CBLAS" |
1732 |
- |
1733 |
-MULTILIB_WRAPPED_HEADERS=( |
1734 |
- /usr/include/cblas/cblas.h |
1735 |
-) |
1736 |
- |
1737 |
-static_to_shared() { |
1738 |
- local libstatic=$1 |
1739 |
- shift || die |
1740 |
- local libname=$(basename ${libstatic%.a}) |
1741 |
- local soname=${libname}$(get_libname $(get_version_component_range 1-2)) |
1742 |
- local libdir=$(dirname ${libstatic}) |
1743 |
- |
1744 |
- einfo "Making ${soname} from ${libstatic}" |
1745 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
1746 |
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \ |
1747 |
- -dynamiclib -install_name "${EPREFIX}"/usr/$(get_libdir)/${soname} \ |
1748 |
- -Wl,-all_load -Wl,${libstatic} \ |
1749 |
- "$@" -o ${libdir}/${soname} || die "${soname} failed" |
1750 |
- else |
1751 |
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \ |
1752 |
- -shared -Wl,-soname=${soname} \ |
1753 |
- -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \ |
1754 |
- "$@" -o ${libdir}/${soname} || die "${soname} failed" |
1755 |
- if [[ $(get_version_component_count) -gt 1 ]]; then |
1756 |
- ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version)) || die |
1757 |
- fi |
1758 |
- fi |
1759 |
- ln -s ${soname} ${libdir}/${libname}$(get_libname) || die |
1760 |
-} |
1761 |
- |
1762 |
-src_prepare() { |
1763 |
- numeric-int64_ensure_blas_int_support |
1764 |
- find . -name Makefile -exec sed -i \ |
1765 |
- -e 's:make:$(MAKE):g' '{}' \; || die |
1766 |
- numeric-int64-multibuild_copy_sources |
1767 |
-} |
1768 |
- |
1769 |
-src_configure() { |
1770 |
- cblas_configure() { |
1771 |
- local profname=$(numeric-int64_get_module_name) |
1772 |
- local libname="${profname//-/_}" |
1773 |
- append-cflags -DADD_ |
1774 |
- cat > Makefile.in <<-EOF |
1775 |
- BLLIB=$($(tc-getPKG_CONFIG) --libs $(numeric-int64_get_blas_alternative)) |
1776 |
- FC=$(tc-getFC) $(get_abi_CFLAGS) $(numeric-int64_get_fortran_int64_abi_fflags) |
1777 |
- CC=$(tc-getCC) |
1778 |
- CBLIB=../lib/lib${libname}.a |
1779 |
- LOADER=\$(FC) |
1780 |
- ARCH=$(tc-getAR) |
1781 |
- ARCHFLAGS=cr |
1782 |
- RANLIB=$(tc-getRANLIB) |
1783 |
- EOF |
1784 |
- } |
1785 |
- numeric-int64-multibuild_foreach_all_abi_variants run_in_build_dir cblas_configure |
1786 |
-} |
1787 |
- |
1788 |
-src_compile() { |
1789 |
- cblas_src_compile() { |
1790 |
- local profname=$(numeric-int64_get_module_name) |
1791 |
- local libname="${profname//-/_}" |
1792 |
- emake \ |
1793 |
- FFLAGS="${FFLAGS} -fPIC" \ |
1794 |
- CFLAGS="${CFLAGS} -fPIC" \ |
1795 |
- alllib |
1796 |
- static_to_shared lib/lib${libname}.a $($(tc-getPKG_CONFIG) --libs $(numeric-int64_get_blas_alternative)) |
1797 |
- if use static-libs; then |
1798 |
- emake clean |
1799 |
- emake alllib |
1800 |
- fi |
1801 |
- } |
1802 |
- numeric-int64-multibuild_foreach_all_abi_variants run_in_build_dir cblas_src_compile |
1803 |
-} |
1804 |
- |
1805 |
-src_test() { |
1806 |
- cblas_src_test () { |
1807 |
- local profname=$(numeric-int64_get_module_name) |
1808 |
- local libname="${profname//-/_}" |
1809 |
- cd testing || die |
1810 |
- emake && emake run |
1811 |
- } |
1812 |
- numeric-int64-multibuild_foreach_all_abi_variants run_in_build_dir cblas_src_test |
1813 |
-} |
1814 |
- |
1815 |
-src_install() { |
1816 |
- cblas_src_install() { |
1817 |
- local profname=$(numeric-int64_get_module_name) |
1818 |
- local libname="${profname//-/_}" |
1819 |
- # On linux dynamic libraries are of the form .so.${someversion} |
1820 |
- # On OS X dynamic libraries are of the form ${someversion}.dylib |
1821 |
- if numeric-int64_is_static_build; then |
1822 |
- dolib.a lib/lib${libname}.a |
1823 |
- else |
1824 |
- dolib.so lib/lib${libname}*$(get_libname)* |
1825 |
- insinto /usr/include/cblas |
1826 |
- doins include/cblas.h |
1827 |
- create_pkgconfig \ |
1828 |
- --name "${profname}" \ |
1829 |
- --libs "-L\${libdir} -l${libname}" \ |
1830 |
- --libs-private "-lm" \ |
1831 |
- --cflags "-I\${includedir}/cblas $(numeric-int64_get_fortran_int64_abi_fflags)" \ |
1832 |
- --requires $(numeric-int64_get_blas_alternative) \ |
1833 |
- ${profname} |
1834 |
- fi |
1835 |
- |
1836 |
- if [[ ${#MULTIBUILD_VARIANTS[@]} -gt 1 ]]; then |
1837 |
- multilib_prepare_wrappers |
1838 |
- multilib_check_headers |
1839 |
- fi |
1840 |
- } |
1841 |
- numeric-int64-multibuild_foreach_all_abi_variants run_in_build_dir cblas_src_install |
1842 |
- |
1843 |
- numeric-int64-multibuild_install_alternative cblas reference /usr/include/cblas.h cblas/cblas.h |
1844 |
- |
1845 |
- multilib_install_wrappers |
1846 |
- |
1847 |
- dodoc README |
1848 |
- docinto examples |
1849 |
- dodoc examples/*.c |
1850 |
-} |
1851 |
|
1852 |
diff --git a/sci-libs/cblas-reference/cblas-reference-20151113-r100.ebuild b/sci-libs/cblas-reference/cblas-reference-20151113-r100.ebuild |
1853 |
deleted file mode 100644 |
1854 |
index 97b7d012f..000000000 |
1855 |
--- a/sci-libs/cblas-reference/cblas-reference-20151113-r100.ebuild |
1856 |
+++ /dev/null |
1857 |
@@ -1,126 +0,0 @@ |
1858 |
-# Copyright 1999-2016 Gentoo Foundation |
1859 |
-# Distributed under the terms of the GNU General Public License v2 |
1860 |
- |
1861 |
-EAPI=5 |
1862 |
- |
1863 |
-PYTHON_COMPAT=( python2_7 ) |
1864 |
- |
1865 |
-NUMERIC_MODULE_NAME="refcblas" |
1866 |
- |
1867 |
-inherit alternatives-2 cmake-utils eutils fortran-2 numeric-int64-multibuild python-any-r1 toolchain-funcs |
1868 |
- |
1869 |
-LPN=lapack |
1870 |
-LPV=3.6.0 |
1871 |
- |
1872 |
-DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation" |
1873 |
-HOMEPAGE="http://www.netlib.org/cblas/" |
1874 |
-SRC_URI="http://www.netlib.org/${LPN}/${LPN}-${LPV}.tgz" |
1875 |
- |
1876 |
-LICENSE="BSD" |
1877 |
-SLOT="0/${LPV}" |
1878 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
1879 |
-IUSE="static-libs test" |
1880 |
- |
1881 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
1882 |
- |
1883 |
-RDEPEND="virtual/blas" |
1884 |
-DEPEND="${RDEPEND} |
1885 |
- test? ( ${PYTHON_DEPS} ) |
1886 |
- virtual/pkgconfig" |
1887 |
- |
1888 |
-S="${WORKDIR}/${LPN}-${LPV}" |
1889 |
-PATCHES=( "${FILESDIR}/lapack-fix-build-system.patch" ) |
1890 |
- |
1891 |
-MULTILIB_WRAPPED_HEADERS=( |
1892 |
- /usr/include/cblas/cblas.h |
1893 |
-) |
1894 |
-src_prepare() { |
1895 |
- # the lapack(e)/(c)blas build system is somewhat broken |
1896 |
- # with respect to its pkg-config files. |
1897 |
- epatch "${PATCHES[@]}" |
1898 |
- |
1899 |
- # rename library to avoid collision with other blas implementations |
1900 |
- # ${LIBNAME} and ${PROFNAME} are not defined here, they are in single |
1901 |
- # quotes in the following seds. They are later set by defining cmake |
1902 |
- # variables with -DPROFNAME etc in src_configure |
1903 |
- sed -i \ |
1904 |
- -e 's:\([^xc]\)blas:\1${LIBNAME}:g' \ |
1905 |
- -e '/ALL_TARGETS/s:cblas):${LIBNAME}):' \ |
1906 |
- -e '/_librar/s:cblas:${LIBNAME}:' \ |
1907 |
- CMakeLists.txt \ |
1908 |
- CBLAS/src/CMakeLists.txt || die |
1909 |
- sed -i \ |
1910 |
- -e 's:/CMAKE/:/cmake/:g' \ |
1911 |
- CBLAS/CMakeLists.txt || die |
1912 |
- sed -i \ |
1913 |
- -e '/Name: /s:cblas:@PROFNAME@:' \ |
1914 |
- -e 's:-lcblas:-l@LIBNAME@:g' \ |
1915 |
- CBLAS/cblas.pc.in || die |
1916 |
- sed -i \ |
1917 |
- -e 's:cblas):${LIBNAME}):' \ |
1918 |
- CBLAS/testing/CMakeLists.txt || die |
1919 |
- sed -i \ |
1920 |
- -e 's:BINARY_DIR}/cblas:BINARY_DIR}/${PROFNAME}:' \ |
1921 |
- -e '/CBLAS_INCLUDE/s:include ):include/${PROFNAME} ):g' \ |
1922 |
- CBLAS/CMakeLists.txt || die |
1923 |
-} |
1924 |
- |
1925 |
-src_configure() { |
1926 |
- cblas_configure() { |
1927 |
- local FCFLAGS="${FCFLAGS}" |
1928 |
- append-fflags $($(tc-getPKG_CONFIG) --cflags ${blas_profname}) |
1929 |
- append-fflags $(get_abi_CFLAGS) |
1930 |
- append-fflags $(numeric-int64_get_fortran_int64_abi_fflags) |
1931 |
- |
1932 |
- local blas_profname=$(numeric-int64_get_blas_alternative) |
1933 |
- local profname=$(numeric-int64_get_module_name) |
1934 |
- local libname="${profname//-/_}" |
1935 |
- |
1936 |
- local mycmakeargs=( |
1937 |
- -Wno-dev |
1938 |
- -DCBLAS=ON |
1939 |
- -DPROFNAME="${profname}" |
1940 |
- -DLIBNAME="${libname}" |
1941 |
- -DUSE_OPTIMIZED_BLAS=ON |
1942 |
- -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${blas_profname})" |
1943 |
- -DCMAKE_C_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CFLAGS}" |
1944 |
- -DCMAKE_CXX_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CXXFLAGS}" |
1945 |
- -DCMAKE_Fortran_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) $(get_abi_CFLAGS) $(numeric-int64_get_fortran_int64_abi_fflags) ${FCFLAGS}" |
1946 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
1947 |
- $(cmake-utils_use_build test TESTING) |
1948 |
- ) |
1949 |
- if $(numeric-int64_is_static_build); then |
1950 |
- mycmakeargs+=( |
1951 |
- -DBUILD_SHARED_LIBS=OFF |
1952 |
- -DBUILD_STATIC_LIBS=ON |
1953 |
- ) |
1954 |
- else |
1955 |
- mycmakeargs+=( |
1956 |
- -DBUILD_SHARED_LIBS=ON |
1957 |
- -DBUILD_STATIC_LIBS=OFF |
1958 |
- ) |
1959 |
- fi |
1960 |
- cmake-utils_src_configure |
1961 |
- } |
1962 |
- numeric-int64-multibuild_foreach_all_abi_variants cblas_configure |
1963 |
-} |
1964 |
- |
1965 |
-src_compile() { |
1966 |
- local each target_dirs=( CBLAS ) |
1967 |
- use test && target_dirs+=( testing ) |
1968 |
- for each in ${target_dirs[@]}; do |
1969 |
- numeric-int64-multibuild_foreach_all_abi_variants \ |
1970 |
- cmake-utils_src_compile -C ${each} |
1971 |
- done |
1972 |
- |
1973 |
-} |
1974 |
- |
1975 |
-src_test() { |
1976 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
1977 |
-} |
1978 |
- |
1979 |
-src_install() { |
1980 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install -C CBLAS |
1981 |
- numeric-int64-multibuild_install_alternative cblas reference /usr/include/cblas.h refcblas/cblas.h |
1982 |
- multilib_install_wrappers |
1983 |
-} |
1984 |
|
1985 |
diff --git a/sci-libs/cblas-reference/cblas-reference-20161223-r101.ebuild b/sci-libs/cblas-reference/cblas-reference-20161223-r101.ebuild |
1986 |
deleted file mode 100644 |
1987 |
index 152e56324..000000000 |
1988 |
--- a/sci-libs/cblas-reference/cblas-reference-20161223-r101.ebuild |
1989 |
+++ /dev/null |
1990 |
@@ -1,124 +0,0 @@ |
1991 |
-# Copyright 1999-2018 Gentoo Authors |
1992 |
-# Distributed under the terms of the GNU General Public License v2 |
1993 |
- |
1994 |
-EAPI=6 |
1995 |
- |
1996 |
-PYTHON_COMPAT=( python2_7 ) |
1997 |
- |
1998 |
-NUMERIC_MODULE_NAME="refcblas" |
1999 |
- |
2000 |
-inherit alternatives-2 cmake-utils eutils fortran-2 numeric-int64-multibuild python-any-r1 toolchain-funcs |
2001 |
- |
2002 |
-LPN=lapack |
2003 |
-LPV=3.7.0 |
2004 |
- |
2005 |
-DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation" |
2006 |
-HOMEPAGE="http://www.netlib.org/cblas/" |
2007 |
-SRC_URI="http://www.netlib.org/${LPN}/${LPN}-${LPV}.tgz" |
2008 |
- |
2009 |
-LICENSE="BSD" |
2010 |
-SLOT="0/${LPV}" |
2011 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
2012 |
-IUSE="static-libs test" |
2013 |
- |
2014 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
2015 |
- |
2016 |
-RDEPEND="virtual/blas" |
2017 |
-DEPEND="${RDEPEND} |
2018 |
- test? ( ${PYTHON_DEPS} ) |
2019 |
- virtual/pkgconfig" |
2020 |
- |
2021 |
-S="${WORKDIR}/${LPN}-${LPV}" |
2022 |
-PATCHES=( "${FILESDIR}/lapack-reference-${LPV}-fix-build-system.patch" ) |
2023 |
- |
2024 |
-MULTILIB_WRAPPED_HEADERS=( |
2025 |
- /usr/include/cblas/cblas.h |
2026 |
-) |
2027 |
- |
2028 |
-src_prepare() { |
2029 |
- cmake-utils_src_prepare |
2030 |
- |
2031 |
- # rename library to avoid collision with other blas implementations |
2032 |
- # ${LIBNAME} and ${PROFNAME} are not defined here, they are in single |
2033 |
- # quotes in the following seds. They are later set by defining cmake |
2034 |
- # variables with -DPROFNAME etc in src_configure |
2035 |
- sed -i \ |
2036 |
- -e 's:\([^xc]\)blas:\1${LIBNAME}:g' \ |
2037 |
- -e '/ALL_TARGETS/s:cblas):${LIBNAME}):' \ |
2038 |
- -e '/_librar/s:cblas:${LIBNAME}:' \ |
2039 |
- CMakeLists.txt \ |
2040 |
- CBLAS/src/CMakeLists.txt || die |
2041 |
- sed -i \ |
2042 |
- -e 's:/CMAKE/:/cmake/:g' \ |
2043 |
- CBLAS/CMakeLists.txt || die |
2044 |
- sed -i \ |
2045 |
- -e '/Name: /s:cblas:@PROFNAME@:' \ |
2046 |
- -e 's:-lcblas:-l@LIBNAME@:g' \ |
2047 |
- CBLAS/cblas.pc.in || die |
2048 |
- sed -i \ |
2049 |
- -e 's:cblas):${LIBNAME}):' \ |
2050 |
- CBLAS/testing/CMakeLists.txt || die |
2051 |
- sed -i \ |
2052 |
- -e 's:BINARY_DIR}/cblas:BINARY_DIR}/${PROFNAME}:' \ |
2053 |
- -e '/install/s:include):include/${PROFNAME}):g' \ |
2054 |
- CBLAS/CMakeLists.txt || die |
2055 |
-} |
2056 |
- |
2057 |
-src_configure() { |
2058 |
- cblas_configure() { |
2059 |
- local FCFLAGS="${FCFLAGS}" |
2060 |
- append-fflags $($(tc-getPKG_CONFIG) --cflags ${blas_profname}) |
2061 |
- append-fflags $(get_abi_CFLAGS) |
2062 |
- append-fflags $(numeric-int64_get_fortran_int64_abi_fflags) |
2063 |
- |
2064 |
- local blas_profname=$(numeric-int64_get_blas_alternative) |
2065 |
- local profname=$(numeric-int64_get_module_name) |
2066 |
- local libname="${profname//-/_}" |
2067 |
- |
2068 |
- local mycmakeargs=( |
2069 |
- -Wno-dev |
2070 |
- -DCBLAS=ON |
2071 |
- -DPROFNAME="${profname}" |
2072 |
- -DLIBNAME="${libname}" |
2073 |
- -DUSE_OPTIMIZED_BLAS=ON |
2074 |
- -DCMAKE_C_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CFLAGS}" |
2075 |
- -DCMAKE_CXX_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CXXFLAGS}" |
2076 |
- -DCMAKE_Fortran_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) $(get_abi_CFLAGS) $(numeric-int64_get_fortran_int64_abi_fflags) ${FCFLAGS}" |
2077 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
2078 |
- -DBUILD_TESTING=$(usex test) |
2079 |
- ) |
2080 |
- if $(numeric-int64_is_static_build); then |
2081 |
- mycmakeargs+=( |
2082 |
- -DBUILD_SHARED_LIBS=OFF |
2083 |
- -DBUILD_STATIC_LIBS=ON |
2084 |
- ) |
2085 |
- else |
2086 |
- mycmakeargs+=( |
2087 |
- -DBUILD_SHARED_LIBS=ON |
2088 |
- -DBUILD_STATIC_LIBS=OFF |
2089 |
- ) |
2090 |
- fi |
2091 |
- cmake-utils_src_configure |
2092 |
- } |
2093 |
- numeric-int64-multibuild_foreach_all_abi_variants cblas_configure |
2094 |
-} |
2095 |
- |
2096 |
-src_compile() { |
2097 |
- local each target_dirs=( CBLAS ) |
2098 |
- use test && target_dirs+=( testing ) |
2099 |
- for each in ${target_dirs[@]}; do |
2100 |
- numeric-int64-multibuild_foreach_all_abi_variants \ |
2101 |
- cmake-utils_src_compile -C ${each} |
2102 |
- done |
2103 |
- |
2104 |
-} |
2105 |
- |
2106 |
-src_test() { |
2107 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
2108 |
-} |
2109 |
- |
2110 |
-src_install() { |
2111 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install -C CBLAS |
2112 |
- numeric-int64-multibuild_install_alternative cblas reference /usr/include/cblas.h refcblas/cblas.h |
2113 |
- multilib_install_wrappers |
2114 |
-} |
2115 |
|
2116 |
diff --git a/sci-libs/cblas-reference/files/lapack-fix-build-system.patch b/sci-libs/cblas-reference/files/lapack-fix-build-system.patch |
2117 |
deleted file mode 100644 |
2118 |
index a187dac21..000000000 |
2119 |
--- a/sci-libs/cblas-reference/files/lapack-fix-build-system.patch |
2120 |
+++ /dev/null |
2121 |
@@ -1,124 +0,0 @@ |
2122 |
- BLAS/CMakeLists.txt | 2 +- |
2123 |
- BLAS/blas.pc.in | 6 ++++-- |
2124 |
- CBLAS/CMakeLists.txt | 2 +- |
2125 |
- CBLAS/cblas.pc.in | 9 ++++++--- |
2126 |
- CMakeLists.txt | 2 +- |
2127 |
- LAPACKE/CMakeLists.txt | 2 +- |
2128 |
- LAPACKE/lapacke.pc.in | 6 ++++-- |
2129 |
- lapack.pc.in | 6 ++++-- |
2130 |
- 8 files changed, 22 insertions(+), 13 deletions(-) |
2131 |
- |
2132 |
-diff --git a/BLAS/CMakeLists.txt b/BLAS/CMakeLists.txt |
2133 |
-index 45e68e9..56c8354 100644 |
2134 |
---- a/BLAS/CMakeLists.txt |
2135 |
-+++ b/BLAS/CMakeLists.txt |
2136 |
-@@ -2,7 +2,7 @@ add_subdirectory(SRC) |
2137 |
- if(BUILD_TESTING) |
2138 |
- add_subdirectory(TESTING) |
2139 |
- endif(BUILD_TESTING) |
2140 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc) |
2141 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY) |
2142 |
- install(FILES |
2143 |
- ${CMAKE_CURRENT_BINARY_DIR}/blas.pc |
2144 |
- DESTINATION ${PKG_CONFIG_DIR} |
2145 |
-diff --git a/BLAS/blas.pc.in b/BLAS/blas.pc.in |
2146 |
-index 845a25c..7a53ea5 100644 |
2147 |
---- a/BLAS/blas.pc.in |
2148 |
-+++ b/BLAS/blas.pc.in |
2149 |
-@@ -1,5 +1,7 @@ |
2150 |
--prefix=@prefix@ |
2151 |
--libdir=@libdir@ |
2152 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2153 |
-+exec_prefix=${prefix} |
2154 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2155 |
-+includedir=${prefix}/include |
2156 |
- |
2157 |
- Name: blas |
2158 |
- Description: Basic Linear Algebra Subprograms F77 reference implementations |
2159 |
-diff --git a/CBLAS/CMakeLists.txt b/CBLAS/CMakeLists.txt |
2160 |
-index 98b481f..8f98b04 100644 |
2161 |
---- a/CBLAS/CMakeLists.txt |
2162 |
-+++ b/CBLAS/CMakeLists.txt |
2163 |
-@@ -71,7 +71,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CMAKE/cblas-config-build.cmake.in |
2164 |
- ${LAPACK_BINARY_DIR}/cblas-config.cmake @ONLY) |
2165 |
- |
2166 |
- |
2167 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc) |
2168 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc @ONLY) |
2169 |
- install(FILES |
2170 |
- ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc |
2171 |
- DESTINATION ${PKG_CONFIG_DIR} |
2172 |
-diff --git a/CBLAS/cblas.pc.in b/CBLAS/cblas.pc.in |
2173 |
-index ee20206..14a141e 100644 |
2174 |
---- a/CBLAS/cblas.pc.in |
2175 |
-+++ b/CBLAS/cblas.pc.in |
2176 |
-@@ -1,9 +1,12 @@ |
2177 |
--prefix=@prefix@ |
2178 |
--libdir=@libdir@ |
2179 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2180 |
-+exec_prefix=${prefix} |
2181 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2182 |
-+includedir=${prefix}/include/@PROFNAME@ |
2183 |
- |
2184 |
--Name: lapacke |
2185 |
-+Name: cblas-reference |
2186 |
- Description: C Standard Interface to BLAS Linear Algebra PACKage |
2187 |
- Version: @LAPACK_VERSION@ |
2188 |
- URL: http://www.netlib.org/lapack/ |
2189 |
- Libs: -L${libdir} -lcblas |
2190 |
-+Cflags: -I${includedir} |
2191 |
- Requires: blas |
2192 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
2193 |
-index ab29bd2..31b878a 100644 |
2194 |
---- a/CMakeLists.txt |
2195 |
-+++ b/CMakeLists.txt |
2196 |
-@@ -333,7 +333,7 @@ configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-build.cmake.in |
2197 |
- ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY) |
2198 |
- |
2199 |
- |
2200 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc) |
2201 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY) |
2202 |
- install(FILES |
2203 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc |
2204 |
- DESTINATION ${PKG_CONFIG_DIR} |
2205 |
-diff --git a/LAPACKE/CMakeLists.txt b/LAPACKE/CMakeLists.txt |
2206 |
-index 008f24c..d8c4cb0 100644 |
2207 |
---- a/LAPACKE/CMakeLists.txt |
2208 |
-+++ b/LAPACKE/CMakeLists.txt |
2209 |
-@@ -65,7 +65,7 @@ if(BUILD_TESTING) |
2210 |
- endif(BUILD_TESTING) |
2211 |
- |
2212 |
- |
2213 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc) |
2214 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc @ONLY) |
2215 |
- install(FILES |
2216 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc |
2217 |
- DESTINATION ${PKG_CONFIG_DIR} |
2218 |
-diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in |
2219 |
-index 75e6871..ce5201b 100644 |
2220 |
---- a/LAPACKE/lapacke.pc.in |
2221 |
-+++ b/LAPACKE/lapacke.pc.in |
2222 |
-@@ -1,5 +1,7 @@ |
2223 |
--prefix=@prefix@ |
2224 |
--libdir=@libdir@ |
2225 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2226 |
-+exec_prefix=${prefix} |
2227 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2228 |
-+includedir=${prefix}/include |
2229 |
- |
2230 |
- Name: lapacke |
2231 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
2232 |
-diff --git a/lapack.pc.in b/lapack.pc.in |
2233 |
-index d34c870..0d0750f 100644 |
2234 |
---- a/lapack.pc.in |
2235 |
-+++ b/lapack.pc.in |
2236 |
-@@ -1,5 +1,7 @@ |
2237 |
--prefix=@prefix@ |
2238 |
--libdir=@libdir@ |
2239 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2240 |
-+exec_prefix=${prefix} |
2241 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2242 |
-+includedir=${prefix}/include |
2243 |
- |
2244 |
- Name: lapack |
2245 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
2246 |
|
2247 |
diff --git a/sci-libs/cblas-reference/files/lapack-reference-3.7.0-fix-build-system.patch b/sci-libs/cblas-reference/files/lapack-reference-3.7.0-fix-build-system.patch |
2248 |
deleted file mode 100644 |
2249 |
index 40f3aaa02..000000000 |
2250 |
--- a/sci-libs/cblas-reference/files/lapack-reference-3.7.0-fix-build-system.patch |
2251 |
+++ /dev/null |
2252 |
@@ -1,61 +0,0 @@ |
2253 |
-diff --git a/BLAS/blas.pc.in b/BLAS/blas.pc.in |
2254 |
-index 7fd6f1e..e52f3ad 100644 |
2255 |
---- a/BLAS/blas.pc.in |
2256 |
-+++ b/BLAS/blas.pc.in |
2257 |
-@@ -1,5 +1,7 @@ |
2258 |
--prefix=@prefix@ |
2259 |
--libdir=@libdir@ |
2260 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2261 |
-+exec_prefix=${prefix} |
2262 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2263 |
-+includedir=${prefix}/include |
2264 |
- |
2265 |
- Name: BLAS |
2266 |
- Description: FORTRAN reference implementation of BLAS Basic Linear Algebra Subprograms |
2267 |
-diff --git a/CBLAS/cblas.pc.in b/CBLAS/cblas.pc.in |
2268 |
-index 4a938fe..269a254 100644 |
2269 |
---- a/CBLAS/cblas.pc.in |
2270 |
-+++ b/CBLAS/cblas.pc.in |
2271 |
-@@ -1,9 +1,12 @@ |
2272 |
--prefix=@prefix@ |
2273 |
--libdir=@libdir@ |
2274 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2275 |
-+exec_prefix=${prefix} |
2276 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2277 |
-+includedir=${prefix}/include/@PROFNAME@ |
2278 |
- |
2279 |
- Name: CBLAS |
2280 |
- Description: C Standard Interface to BLAS Basic Linear Algebra Subprograms |
2281 |
- Version: @LAPACK_VERSION@ |
2282 |
- URL: http://www.netlib.org/blas/#_cblas |
2283 |
-+Cflags: -I${includedir} |
2284 |
- Libs: -L${libdir} -lcblas |
2285 |
- Requires: blas |
2286 |
-diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in |
2287 |
-index 028f8da..dc092b1 100644 |
2288 |
---- a/LAPACKE/lapacke.pc.in |
2289 |
-+++ b/LAPACKE/lapacke.pc.in |
2290 |
-@@ -1,5 +1,7 @@ |
2291 |
--prefix=@prefix@ |
2292 |
--libdir=@libdir@ |
2293 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2294 |
-+exec_prefix=${prefix} |
2295 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2296 |
-+includedir=${prefix}/include |
2297 |
- |
2298 |
- Name: LAPACKE |
2299 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
2300 |
-diff --git a/lapack.pc.in b/lapack.pc.in |
2301 |
-index 878efc2..2cca4c2 100644 |
2302 |
---- a/lapack.pc.in |
2303 |
-+++ b/lapack.pc.in |
2304 |
-@@ -1,5 +1,7 @@ |
2305 |
--prefix=@prefix@ |
2306 |
--libdir=@libdir@ |
2307 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2308 |
-+exec_prefix=${prefix} |
2309 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2310 |
-+includedir=${prefix}/include |
2311 |
- |
2312 |
- Name: LAPACK |
2313 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
2314 |
|
2315 |
diff --git a/sci-libs/cblas-reference/metadata.xml b/sci-libs/cblas-reference/metadata.xml |
2316 |
deleted file mode 100644 |
2317 |
index eb9d2972b..000000000 |
2318 |
--- a/sci-libs/cblas-reference/metadata.xml |
2319 |
+++ /dev/null |
2320 |
@@ -1,21 +0,0 @@ |
2321 |
-<?xml version="1.0" encoding="UTF-8"?> |
2322 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
2323 |
-<pkgmetadata> |
2324 |
- <maintainer type="project"> |
2325 |
- <email>sci@g.o</email> |
2326 |
- <name>Gentoo Science Project</name> |
2327 |
- </maintainer> |
2328 |
- <longdescription lang="en"> |
2329 |
-The BLAS (Basic Linear Algebra Subprograms) are high quality "building |
2330 |
-block" routines for performing basic vector and matrix operations. Level 1 |
2331 |
-BLAS do vector-vector operations, Level 2 BLAS do matrix-vector operations, |
2332 |
-and Level 3 BLAS do matrix-matrix operations. Because the BLAS are |
2333 |
-efficient, portable, and widely available, they're commonly used in the |
2334 |
-development of high quality linear algebra software, LAPACK for |
2335 |
-example. This packages implements the reference C library as a wrapper |
2336 |
-to the FORTRAN 77 BLAS library. |
2337 |
-</longdescription> |
2338 |
- <use> |
2339 |
- <flag name="int64">Build the 64 bits integer library</flag> |
2340 |
- </use> |
2341 |
-</pkgmetadata> |
2342 |
|
2343 |
diff --git a/sci-libs/lapack-reference/files/3.3.1-blas-libs.patch b/sci-libs/lapack-reference/files/3.3.1-blas-libs.patch |
2344 |
deleted file mode 100644 |
2345 |
index 95a640d86..000000000 |
2346 |
--- a/sci-libs/lapack-reference/files/3.3.1-blas-libs.patch |
2347 |
+++ /dev/null |
2348 |
@@ -1,35 +0,0 @@ |
2349 |
-Index: CMakeLists.txt |
2350 |
-=================================================================== |
2351 |
---- CMakeLists.txt (revision 975) |
2352 |
-+++ CMakeLists.txt (working copy) |
2353 |
-@@ -68,24 +68,24 @@ |
2354 |
- option(USE_OPTIMIZED_BLAS "Whether or not to use an optimized BLAS library instead of included netlib BLAS" OFF) |
2355 |
- |
2356 |
- # Check the usage of the user provided BLAS libraries |
2357 |
--if(BLAS_LIBRAIRIES) |
2358 |
-+if(BLAS_LIBRARIES) |
2359 |
- include(CheckFortranFunctionExists) |
2360 |
-- set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRAIRIES}) |
2361 |
-+ set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRARIES}) |
2362 |
- CHECK_FORTRAN_FUNCTION_EXISTS("dgemm" BLAS_FOUND) |
2363 |
- unset( CMAKE_REQUIRED_LIBRARIES ) |
2364 |
- if(BLAS_FOUND) |
2365 |
-- message(STATUS "--> BLAS supplied by user is WORKING, will use ${BLAS_LIBRAIRIES}.") |
2366 |
-+ message(STATUS "--> BLAS supplied by user is WORKING, will use ${BLAS_LIBRARIES}.") |
2367 |
- else(BLAS_FOUND) |
2368 |
-- message(ERROR "--> BLAS supplied by user is not WORKING, CANNOT USE ${BLAS_LIBRAIRIES}.") |
2369 |
-+ message(ERROR "--> BLAS supplied by user is not WORKING, CANNOT USE ${BLAS_LIBRARIES}.") |
2370 |
- message(ERROR "--> Will use REFERENCE BLAS (by default)") |
2371 |
-- message(ERROR "--> Or Correct your BLAS_LIBRAIRIES entry ") |
2372 |
-+ message(ERROR "--> Or Correct your BLAS_LIBRARIES entry ") |
2373 |
- message(ERROR "--> Or Consider checking USE_OPTIMIZED_BLAS") |
2374 |
- endif(BLAS_FOUND) |
2375 |
- |
2376 |
- # User did not provide a BLAS Library but specified to search for one |
2377 |
- elseif( USE_OPTIMIZED_BLAS ) |
2378 |
- find_package( BLAS ) |
2379 |
--endif (BLAS_LIBRAIRIES) |
2380 |
-+endif (BLAS_LIBRARIES) |
2381 |
- |
2382 |
- # Neither user specified or optimized BLAS libraries can be used |
2383 |
- if(NOT BLAS_FOUND) |
2384 |
|
2385 |
diff --git a/sci-libs/lapack-reference/files/3.3.1-xblas-libs.patch b/sci-libs/lapack-reference/files/3.3.1-xblas-libs.patch |
2386 |
deleted file mode 100644 |
2387 |
index 382529e12..000000000 |
2388 |
--- a/sci-libs/lapack-reference/files/3.3.1-xblas-libs.patch |
2389 |
+++ /dev/null |
2390 |
@@ -1,44 +0,0 @@ |
2391 |
-Index: SRC/CMakeLists.txt |
2392 |
-=================================================================== |
2393 |
---- SRC/CMakeLists.txt (revision 975) |
2394 |
-+++ SRC/CMakeLists.txt (working copy) |
2395 |
-@@ -373,7 +373,7 @@ |
2396 |
- zla_lin_berr.f zlarscl2.f zlascl2.f zla_wwaddw.f) |
2397 |
- |
2398 |
- |
2399 |
--if( USEXBLAS) |
2400 |
-+if( USE_XBLAS) |
2401 |
- set(ALLXOBJ ${SXLASRC} ${DXLASRC} ${CXLASRC} ${ZXLASRC} ${ALLXAUX}) |
2402 |
- endif() |
2403 |
- |
2404 |
-@@ -392,5 +392,5 @@ |
2405 |
- set(ALLOBJ ${ZLASRC} ${ALLAUX} ${DZLAUX} ${ZCLASRC}) |
2406 |
- endif() |
2407 |
- add_library(lapack ${ALLOBJ} ${ALLXOBJ}) |
2408 |
--target_link_libraries(lapack ${BLAS_LIBRARIES}) |
2409 |
-+target_link_libraries(lapack ${BLAS_LIBRARIES} ${XBLAS_LIBRARY}) |
2410 |
- lapack_install_library(lapack) |
2411 |
-Index: CMakeLists.txt |
2412 |
-=================================================================== |
2413 |
---- CMakeLists.txt (revision 975) |
2414 |
-+++ CMakeLists.txt (working copy) |
2415 |
-@@ -67,6 +67,7 @@ |
2416 |
- |
2417 |
- option(USE_OPTIMIZED_BLAS "Whether or not to use an optimized BLAS library instead of included netlib BLAS" OFF) |
2418 |
- |
2419 |
-+ |
2420 |
- # Check the usage of the user provided BLAS libraries |
2421 |
- if(BLAS_LIBRAIRIES) |
2422 |
- include(CheckFortranFunctionExists) |
2423 |
-@@ -103,6 +104,11 @@ |
2424 |
- "${CMAKE_SHARED_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}" |
2425 |
- CACHE STRING "Linker flags for shared libs" FORCE) |
2426 |
- endif( NOT BLAS_FOUND ) |
2427 |
-+ |
2428 |
-+option(USE_XBLAS "Build extended precision (needs XBLAS)" OFF) |
2429 |
-+if (USE_XBLAS) |
2430 |
-+ find_library(XBLAS_LIBRARY NAMES xblas) |
2431 |
-+endif(USE_XBLAS) |
2432 |
- |
2433 |
- add_subdirectory(SRC) |
2434 |
- if(BUILD_TESTING) |
2435 |
|
2436 |
diff --git a/sci-libs/lapack-reference/files/lapack-3.4.1-cmake.patch b/sci-libs/lapack-reference/files/lapack-3.4.1-cmake.patch |
2437 |
deleted file mode 100644 |
2438 |
index 78dece8ed..000000000 |
2439 |
--- a/sci-libs/lapack-reference/files/lapack-3.4.1-cmake.patch |
2440 |
+++ /dev/null |
2441 |
@@ -1,208 +0,0 @@ |
2442 |
-Index: CMakeLists.txt |
2443 |
-=================================================================== |
2444 |
---- CMakeLists.txt (revision 1294) |
2445 |
-+++ CMakeLists.txt (working copy) |
2446 |
-@@ -94,10 +94,6 @@ |
2447 |
- # Precision to build |
2448 |
- # By default all precisions are generated |
2449 |
- |
2450 |
--option(BUILD_SINGLE "Build LAPACK Single Precision" ON) |
2451 |
--option(BUILD_DOUBLE "Build LAPACK Double Precision" ON) |
2452 |
--option(BUILD_COMPLEX "Build LAPACK Complex Precision" ON) |
2453 |
--option(BUILD_COMPLEX16 "Build LAPACK Double Complex Precision" ON) |
2454 |
- |
2455 |
- # -------------------------------------------------- |
2456 |
- # Subdirectories that need to be processed |
2457 |
-@@ -147,7 +143,49 @@ |
2458 |
- find_library(XBLAS_LIBRARY NAMES xblas) |
2459 |
- endif(USE_XBLAS) |
2460 |
- |
2461 |
--add_subdirectory(SRC) |
2462 |
-+option(USE_OPTIMIZED_LAPACK "Whether or not to use an optimized LAPACK library instead of included netlib LAPACK" OFF) |
2463 |
-+ |
2464 |
-+# Check the usage of the user provided LAPACK libraries |
2465 |
-+if(LAPACK_LIBRARIES) |
2466 |
-+ include(CheckFortranFunctionExists) |
2467 |
-+ set(CMAKE_REQUIRED_LIBRARIES ${LAPACK_LIBRARIES}) |
2468 |
-+ CHECK_FORTRAN_FUNCTION_EXISTS("dpotrf" LAPACK_FOUND) |
2469 |
-+ unset( CMAKE_REQUIRED_LIBRARIES ) |
2470 |
-+ if(LAPACK_FOUND) |
2471 |
-+ message(STATUS "--> LAPACK supplied by user is WORKING, will use ${LAPACK_LIBRARIES}.") |
2472 |
-+ else(LAPACK_FOUND) |
2473 |
-+ message(ERROR "--> LAPACK supplied by user is not WORKING, CANNOT USE $LAPACK_LIBRARIES}.") |
2474 |
-+ message(ERROR "--> Will use REFERENCE LAPACK (by default)") |
2475 |
-+ message(ERROR "--> Or Correct your LAPACK_LIBRARIES entry ") |
2476 |
-+ message(ERROR "--> Or Consider checking USE_OPTIMIZED_LAPACK") |
2477 |
-+ endif(LAPACK_FOUND) |
2478 |
-+ |
2479 |
-+ # User did not provide a LAPACK Library but specified to search for one |
2480 |
-+elseif( USE_OPTIMIZED_LAPACK ) |
2481 |
-+ find_package( LAPACK ) |
2482 |
-+endif (LAPACK_LIBRARIES) |
2483 |
-+ |
2484 |
-+# Neither user specified or optimized LAPACK libraries can be used |
2485 |
-+if(NOT LAPACK_FOUND) |
2486 |
-+ message(STATUS "Using supplied NETLIB LAPACK implementation") |
2487 |
-+ set( LAPACK_LIBRARIES lapack ) |
2488 |
-+ option(BUILD_SINGLE "Build LAPACK Single Precision" ON) |
2489 |
-+ option(BUILD_DOUBLE "Build LAPACK Double Precision" ON) |
2490 |
-+ option(BUILD_COMPLEX "Build LAPACK Complex Precision" ON) |
2491 |
-+ option(BUILD_COMPLEX16 "Build LAPACK Double Complex Precision" ON) |
2492 |
-+ add_subdirectory(SRC) |
2493 |
-+else() |
2494 |
-+ set( CMAKE_EXE_LINKER_FLAGS |
2495 |
-+ "${CMAKE_EXE_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}" |
2496 |
-+ CACHE STRING "Linker flags for executables" FORCE) |
2497 |
-+ set( CMAKE_MODULE_LINKER_FLAGS |
2498 |
-+ "${CMAKE_MODULE_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}" |
2499 |
-+ CACHE STRING "Linker flags for modules" FORCE) |
2500 |
-+ set( CMAKE_SHARED_LINKER_FLAGS |
2501 |
-+ "${CMAKE_SHARED_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS}" |
2502 |
-+ CACHE STRING "Linker flags for shared libs" FORCE) |
2503 |
-+endif( NOT LAPACK_FOUND ) |
2504 |
-+ |
2505 |
- if(BUILD_TESTING) |
2506 |
- add_subdirectory(TESTING) |
2507 |
- endif(BUILD_TESTING) |
2508 |
-@@ -155,6 +193,10 @@ |
2509 |
- # -------------------------------------------------- |
2510 |
- # LAPACKE |
2511 |
- option(LAPACKE "Build LAPACKE" OFF) |
2512 |
-+if(LAPACKE) |
2513 |
-+ add_subdirectory(lapacke) |
2514 |
-+endif(LAPACKE) |
2515 |
-+ |
2516 |
- # LAPACKE has also the interface to some routines from tmglib, |
2517 |
- # if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE |
2518 |
- option(LAPACKE_WITH_TMG "Build LAPACKE with tmglib routines" OFF) |
2519 |
-@@ -162,9 +204,6 @@ |
2520 |
- option(LAPACKE "Build LAPACKE" ON) |
2521 |
- endif(LAPACKE_WITH_TMG) |
2522 |
- |
2523 |
--if(LAPACKE) |
2524 |
-- add_subdirectory(lapacke) |
2525 |
--endif(LAPACKE) |
2526 |
- |
2527 |
- # -------------------------------------------------- |
2528 |
- # CPACK Packaging |
2529 |
-@@ -202,20 +241,24 @@ |
2530 |
- OPTION(BUILD_STATIC_LIBS "Build static libraries" ON ) |
2531 |
- #OPTION(BUILD_SHARED_LIBS "Build shared libraries" ON ) |
2532 |
- |
2533 |
--if( NOT BLAS_FOUND ) |
2534 |
-- if(LAPACKE) |
2535 |
-- export(TARGETS blas lapack tmglib lapacke FILE lapack-targets.cmake) |
2536 |
-- else (LAPACKE) |
2537 |
-- export(TARGETS blas lapack tmglib FILE lapack-targets.cmake) |
2538 |
-- endif(LAPACKE) |
2539 |
--else( NOT BLAS_FOUND ) |
2540 |
-- if(LAPACKE) |
2541 |
-- export(TARGETS lapack tmglib lapacke FILE lapack-targets.cmake) |
2542 |
-- else (LAPACKE) |
2543 |
-- export(TARGETS lapack tmglib FILE lapack-targets.cmake) |
2544 |
-- endif(LAPACKE) |
2545 |
--endif( NOT BLAS_FOUND ) |
2546 |
-+if(NOT BLAS_FOUND) |
2547 |
-+ set(ALL_TARGETS ${ALL_TARGETS} blas) |
2548 |
-+endif(NOT BLAS_FOUND) |
2549 |
- |
2550 |
-+if(NOT LAPACK_FOUND) |
2551 |
-+ set(ALL_TARGETS ${ALL_TARGETS} lapack) |
2552 |
-+endif(NOT LAPACK_FOUND) |
2553 |
-+ |
2554 |
-+if(BUILD_TESTING OR LAPACKE_WITH_TMG) |
2555 |
-+ set(ALL_TARGETS ${ALL_TARGETS} tmglib) |
2556 |
-+endif(BUILD_TESTING OR LAPACKE_WITH_TMG) |
2557 |
-+ |
2558 |
-+if(LAPACKE) |
2559 |
-+ set(ALL_TARGETS ${ALL_TARGETS} lapacke) |
2560 |
-+endif(LAPACKE) |
2561 |
-+ |
2562 |
-+export(TARGETS ${ALL_TARGETS} FILE lapack-targets.cmake) |
2563 |
-+ |
2564 |
- configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-version.cmake.in |
2565 |
- ${LAPACK_BINARY_DIR}/lapack-config-version.cmake @ONLY) |
2566 |
- configure_file(${LAPACK_SOURCE_DIR}/CMAKE/lapack-config-build.cmake.in |
2567 |
-Index: lapacke/example/CMakeLists.txt |
2568 |
-=================================================================== |
2569 |
---- lapacke/example/CMakeLists.txt (revision 1294) |
2570 |
-+++ lapacke/example/CMakeLists.txt (working copy) |
2571 |
-@@ -1,8 +1,8 @@ |
2572 |
- add_executable(xexample_DGESV_rowmajor example_DGESV_rowmajor.c) |
2573 |
- add_executable(xexample_ZGESV_rowmajor example_ZGESV_rowmajor.c) |
2574 |
- |
2575 |
--target_link_libraries(xexample_DGESV_rowmajor lapacke lapack ${BLAS_LIBRARIES}) |
2576 |
--target_link_libraries(xexample_ZGESV_rowmajor lapacke lapack ${BLAS_LIBRARIES}) |
2577 |
-+target_link_libraries(xexample_DGESV_rowmajor lapacke ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) |
2578 |
-+target_link_libraries(xexample_ZGESV_rowmajor lapacke ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) |
2579 |
- |
2580 |
- add_test(example_DGESV_rowmajor ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/xexample_DGESV_rowmajor) |
2581 |
- add_test(example_ZGESV_rowmajor ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/xexample_ZGESV_rowmajor) |
2582 |
-Index: lapacke/CMakeLists.txt |
2583 |
-=================================================================== |
2584 |
---- lapacke/CMakeLists.txt (revision 1294) |
2585 |
-+++ lapacke/CMakeLists.txt (working copy) |
2586 |
-@@ -45,14 +45,14 @@ |
2587 |
- |
2588 |
- if (USE_XBLAS) |
2589 |
- add_library(lapacke ${SRC_OBJ} ${SRCX_OBJ} ${UTILS_OBJ}) |
2590 |
-- target_link_libraries(lapacke lapack ${BLAS_LIBRARIES} ${XBLAS_LIBRARY}) |
2591 |
-+ target_link_libraries(lapacke ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ${XBLAS_LIBRARY}) |
2592 |
- else (USE_XBLAS) |
2593 |
- if (LAPACKE_WITH_TMG) |
2594 |
- add_library(lapacke ${SRC_OBJ} ${MATGEN_OBJ} ${UTILS_OBJ}) |
2595 |
-- target_link_libraries(lapacke tmglib lapack ${BLAS_LIBRARIES} ) |
2596 |
-+ target_link_libraries(lapacke tmglib ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) |
2597 |
- else (LAPACKE_WITH_TMG) |
2598 |
- add_library(lapacke ${SRC_OBJ} ${UTILS_OBJ}) |
2599 |
-- target_link_libraries(lapacke lapack ${BLAS_LIBRARIES} ) |
2600 |
-+ target_link_libraries(lapacke ${LAPACK_LIBRARIES} ${BLAS_LIBRARIES}) |
2601 |
- endif(LAPACKE_WITH_TMG) |
2602 |
- endif(USE_XBLAS) |
2603 |
- |
2604 |
-Index: TESTING/LIN/CMakeLists.txt |
2605 |
-=================================================================== |
2606 |
---- TESTING/LIN/CMakeLists.txt (revision 1294) |
2607 |
-+++ TESTING/LIN/CMakeLists.txt (working copy) |
2608 |
-@@ -193,7 +193,7 @@ |
2609 |
- |
2610 |
- macro(add_lin_executable name ) |
2611 |
- add_executable(${name} ${ARGN}) |
2612 |
-- target_link_libraries(${name} tmglib lapack) |
2613 |
-+ target_link_libraries(${name} tmglib ${LAPACK_LIBRARIES}) |
2614 |
- endmacro(add_lin_executable) |
2615 |
- |
2616 |
- IF(BUILD_SINGLE) |
2617 |
-Index: TESTING/EIG/CMakeLists.txt |
2618 |
-=================================================================== |
2619 |
---- TESTING/EIG/CMakeLists.txt (revision 1294) |
2620 |
-+++ TESTING/EIG/CMakeLists.txt (working copy) |
2621 |
-@@ -119,7 +119,7 @@ |
2622 |
- |
2623 |
- macro(add_eig_executable name ) |
2624 |
- add_executable(${name} ${ARGN}) |
2625 |
-- target_link_libraries(${name} tmglib lapack ) |
2626 |
-+ target_link_libraries(${name} tmglib ${LAPACK_LIBRARIES}) |
2627 |
- endmacro(add_eig_executable) |
2628 |
- |
2629 |
- if (BUILD_SINGLE) |
2630 |
-Index: TESTING/MATGEN/CMakeLists.txt |
2631 |
-=================================================================== |
2632 |
---- TESTING/MATGEN/CMakeLists.txt (revision 1294) |
2633 |
-+++ TESTING/MATGEN/CMakeLists.txt (working copy) |
2634 |
-@@ -64,12 +64,12 @@ |
2635 |
- set(ALLOBJ ${ALLOBJ} ${ZMATGEN} ${DZATGEN}) |
2636 |
- endif() |
2637 |
- |
2638 |
--list(REMOVE_DUPLICATES ALLOBJ) |
2639 |
-- |
2640 |
- if (NOT ALLOBJ) |
2641 |
- set(ALLOBJ ${SMATGEN} ${CMATGEN} ${SCATGEN} ${DMATGEN} ${ZMATGEN} |
2642 |
- ${DZATGEN}) |
2643 |
-+else() |
2644 |
-+ list(REMOVE_DUPLICATES ALLOBJ) |
2645 |
- endif() |
2646 |
- add_library(tmglib ${ALLOBJ} ) |
2647 |
--target_link_libraries(tmglib lapack) |
2648 |
-+target_link_libraries(tmglib ${LAPACK_LIBRARIES}) |
2649 |
- lapack_install_library(tmglib) |
2650 |
|
2651 |
diff --git a/sci-libs/lapack-reference/files/lapack-3.6.1-fix-build-system.patch b/sci-libs/lapack-reference/files/lapack-3.6.1-fix-build-system.patch |
2652 |
deleted file mode 100644 |
2653 |
index b16cb3e19..000000000 |
2654 |
--- a/sci-libs/lapack-reference/files/lapack-3.6.1-fix-build-system.patch |
2655 |
+++ /dev/null |
2656 |
@@ -1,88 +0,0 @@ |
2657 |
---- lapack-3.6.1/BLAS/blas.pc.in |
2658 |
-+++ lapack-3.6.1/BLAS/blas.pc.in |
2659 |
-@@ -1,5 +1,7 @@ |
2660 |
- prefix=@CMAKE_INSTALL_PREFIX@ |
2661 |
-+exec_prefix=${prefix} |
2662 |
- libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ |
2663 |
-+includedir=${prefix}/include |
2664 |
- |
2665 |
- Name: blas |
2666 |
- Description: Basic Linear Algebra Subprograms F77 reference implementations |
2667 |
---- lapack-3.6.1/BLAS/CMakeLists.txt |
2668 |
-+++ lapack-3.6.1/BLAS/CMakeLists.txt |
2669 |
-@@ -2,7 +2,7 @@ |
2670 |
- if(BUILD_TESTING) |
2671 |
- add_subdirectory(TESTING) |
2672 |
- endif(BUILD_TESTING) |
2673 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc) |
2674 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY) |
2675 |
- install(FILES |
2676 |
- ${CMAKE_CURRENT_BINARY_DIR}/blas.pc |
2677 |
- DESTINATION ${PKG_CONFIG_DIR} |
2678 |
---- lapack-3.6.1/CBLAS/cblas.pc.in |
2679 |
-+++ lapack-3.6.1/CBLAS/cblas.pc.in |
2680 |
-@@ -1,5 +1,7 @@ |
2681 |
--prefix=@prefix@ |
2682 |
--libdir=@libdir@ |
2683 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2684 |
-+exec_prefix=${prefix} |
2685 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2686 |
-+includedir=${prefix}/include |
2687 |
- |
2688 |
- Name: lapacke |
2689 |
- Description: C Standard Interface to BLAS Linear Algebra PACKage |
2690 |
---- lapack-3.6.1/CBLAS/CMakeLists.txt |
2691 |
-+++ lapack-3.6.1/CBLAS/CMakeLists.txt |
2692 |
-@@ -71,7 +71,7 @@ |
2693 |
- ${LAPACK_BINARY_DIR}/cblas-config.cmake @ONLY) |
2694 |
- |
2695 |
- |
2696 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc) |
2697 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc @ONLY) |
2698 |
- install(FILES |
2699 |
- ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc |
2700 |
- DESTINATION ${PKG_CONFIG_DIR} |
2701 |
---- lapack-3.6.1/CMakeLists.txt |
2702 |
-+++ lapack-3.6.1/CMakeLists.txt |
2703 |
-@@ -333,7 +333,7 @@ |
2704 |
- ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY) |
2705 |
- |
2706 |
- |
2707 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc) |
2708 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY) |
2709 |
- install(FILES |
2710 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc |
2711 |
- DESTINATION ${PKG_CONFIG_DIR} |
2712 |
---- lapack-3.6.1/LAPACKE/CMakeLists.txt |
2713 |
-+++ lapack-3.6.1/LAPACKE/CMakeLists.txt |
2714 |
-@@ -65,7 +65,7 @@ |
2715 |
- endif(BUILD_TESTING) |
2716 |
- |
2717 |
- |
2718 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc) |
2719 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc @ONLY) |
2720 |
- install(FILES |
2721 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc |
2722 |
- DESTINATION ${PKG_CONFIG_DIR} |
2723 |
---- lapack-3.6.1/LAPACKE/lapacke.pc.in |
2724 |
-+++ lapack-3.6.1/LAPACKE/lapacke.pc.in |
2725 |
-@@ -1,5 +1,7 @@ |
2726 |
--prefix=@prefix@ |
2727 |
--libdir=@libdir@ |
2728 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2729 |
-+exec_prefix=${prefix} |
2730 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2731 |
-+includedir=${prefix}/include |
2732 |
- |
2733 |
- Name: lapacke |
2734 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
2735 |
---- lapack-3.6.1/lapack.pc.in |
2736 |
-+++ lapack-3.6.1/lapack.pc.in |
2737 |
-@@ -1,5 +1,7 @@ |
2738 |
- prefix=@CMAKE_INSTALL_PREFIX@ |
2739 |
-+exec_prefix=${prefix} |
2740 |
- libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ |
2741 |
-+includedir=${prefix}/include |
2742 |
- |
2743 |
- Name: lapack |
2744 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
2745 |
|
2746 |
diff --git a/sci-libs/lapack-reference/files/lapack-fix-build-system.patch b/sci-libs/lapack-reference/files/lapack-fix-build-system.patch |
2747 |
deleted file mode 100644 |
2748 |
index 8661709d3..000000000 |
2749 |
--- a/sci-libs/lapack-reference/files/lapack-fix-build-system.patch |
2750 |
+++ /dev/null |
2751 |
@@ -1,92 +0,0 @@ |
2752 |
---- lapack-3.6.0/BLAS/blas.pc.in |
2753 |
-+++ lapack-3.6.0/BLAS/blas.pc.in |
2754 |
-@@ -1,5 +1,7 @@ |
2755 |
--prefix=@prefix@ |
2756 |
--libdir=@libdir@ |
2757 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2758 |
-+exec_prefix=${prefix} |
2759 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2760 |
-+includedir=${prefix}/include |
2761 |
- |
2762 |
- Name: blas |
2763 |
- Description: Basic Linear Algebra Subprograms F77 reference implementations |
2764 |
---- lapack-3.6.0/BLAS/CMakeLists.txt |
2765 |
-+++ lapack-3.6.0/BLAS/CMakeLists.txt |
2766 |
-@@ -2,7 +2,7 @@ |
2767 |
- if(BUILD_TESTING) |
2768 |
- add_subdirectory(TESTING) |
2769 |
- endif(BUILD_TESTING) |
2770 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc) |
2771 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY) |
2772 |
- install(FILES |
2773 |
- ${CMAKE_CURRENT_BINARY_DIR}/blas.pc |
2774 |
- DESTINATION ${PKG_CONFIG_DIR} |
2775 |
---- lapack-3.6.0/CBLAS/cblas.pc.in |
2776 |
-+++ lapack-3.6.0/CBLAS/cblas.pc.in |
2777 |
-@@ -1,5 +1,7 @@ |
2778 |
--prefix=@prefix@ |
2779 |
--libdir=@libdir@ |
2780 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2781 |
-+exec_prefix=${prefix} |
2782 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2783 |
-+includedir=${prefix}/include |
2784 |
- |
2785 |
- Name: lapacke |
2786 |
- Description: C Standard Interface to BLAS Linear Algebra PACKage |
2787 |
---- lapack-3.6.0/CBLAS/CMakeLists.txt |
2788 |
-+++ lapack-3.6.0/CBLAS/CMakeLists.txt |
2789 |
-@@ -71,7 +71,7 @@ |
2790 |
- ${LAPACK_BINARY_DIR}/cblas-config.cmake @ONLY) |
2791 |
- |
2792 |
- |
2793 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc) |
2794 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc @ONLY) |
2795 |
- install(FILES |
2796 |
- ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc |
2797 |
- DESTINATION ${PKG_CONFIG_DIR} |
2798 |
---- lapack-3.6.0/CMakeLists.txt |
2799 |
-+++ lapack-3.6.0/CMakeLists.txt |
2800 |
-@@ -333,7 +333,7 @@ |
2801 |
- ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY) |
2802 |
- |
2803 |
- |
2804 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc) |
2805 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY) |
2806 |
- install(FILES |
2807 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc |
2808 |
- DESTINATION ${PKG_CONFIG_DIR} |
2809 |
---- lapack-3.6.0/LAPACKE/CMakeLists.txt |
2810 |
-+++ lapack-3.6.0/LAPACKE/CMakeLists.txt |
2811 |
-@@ -65,7 +65,7 @@ |
2812 |
- endif(BUILD_TESTING) |
2813 |
- |
2814 |
- |
2815 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc) |
2816 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc @ONLY) |
2817 |
- install(FILES |
2818 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc |
2819 |
- DESTINATION ${PKG_CONFIG_DIR} |
2820 |
---- lapack-3.6.0/LAPACKE/lapacke.pc.in |
2821 |
-+++ lapack-3.6.0/LAPACKE/lapacke.pc.in |
2822 |
-@@ -1,5 +1,7 @@ |
2823 |
--prefix=@prefix@ |
2824 |
--libdir=@libdir@ |
2825 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2826 |
-+exec_prefix=${prefix} |
2827 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2828 |
-+includedir=${prefix}/include |
2829 |
- |
2830 |
- Name: lapacke |
2831 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
2832 |
---- lapack-3.6.0/lapack.pc.in |
2833 |
-+++ lapack-3.6.0/lapack.pc.in |
2834 |
-@@ -1,5 +1,7 @@ |
2835 |
--prefix=@prefix@ |
2836 |
--libdir=@libdir@ |
2837 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2838 |
-+exec_prefix=${prefix} |
2839 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2840 |
-+includedir=${prefix}/include |
2841 |
- |
2842 |
- Name: lapack |
2843 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
2844 |
|
2845 |
diff --git a/sci-libs/lapack-reference/files/lapack-reference-3.7.0-fix-build-system.patch b/sci-libs/lapack-reference/files/lapack-reference-3.7.0-fix-build-system.patch |
2846 |
deleted file mode 100644 |
2847 |
index 70f7cb0ee..000000000 |
2848 |
--- a/sci-libs/lapack-reference/files/lapack-reference-3.7.0-fix-build-system.patch |
2849 |
+++ /dev/null |
2850 |
@@ -1,56 +0,0 @@ |
2851 |
-diff --git a/BLAS/blas.pc.in b/BLAS/blas.pc.in |
2852 |
-index 7fd6f1e..e52f3ad 100644 |
2853 |
---- a/BLAS/blas.pc.in |
2854 |
-+++ b/BLAS/blas.pc.in |
2855 |
-@@ -1,5 +1,7 @@ |
2856 |
--prefix=@prefix@ |
2857 |
--libdir=@libdir@ |
2858 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2859 |
-+exec_prefix=${prefix} |
2860 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2861 |
-+includedir=${prefix}/include |
2862 |
- |
2863 |
- Name: BLAS |
2864 |
- Description: FORTRAN reference implementation of BLAS Basic Linear Algebra Subprograms |
2865 |
-diff --git a/CBLAS/cblas.pc.in b/CBLAS/cblas.pc.in |
2866 |
-index 4a938fe..311aed9 100644 |
2867 |
---- a/CBLAS/cblas.pc.in |
2868 |
-+++ b/CBLAS/cblas.pc.in |
2869 |
-@@ -1,5 +1,7 @@ |
2870 |
--prefix=@prefix@ |
2871 |
--libdir=@libdir@ |
2872 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2873 |
-+exec_prefix=${prefix} |
2874 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2875 |
-+includedir=${prefix}/include |
2876 |
- |
2877 |
- Name: CBLAS |
2878 |
- Description: C Standard Interface to BLAS Basic Linear Algebra Subprograms |
2879 |
-diff --git a/LAPACKE/lapacke.pc.in b/LAPACKE/lapacke.pc.in |
2880 |
-index 028f8da..dc092b1 100644 |
2881 |
---- a/LAPACKE/lapacke.pc.in |
2882 |
-+++ b/LAPACKE/lapacke.pc.in |
2883 |
-@@ -1,5 +1,7 @@ |
2884 |
--prefix=@prefix@ |
2885 |
--libdir=@libdir@ |
2886 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2887 |
-+exec_prefix=${prefix} |
2888 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2889 |
-+includedir=${prefix}/include |
2890 |
- |
2891 |
- Name: LAPACKE |
2892 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
2893 |
-diff --git a/lapack.pc.in b/lapack.pc.in |
2894 |
-index 878efc2..2cca4c2 100644 |
2895 |
---- a/lapack.pc.in |
2896 |
-+++ b/lapack.pc.in |
2897 |
-@@ -1,5 +1,7 @@ |
2898 |
--prefix=@prefix@ |
2899 |
--libdir=@libdir@ |
2900 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
2901 |
-+exec_prefix=${prefix} |
2902 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
2903 |
-+includedir=${prefix}/include |
2904 |
- |
2905 |
- Name: LAPACK |
2906 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
2907 |
|
2908 |
diff --git a/sci-libs/lapack-reference/lapack-reference-3.7.0-r100.ebuild b/sci-libs/lapack-reference/lapack-reference-3.7.0-r100.ebuild |
2909 |
deleted file mode 100644 |
2910 |
index d9378271a..000000000 |
2911 |
--- a/sci-libs/lapack-reference/lapack-reference-3.7.0-r100.ebuild |
2912 |
+++ /dev/null |
2913 |
@@ -1,121 +0,0 @@ |
2914 |
-# Copyright 1999-2017 Gentoo Foundation |
2915 |
-# Distributed under the terms of the GNU General Public License v2 |
2916 |
- |
2917 |
-EAPI=6 |
2918 |
- |
2919 |
-PYTHON_COMPAT=( python2_7 ) |
2920 |
- |
2921 |
-NUMERIC_MODULE_NAME="reflapack" |
2922 |
- |
2923 |
-inherit alternatives-2 cmake-utils eutils fortran-2 numeric-int64-multibuild python-any-r1 |
2924 |
- |
2925 |
-MY_PN=lapack |
2926 |
-MYP=${MY_PN}-${PV} |
2927 |
- |
2928 |
-DESCRIPTION="Reference implementation of LAPACK" |
2929 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
2930 |
-SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz" |
2931 |
- |
2932 |
-LICENSE="BSD" |
2933 |
-SLOT="0/${PV}" |
2934 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
2935 |
-IUSE="+deprecated static-libs test xblas" |
2936 |
- |
2937 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
2938 |
- |
2939 |
-RDEPEND=" |
2940 |
- >=virtual/blas-2.1-r3[int64?,${MULTILIB_USEDEP}] |
2941 |
- xblas? ( sci-libs/xblas[fortran,int64?] )" |
2942 |
-DEPEND="${RDEPEND} |
2943 |
- virtual/pkgconfig |
2944 |
- test? ( ${PYTHON_DEPS} )" |
2945 |
- |
2946 |
-S="${WORKDIR}/${MYP}" |
2947 |
-PATCHES=( "${FILESDIR}/lapack-reference-${PV}-fix-build-system.patch" ) |
2948 |
- |
2949 |
-src_prepare() { |
2950 |
- numeric-int64_ensure_blas_int_support |
2951 |
- |
2952 |
- default |
2953 |
- |
2954 |
- # rename library to avoid collision with other lapack implementations |
2955 |
- # ${PROFNAME}, ${LIBNAME} and ${BLAS_REQUIRES} are not defined here, they |
2956 |
- # are in single quotes in the following seds. They are set later by |
2957 |
- # defining a cmake variables with -DPROFNAME etc in src_configure. |
2958 |
- sed \ |
2959 |
- -e 's:BINARY_DIR}/lapack.pc:BINARY_DIR}/${PROFNAME}.pc:' \ |
2960 |
- -e '/ALL_TARGETS/s:lapack):${LIBNAME}):' \ |
2961 |
- -e '/LAPACK_LIBRARIES/s:lapack:${LIBNAME}:g' \ |
2962 |
- -i CMakeLists.txt || die |
2963 |
- sed -i \ |
2964 |
- -e 's:(lapack:(${LIBNAME}:g' \ |
2965 |
- -e '/PROPERTIES/s:lapack:${LIBNAME}:g' \ |
2966 |
- SRC/CMakeLists.txt || die |
2967 |
- sed -i \ |
2968 |
- -e '/Name: /s:lapack:@PROFNAME@:' \ |
2969 |
- -e 's:-llapack:-l@LIBNAME@:g' \ |
2970 |
- -e '/Requires: /s:blas:@BLAS_REQUIRES@\nFflags\: ${LAPACK_PKGCONFIG_FFLAGS}:' \ |
2971 |
- lapack.pc.in || die |
2972 |
- # some string does not get passed properly |
2973 |
- sed -i \ |
2974 |
- -e '/lapack_testing.py/d' \ |
2975 |
- CTestCustom.cmake.in || die |
2976 |
- # separate ebuild to tmglib |
2977 |
- sed -i \ |
2978 |
- -e '/lapack_install_library(tmglib)/d' \ |
2979 |
- TESTING/MATGEN/CMakeLists.txt || die |
2980 |
-} |
2981 |
- |
2982 |
-src_configure() { |
2983 |
- lapack_configure() { |
2984 |
- local profname=$(numeric-int64_get_module_name) |
2985 |
- local libname="${profname//-/_}" |
2986 |
- local blas_profname=$(numeric-int64_get_blas_alternative) |
2987 |
- local xblas_profname=$(numeric-int64_get_xblas_alternative) |
2988 |
- local xblas_libname="${xblas_profname//-/_}" |
2989 |
- local blas_requires="${blas_profname}" |
2990 |
- use xblas && \ |
2991 |
- blas_requires+=" ${xblas_profname}" |
2992 |
- local mycmakeargs=( |
2993 |
- -DPROFNAME="${profname}" |
2994 |
- -DBLAS_REQUIRES="${blas_requires}" |
2995 |
- -DLIBNAME="${libname}" |
2996 |
- -DUSE_OPTIMIZED_BLAS=ON |
2997 |
- -DBUILD_TESTING="$(usex test)" |
2998 |
- -DUSE_XBLAS="$(usex xblas)" |
2999 |
- -DBUILD_DEPRECATED="$(usex deprecated)" |
3000 |
- -DCMAKE_C_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CFLAGS}" |
3001 |
- -DCMAKE_CXX_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CXXFLAGS}" |
3002 |
- -DCMAKE_Fortran_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) $(get_abi_CFLAGS) $(numeric-int64_get_fortran_int64_abi_fflags) ${FCFLAGS}" |
3003 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
3004 |
- ) |
3005 |
- use xblas && \ |
3006 |
- mycmakeargs+=( -DXBLAS_LIBRARY:FILEPATH="${EROOT}usr/$(get_libdir)/lib${xblas_libname}.so" ) |
3007 |
- if $(numeric-int64_is_static_build); then |
3008 |
- mycmakeargs+=( |
3009 |
- -DBUILD_SHARED_LIBS=OFF |
3010 |
- -DBUILD_STATIC_LIBS=ON |
3011 |
- ) |
3012 |
- else |
3013 |
- mycmakeargs+=( |
3014 |
- -DBUILD_SHARED_LIBS=ON |
3015 |
- -DBUILD_STATIC_LIBS=OFF |
3016 |
- ) |
3017 |
- fi |
3018 |
- cmake-utils_src_configure |
3019 |
- } |
3020 |
- numeric-int64-multibuild_foreach_all_abi_variants lapack_configure |
3021 |
-} |
3022 |
- |
3023 |
-src_compile() { |
3024 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_compile |
3025 |
-} |
3026 |
- |
3027 |
-src_test() { |
3028 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
3029 |
-} |
3030 |
- |
3031 |
-src_install() { |
3032 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install |
3033 |
- numeric-int64-multibuild_install_alternative lapack reference |
3034 |
-} |
3035 |
|
3036 |
diff --git a/sci-libs/lapack-reference/lapack-reference-3.8.0-r100.ebuild b/sci-libs/lapack-reference/lapack-reference-3.8.0-r100.ebuild |
3037 |
deleted file mode 100644 |
3038 |
index 32b0cd5db..000000000 |
3039 |
--- a/sci-libs/lapack-reference/lapack-reference-3.8.0-r100.ebuild |
3040 |
+++ /dev/null |
3041 |
@@ -1,120 +0,0 @@ |
3042 |
-# Copyright 1999-2018 Gentoo Foundation |
3043 |
-# Distributed under the terms of the GNU General Public License v2 |
3044 |
- |
3045 |
-EAPI=6 |
3046 |
- |
3047 |
-PYTHON_COMPAT=( python2_7 ) |
3048 |
- |
3049 |
-NUMERIC_MODULE_NAME="reflapack" |
3050 |
- |
3051 |
-inherit alternatives-2 cmake-utils eutils fortran-2 numeric-int64-multibuild python-any-r1 |
3052 |
- |
3053 |
-MY_PN=lapack |
3054 |
-MYP=${MY_PN}-${PV} |
3055 |
- |
3056 |
-DESCRIPTION="Reference implementation of LAPACK" |
3057 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
3058 |
-SRC_URI="http://www.netlib.org/lapack/${MYP}.tar.gz" |
3059 |
- |
3060 |
-LICENSE="BSD" |
3061 |
-SLOT="0/${PV}" |
3062 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
3063 |
-IUSE="+deprecated static-libs test xblas" |
3064 |
- |
3065 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
3066 |
- |
3067 |
-RDEPEND=" |
3068 |
- >=virtual/blas-2.1-r3[int64?,${MULTILIB_USEDEP}] |
3069 |
- xblas? ( sci-libs/xblas[fortran,int64?] )" |
3070 |
-DEPEND="${RDEPEND} |
3071 |
- virtual/pkgconfig |
3072 |
- test? ( ${PYTHON_DEPS} )" |
3073 |
- |
3074 |
-S="${WORKDIR}/${MYP}" |
3075 |
- |
3076 |
-src_prepare() { |
3077 |
- numeric-int64_ensure_blas_int_support |
3078 |
- |
3079 |
- cmake-utils_src_prepare |
3080 |
- |
3081 |
- # rename library to avoid collision with other lapack implementations |
3082 |
- # ${PROFNAME}, ${LIBNAME} and ${BLAS_REQUIRES} are not defined here, they |
3083 |
- # are in single quotes in the following seds. They are set later by |
3084 |
- # defining a cmake variables with -DPROFNAME etc in src_configure. |
3085 |
- sed \ |
3086 |
- -e 's:BINARY_DIR}/lapack.pc:BINARY_DIR}/${PROFNAME}.pc:' \ |
3087 |
- -e '/ALL_TARGETS/s:lapack):${LIBNAME}):' \ |
3088 |
- -e '/LAPACK_LIBRARIES/s:lapack:${LIBNAME}:g' \ |
3089 |
- -i CMakeLists.txt || die |
3090 |
- sed -i \ |
3091 |
- -e 's:(lapack:(${LIBNAME}:g' \ |
3092 |
- -e '/PROPERTIES/s:lapack:${LIBNAME}:g' \ |
3093 |
- SRC/CMakeLists.txt || die |
3094 |
- sed -i \ |
3095 |
- -e '/Name: /s:lapack:@PROFNAME@:' \ |
3096 |
- -e 's:-llapack:-l@LIBNAME@:g' \ |
3097 |
- -e '/Requires: /s:blas:@BLAS_REQUIRES@\nFflags\: ${LAPACK_PKGCONFIG_FFLAGS}:' \ |
3098 |
- lapack.pc.in || die |
3099 |
- # some string does not get passed properly |
3100 |
- sed -i \ |
3101 |
- -e '/lapack_testing.py/d' \ |
3102 |
- CTestCustom.cmake.in || die |
3103 |
- # separate ebuild to tmglib |
3104 |
- sed -i \ |
3105 |
- -e '/lapack_install_library(tmglib)/d' \ |
3106 |
- TESTING/MATGEN/CMakeLists.txt || die |
3107 |
-} |
3108 |
- |
3109 |
-src_configure() { |
3110 |
- lapack_configure() { |
3111 |
- local profname=$(numeric-int64_get_module_name) |
3112 |
- local libname="${profname//-/_}" |
3113 |
- local blas_profname=$(numeric-int64_get_blas_alternative) |
3114 |
- local xblas_profname=$(numeric-int64_get_xblas_alternative) |
3115 |
- local xblas_libname="${xblas_profname//-/_}" |
3116 |
- local blas_requires="${blas_profname}" |
3117 |
- use xblas && \ |
3118 |
- blas_requires+=" ${xblas_profname}" |
3119 |
- local mycmakeargs=( |
3120 |
- -DPROFNAME="${profname}" |
3121 |
- -DBLAS_REQUIRES="${blas_requires}" |
3122 |
- -DLIBNAME="${libname}" |
3123 |
- -DUSE_OPTIMIZED_BLAS=ON |
3124 |
- -DBUILD_TESTING="$(usex test)" |
3125 |
- -DUSE_XBLAS="$(usex xblas)" |
3126 |
- -DBUILD_DEPRECATED="$(usex deprecated)" |
3127 |
- -DCMAKE_C_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CFLAGS}" |
3128 |
- -DCMAKE_CXX_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CXXFLAGS}" |
3129 |
- -DCMAKE_Fortran_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) $(get_abi_CFLAGS) $(numeric-int64_get_fortran_int64_abi_fflags) ${FCFLAGS}" |
3130 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
3131 |
- ) |
3132 |
- use xblas && \ |
3133 |
- mycmakeargs+=( -DXBLAS_LIBRARY:FILEPATH="${EROOT}usr/$(get_libdir)/lib${xblas_libname}.so" ) |
3134 |
- if $(numeric-int64_is_static_build); then |
3135 |
- mycmakeargs+=( |
3136 |
- -DBUILD_SHARED_LIBS=OFF |
3137 |
- -DBUILD_STATIC_LIBS=ON |
3138 |
- ) |
3139 |
- else |
3140 |
- mycmakeargs+=( |
3141 |
- -DBUILD_SHARED_LIBS=ON |
3142 |
- -DBUILD_STATIC_LIBS=OFF |
3143 |
- ) |
3144 |
- fi |
3145 |
- cmake-utils_src_configure |
3146 |
- } |
3147 |
- numeric-int64-multibuild_foreach_all_abi_variants lapack_configure |
3148 |
-} |
3149 |
- |
3150 |
-src_compile() { |
3151 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_compile |
3152 |
-} |
3153 |
- |
3154 |
-src_test() { |
3155 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
3156 |
-} |
3157 |
- |
3158 |
-src_install() { |
3159 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install |
3160 |
- numeric-int64-multibuild_install_alternative lapack reference |
3161 |
-} |
3162 |
|
3163 |
diff --git a/sci-libs/lapack-reference/lapack-reference-9999.ebuild b/sci-libs/lapack-reference/lapack-reference-9999.ebuild |
3164 |
deleted file mode 100644 |
3165 |
index a22d2d722..000000000 |
3166 |
--- a/sci-libs/lapack-reference/lapack-reference-9999.ebuild |
3167 |
+++ /dev/null |
3168 |
@@ -1,124 +0,0 @@ |
3169 |
-# Copyright 1999-2018 Gentoo Foundation |
3170 |
-# Distributed under the terms of the GNU General Public License v2 |
3171 |
- |
3172 |
-EAPI=6 |
3173 |
- |
3174 |
-PYTHON_COMPAT=( python2_7 ) |
3175 |
- |
3176 |
-NUMERIC_MODULE_NAME="reflapack" |
3177 |
- |
3178 |
-inherit alternatives-2 cmake-utils fortran-2 git-r3 numeric-int64-multibuild python-any-r1 |
3179 |
- |
3180 |
-# The master ESVN_REPO_URI is difficult to access, the git mirror is easier |
3181 |
-# ESVN_REPO_URI="https://icl.cs.utk.edu/svn/lapack-dev/lapack/trunk" |
3182 |
-# MY_PN=lapack |
3183 |
-# inherit subversion |
3184 |
- |
3185 |
-MY_PN=lapack-reference |
3186 |
-MYP=${MY_PN}-${PV} |
3187 |
- |
3188 |
-DESCRIPTION="Reference implementation of LAPACK" |
3189 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
3190 |
-EGIT_REPO_URI="https://github.com/nschloe/lapack.git" |
3191 |
- |
3192 |
-LICENSE="BSD" |
3193 |
-SLOT="0/${PV}" |
3194 |
-KEYWORDS="" |
3195 |
-IUSE="static-libs test xblas" |
3196 |
- |
3197 |
-REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )" |
3198 |
- |
3199 |
-RDEPEND=" |
3200 |
- >=virtual/blas-2.1-r3[int64?,${MULTILIB_USEDEP}] |
3201 |
- xblas? ( sci-libs/xblas[fortran,int64?] )" |
3202 |
-DEPEND="${RDEPEND} |
3203 |
- virtual/pkgconfig |
3204 |
- test? ( ${PYTHON_DEPS} )" |
3205 |
- |
3206 |
-S="${WORKDIR}/${MYP}" |
3207 |
- |
3208 |
-src_prepare() { |
3209 |
- numeric-int64_ensure_blas_int_support |
3210 |
- |
3211 |
- cmake-utils_src_prepare |
3212 |
- |
3213 |
- # rename library to avoid collision with other lapack implementations |
3214 |
- # ${PROFNAME}, ${LIBNAME} and ${BLAS_REQUIRES} are not defined here, they |
3215 |
- # are in single quotes in the following seds. They are set later by |
3216 |
- # defining a cmake variables with -DPROFNAME etc in src_configure. |
3217 |
- sed -i \ |
3218 |
- -e 's:BINARY_DIR}/lapack.pc:BINARY_DIR}/${PROFNAME}.pc:' \ |
3219 |
- -e '/ALL_TARGETS/s:lapack):${LIBNAME}):' \ |
3220 |
- -e '/LAPACK_LIBRARIES/s:lapack:${LIBNAME}:g' \ |
3221 |
- CMakeLists.txt || die |
3222 |
- sed -i \ |
3223 |
- -e 's:(lapack:(${LIBNAME}:g' \ |
3224 |
- SRC/CMakeLists.txt || die |
3225 |
- sed -i \ |
3226 |
- -e '/Name: /s:lapack:${PROFNAME}:' \ |
3227 |
- -e 's:-llapack:-l${LIBNAME}:g' \ |
3228 |
- -e '/Requires: /s:blas:${BLAS_REQUIRES}\nFflags=${LAPACK_PKGCONFIG_FFLAGS}:' \ |
3229 |
- lapack.pc.in || die |
3230 |
- # some string does not get passed properly |
3231 |
- sed -i \ |
3232 |
- -e '/lapack_testing.py/d' \ |
3233 |
- CTestCustom.cmake.in || die |
3234 |
- # separate ebuild to tmglib |
3235 |
- sed -i \ |
3236 |
- -e '/lapack_install_library(tmglib)/d' \ |
3237 |
- TESTING/MATGEN/CMakeLists.txt || die |
3238 |
-} |
3239 |
- |
3240 |
-src_configure() { |
3241 |
- lapack_configure() { |
3242 |
- local profname=$(numeric-int64_get_module_name) |
3243 |
- local libname="${profname//-/_}" |
3244 |
- local blas_profname=$(numeric-int64_get_blas_alternative) |
3245 |
- local xblas_profname=$(numeric-int64_get_xblas_alternative) |
3246 |
- local xblas_libname="${xblas_profname//-/_}" |
3247 |
- local blas_requires="${blas_profname}" |
3248 |
- use xblas && \ |
3249 |
- blas_requires+=" ${xblas_profname}" |
3250 |
- local mycmakeargs=( |
3251 |
- -DPROFNAME="${profname}" |
3252 |
- -DBLAS_REQUIRES="${blas_requires}" |
3253 |
- -DLIBNAME="${libname}" |
3254 |
- -DUSE_OPTIMIZED_BLAS=ON |
3255 |
- -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs ${blas_profname})" |
3256 |
- $(cmake-utils_use_build test TESTING) |
3257 |
- $(cmake-utils_use_use xblas XBLAS) |
3258 |
- -DCMAKE_C_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CFLAGS}" |
3259 |
- -DCMAKE_CXX_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) ${CXXFLAGS}" |
3260 |
- -DCMAKE_Fortran_FLAGS="$($(tc-getPKG_CONFIG) --cflags ${blas_profname}) $(get_abi_CFLAGS) $(numeric-int64_get_fortran_int64_abi_fflags) ${FCFLAGS}" |
3261 |
- -DLAPACK_PKGCONFIG_FFLAGS="$(numeric-int64_get_fortran_int64_abi_fflags)" |
3262 |
- ) |
3263 |
- use xblas && \ |
3264 |
- mycmakeargs+=( -DXBLAS_LIBRARY:FILEPATH="${EROOT}usr/$(get_libdir)/lib${xblas_libname}.so" ) |
3265 |
- if $(numeric-int64_is_static_build); then |
3266 |
- mycmakeargs+=( |
3267 |
- -DBUILD_SHARED_LIBS=OFF |
3268 |
- -DBUILD_STATIC_LIBS=ON |
3269 |
- ) |
3270 |
- else |
3271 |
- mycmakeargs+=( |
3272 |
- -DBUILD_SHARED_LIBS=ON |
3273 |
- -DBUILD_STATIC_LIBS=OFF |
3274 |
- ) |
3275 |
- fi |
3276 |
- cmake-utils_src_configure |
3277 |
- } |
3278 |
- numeric-int64-multibuild_foreach_all_abi_variants lapack_configure |
3279 |
-} |
3280 |
- |
3281 |
-src_compile() { |
3282 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_compile |
3283 |
-} |
3284 |
- |
3285 |
-src_test() { |
3286 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_test |
3287 |
-} |
3288 |
- |
3289 |
-src_install() { |
3290 |
- numeric-int64-multibuild_foreach_all_abi_variants cmake-utils_src_install |
3291 |
- numeric-int64-multibuild_install_alternative lapack reference |
3292 |
-} |
3293 |
|
3294 |
diff --git a/sci-libs/lapack-reference/metadata.xml b/sci-libs/lapack-reference/metadata.xml |
3295 |
deleted file mode 100644 |
3296 |
index 2fd11ecf7..000000000 |
3297 |
--- a/sci-libs/lapack-reference/metadata.xml |
3298 |
+++ /dev/null |
3299 |
@@ -1,25 +0,0 @@ |
3300 |
-<?xml version="1.0" encoding="UTF-8"?> |
3301 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
3302 |
-<pkgmetadata> |
3303 |
- <maintainer type="project"> |
3304 |
- <email>sci@g.o</email> |
3305 |
- <name>Gentoo Science Project</name> |
3306 |
- </maintainer> |
3307 |
- <longdescription lang="en"> |
3308 |
-The Linear Algebra PACKage (LAPACK) is a comprehensive library that |
3309 |
-does linear algebra operations including matrix inversions, least |
3310 |
-squared solutions to linear sets of equations, eigenvector analysis, |
3311 |
-singular value decomposition, etc. It is a very comprehensive and |
3312 |
-reputable package that has found extensive use in the scientific community. |
3313 |
-This package installs the reference FORTRAN 77 implementation from |
3314 |
-Netlib for LAPACK and optionnally the one for the Basic Linear |
3315 |
-Algebra Subprogram (BLAS). |
3316 |
-</longdescription> |
3317 |
- <use> |
3318 |
- <flag name="deprecated">Build deprecated routines</flag> |
3319 |
- <flag name="int64">Build the 64 bits integer library</flag> |
3320 |
- <flag name="xblas"> |
3321 |
-Build LAPACK with extra precision (needs <pkg>sci-libs/xblas</pkg>) |
3322 |
-</flag> |
3323 |
- </use> |
3324 |
-</pkgmetadata> |
3325 |
|
3326 |
diff --git a/sci-libs/lapacke-reference/files/lapack-fix-build-system.patch b/sci-libs/lapacke-reference/files/lapack-fix-build-system.patch |
3327 |
deleted file mode 100644 |
3328 |
index 8661709d3..000000000 |
3329 |
--- a/sci-libs/lapacke-reference/files/lapack-fix-build-system.patch |
3330 |
+++ /dev/null |
3331 |
@@ -1,92 +0,0 @@ |
3332 |
---- lapack-3.6.0/BLAS/blas.pc.in |
3333 |
-+++ lapack-3.6.0/BLAS/blas.pc.in |
3334 |
-@@ -1,5 +1,7 @@ |
3335 |
--prefix=@prefix@ |
3336 |
--libdir=@libdir@ |
3337 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
3338 |
-+exec_prefix=${prefix} |
3339 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
3340 |
-+includedir=${prefix}/include |
3341 |
- |
3342 |
- Name: blas |
3343 |
- Description: Basic Linear Algebra Subprograms F77 reference implementations |
3344 |
---- lapack-3.6.0/BLAS/CMakeLists.txt |
3345 |
-+++ lapack-3.6.0/BLAS/CMakeLists.txt |
3346 |
-@@ -2,7 +2,7 @@ |
3347 |
- if(BUILD_TESTING) |
3348 |
- add_subdirectory(TESTING) |
3349 |
- endif(BUILD_TESTING) |
3350 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc) |
3351 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/blas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/blas.pc @ONLY) |
3352 |
- install(FILES |
3353 |
- ${CMAKE_CURRENT_BINARY_DIR}/blas.pc |
3354 |
- DESTINATION ${PKG_CONFIG_DIR} |
3355 |
---- lapack-3.6.0/CBLAS/cblas.pc.in |
3356 |
-+++ lapack-3.6.0/CBLAS/cblas.pc.in |
3357 |
-@@ -1,5 +1,7 @@ |
3358 |
--prefix=@prefix@ |
3359 |
--libdir=@libdir@ |
3360 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
3361 |
-+exec_prefix=${prefix} |
3362 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
3363 |
-+includedir=${prefix}/include |
3364 |
- |
3365 |
- Name: lapacke |
3366 |
- Description: C Standard Interface to BLAS Linear Algebra PACKage |
3367 |
---- lapack-3.6.0/CBLAS/CMakeLists.txt |
3368 |
-+++ lapack-3.6.0/CBLAS/CMakeLists.txt |
3369 |
-@@ -71,7 +71,7 @@ |
3370 |
- ${LAPACK_BINARY_DIR}/cblas-config.cmake @ONLY) |
3371 |
- |
3372 |
- |
3373 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc) |
3374 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cblas.pc.in ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc @ONLY) |
3375 |
- install(FILES |
3376 |
- ${CMAKE_CURRENT_BINARY_DIR}/cblas.pc |
3377 |
- DESTINATION ${PKG_CONFIG_DIR} |
3378 |
---- lapack-3.6.0/CMakeLists.txt |
3379 |
-+++ lapack-3.6.0/CMakeLists.txt |
3380 |
-@@ -333,7 +333,7 @@ |
3381 |
- ${LAPACK_BINARY_DIR}/lapack-config.cmake @ONLY) |
3382 |
- |
3383 |
- |
3384 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc) |
3385 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapack.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc @ONLY) |
3386 |
- install(FILES |
3387 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapack.pc |
3388 |
- DESTINATION ${PKG_CONFIG_DIR} |
3389 |
---- lapack-3.6.0/LAPACKE/CMakeLists.txt |
3390 |
-+++ lapack-3.6.0/LAPACKE/CMakeLists.txt |
3391 |
-@@ -65,7 +65,7 @@ |
3392 |
- endif(BUILD_TESTING) |
3393 |
- |
3394 |
- |
3395 |
--configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc) |
3396 |
-+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/lapacke.pc.in ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc @ONLY) |
3397 |
- install(FILES |
3398 |
- ${CMAKE_CURRENT_BINARY_DIR}/lapacke.pc |
3399 |
- DESTINATION ${PKG_CONFIG_DIR} |
3400 |
---- lapack-3.6.0/LAPACKE/lapacke.pc.in |
3401 |
-+++ lapack-3.6.0/LAPACKE/lapacke.pc.in |
3402 |
-@@ -1,5 +1,7 @@ |
3403 |
--prefix=@prefix@ |
3404 |
--libdir=@libdir@ |
3405 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
3406 |
-+exec_prefix=${prefix} |
3407 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
3408 |
-+includedir=${prefix}/include |
3409 |
- |
3410 |
- Name: lapacke |
3411 |
- Description: C Standard Interface to LAPACK Linear Algebra PACKage |
3412 |
---- lapack-3.6.0/lapack.pc.in |
3413 |
-+++ lapack-3.6.0/lapack.pc.in |
3414 |
-@@ -1,5 +1,7 @@ |
3415 |
--prefix=@prefix@ |
3416 |
--libdir=@libdir@ |
3417 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
3418 |
-+exec_prefix=${prefix} |
3419 |
-+libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ |
3420 |
-+includedir=${prefix}/include |
3421 |
- |
3422 |
- Name: lapack |
3423 |
- Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage |
3424 |
|
3425 |
diff --git a/sci-libs/lapacke-reference/lapacke-reference-3.5.0.ebuild b/sci-libs/lapacke-reference/lapacke-reference-3.5.0.ebuild |
3426 |
deleted file mode 100644 |
3427 |
index e71514161..000000000 |
3428 |
--- a/sci-libs/lapacke-reference/lapacke-reference-3.5.0.ebuild |
3429 |
+++ /dev/null |
3430 |
@@ -1,95 +0,0 @@ |
3431 |
-# Copyright 1999-2015 Gentoo Foundation |
3432 |
-# Distributed under the terms of the GNU General Public License v2 |
3433 |
- |
3434 |
-EAPI=5 |
3435 |
- |
3436 |
-FORTRAN_NEEDED=test |
3437 |
- |
3438 |
-inherit alternatives-2 cmake-utils eutils fortran-2 toolchain-funcs |
3439 |
- |
3440 |
-MYP=lapack-${PV} |
3441 |
- |
3442 |
-DESCRIPTION="C Interface to LAPACK" |
3443 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
3444 |
-SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz" |
3445 |
- |
3446 |
-LICENSE="BSD" |
3447 |
-SLOT="0" |
3448 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
3449 |
-IUSE="static-libs test tmg xblas" |
3450 |
- |
3451 |
-RDEPEND=" |
3452 |
- virtual/blas |
3453 |
- virtual/lapack |
3454 |
- tmg? ( sci-libs/tmglib ) |
3455 |
- xblas? ( sci-libs/xblas )" |
3456 |
-DEPEND="${RDEPEND} |
3457 |
- virtual/pkgconfig" |
3458 |
- |
3459 |
-S="${WORKDIR}/${MYP}" |
3460 |
- |
3461 |
-src_prepare() { |
3462 |
- # rename libraries to avoid collision with other lapacke |
3463 |
- sed -i \ |
3464 |
- -e 's:BINARY_DIR}/lapacke.pc:BINARY_DIR}/reflapacke.pc:' \ |
3465 |
- -e '/export/s:lapacke:reflapacke:g' \ |
3466 |
- -e '/ALL_TARGETS/s:lapacke):reflapacke):' \ |
3467 |
- -e '/LAPACK_LIBRARIES/s:lapacke:reflapacke:g' \ |
3468 |
- CMakeLists.txt || die |
3469 |
- sed -i \ |
3470 |
- -e '/librar/s:(lapacke:(reflapacke:g' \ |
3471 |
- lapacke/CMakeLists.txt || die |
3472 |
- sed -i \ |
3473 |
- -e '/librar/s:lapacke:reflapacke:g' \ |
3474 |
- lapacke/example/CMakeLists.txt || die |
3475 |
- local tmgpc; use tmg && tmgpc=" -ltmglib" |
3476 |
- sed -i \ |
3477 |
- -e "s:-llapacke:-lreflapacke${tmgpc}:g" \ |
3478 |
- lapacke/lapacke.pc.in || die |
3479 |
- use static-libs && mkdir "${WORKDIR}/${PN}_static" |
3480 |
-} |
3481 |
- |
3482 |
-src_configure() { |
3483 |
- lapack_configure() { |
3484 |
- local mycmakeargs=( |
3485 |
- -DUSE_OPTIMIZED_BLAS=ON |
3486 |
- -DUSE_OPTIMIZED_LAPACK=ON |
3487 |
- -DLAPACKE=ON |
3488 |
- -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" |
3489 |
- -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" |
3490 |
- $(cmake-utils_use tmg LAPACKE_WITH_TMG) |
3491 |
- $(cmake-utils_use_build test TESTING) |
3492 |
- $(cmake-utils_use_use xblas XBLAS) |
3493 |
- $@ |
3494 |
- ) |
3495 |
- cmake-utils_src_configure |
3496 |
- } |
3497 |
- |
3498 |
- lapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF |
3499 |
- use static-libs && \ |
3500 |
- BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ |
3501 |
- -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON |
3502 |
-} |
3503 |
- |
3504 |
-src_compile() { |
3505 |
- use test && cmake-utils_src_compile -C TESTING/MATGEN |
3506 |
- cmake-utils_src_compile -C lapacke |
3507 |
- use static-libs \ |
3508 |
- && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C lapacke |
3509 |
-} |
3510 |
- |
3511 |
-src_test() { |
3512 |
- pushd "${BUILD_DIR}/lapacke" > /dev/null || die |
3513 |
- local ctestargs |
3514 |
- [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" |
3515 |
- ctest ${ctestargs} || die |
3516 |
- popd > /dev/null || die |
3517 |
-} |
3518 |
- |
3519 |
-src_install() { |
3520 |
- cmake-utils_src_install -C lapacke |
3521 |
- use static-libs \ |
3522 |
- && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C lapacke |
3523 |
- alternatives_for lapacke reference 0 \ |
3524 |
- /usr/$(get_libdir)/pkgconfig/lapacke.pc reflapacke.pc |
3525 |
-} |
3526 |
|
3527 |
diff --git a/sci-libs/lapacke-reference/lapacke-reference-3.6.0-r2.ebuild b/sci-libs/lapacke-reference/lapacke-reference-3.6.0-r2.ebuild |
3528 |
deleted file mode 100644 |
3529 |
index 65177ade1..000000000 |
3530 |
--- a/sci-libs/lapacke-reference/lapacke-reference-3.6.0-r2.ebuild |
3531 |
+++ /dev/null |
3532 |
@@ -1,102 +0,0 @@ |
3533 |
-# Copyright 1999-2016 Gentoo Foundation |
3534 |
-# Distributed under the terms of the GNU General Public License v2 |
3535 |
- |
3536 |
-EAPI=5 |
3537 |
- |
3538 |
-FORTRAN_NEEDED=test |
3539 |
- |
3540 |
-inherit alternatives-2 cmake-utils eutils fortran-2 toolchain-funcs |
3541 |
- |
3542 |
-MYP=lapack-${PV} |
3543 |
- |
3544 |
-DESCRIPTION="C Interface to LAPACK" |
3545 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
3546 |
-SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz" |
3547 |
- |
3548 |
-LICENSE="BSD" |
3549 |
-SLOT="0" |
3550 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
3551 |
-IUSE="+deprecated static-libs test tmg xblas" |
3552 |
- |
3553 |
-RDEPEND=" |
3554 |
- virtual/blas |
3555 |
- virtual/lapack |
3556 |
- tmg? ( sci-libs/tmglib ) |
3557 |
- xblas? ( sci-libs/xblas )" |
3558 |
-DEPEND="${RDEPEND} |
3559 |
- virtual/pkgconfig" |
3560 |
- |
3561 |
-S="${WORKDIR}/${MYP}" |
3562 |
-PATCHES=( "${FILESDIR}/lapack-fix-build-system.patch" ) |
3563 |
- |
3564 |
-src_prepare() { |
3565 |
- # the lapack(e)/(c)blas build system is somewhat broken |
3566 |
- # with respect to its pkg-config files. |
3567 |
- epatch "${PATCHES[@]}" |
3568 |
- |
3569 |
- # rename libraries to avoid collision with other lapacke |
3570 |
- sed -i \ |
3571 |
- -e 's:BINARY_DIR}/lapacke.pc:BINARY_DIR}/reflapacke.pc:' \ |
3572 |
- -e '/export/s:lapacke:reflapacke:g' \ |
3573 |
- -e '/ALL_TARGETS/s:lapacke):reflapacke):' \ |
3574 |
- -e '/LAPACK_LIBRARIES/s:lapacke:reflapacke:g' \ |
3575 |
- LAPACKE/CMakeLists.txt \ |
3576 |
- CMakeLists.txt || die |
3577 |
- sed -i \ |
3578 |
- -e '/librar/s:(lapacke:(reflapacke:g' \ |
3579 |
- LAPACKE/CMakeLists.txt || die |
3580 |
- sed -i \ |
3581 |
- -e '/librar/s:lapacke:reflapacke:g' \ |
3582 |
- LAPACKE/example/CMakeLists.txt || die |
3583 |
- local tmgpc; use tmg && tmgpc=" -ltmglib" |
3584 |
- sed -i \ |
3585 |
- -e "s:-llapacke:-lreflapacke${tmgpc}:g" \ |
3586 |
- LAPACKE/lapacke.pc.in || die |
3587 |
- use static-libs && mkdir "${WORKDIR}/${PN}_static" |
3588 |
-} |
3589 |
- |
3590 |
-src_configure() { |
3591 |
- lapack_configure() { |
3592 |
- local mycmakeargs=( |
3593 |
- -DUSE_OPTIMIZED_BLAS=ON |
3594 |
- -DUSE_OPTIMIZED_LAPACK=ON |
3595 |
- -DLAPACKE=ON |
3596 |
- -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" |
3597 |
- -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" |
3598 |
- $(cmake-utils_use tmg LAPACKE_WITH_TMG) |
3599 |
- $(cmake-utils_use_build test TESTING) |
3600 |
- $(cmake-utils_use_use xblas XBLAS) |
3601 |
- $(cmake-utils_use_build deprecated DEPRECATED) |
3602 |
- $@ |
3603 |
- ) |
3604 |
- cmake-utils_src_configure |
3605 |
- } |
3606 |
- |
3607 |
- lapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF |
3608 |
- use static-libs && \ |
3609 |
- BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ |
3610 |
- -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON |
3611 |
-} |
3612 |
- |
3613 |
-src_compile() { |
3614 |
- use test && cmake-utils_src_compile -C TESTING/MATGEN |
3615 |
- cmake-utils_src_compile -C LAPACKE |
3616 |
- use static-libs \ |
3617 |
- && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C LAPACKE |
3618 |
-} |
3619 |
- |
3620 |
-src_test() { |
3621 |
- pushd "${BUILD_DIR}/LAPACKE" > /dev/null || die |
3622 |
- local ctestargs |
3623 |
- [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" |
3624 |
- ctest ${ctestargs} || die |
3625 |
- popd > /dev/null || die |
3626 |
-} |
3627 |
- |
3628 |
-src_install() { |
3629 |
- cmake-utils_src_install -C LAPACKE |
3630 |
- use static-libs \ |
3631 |
- && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C LAPACKE |
3632 |
- alternatives_for lapacke reference 0 \ |
3633 |
- /usr/$(get_libdir)/pkgconfig/lapacke.pc reflapacke.pc |
3634 |
-} |
3635 |
|
3636 |
diff --git a/sci-libs/lapacke-reference/lapacke-reference-9999.ebuild b/sci-libs/lapacke-reference/lapacke-reference-9999.ebuild |
3637 |
deleted file mode 100644 |
3638 |
index 87462c46a..000000000 |
3639 |
--- a/sci-libs/lapacke-reference/lapacke-reference-9999.ebuild |
3640 |
+++ /dev/null |
3641 |
@@ -1,95 +0,0 @@ |
3642 |
-# Copyright 1999-2018 Gentoo Foundation |
3643 |
-# Distributed under the terms of the GNU General Public License v2 |
3644 |
- |
3645 |
-EAPI=6 |
3646 |
- |
3647 |
-FORTRAN_NEEDED=test |
3648 |
- |
3649 |
-inherit alternatives-2 cmake-utils eutils fortran-2 subversion toolchain-funcs |
3650 |
- |
3651 |
-MYP=lapack-${PV} |
3652 |
- |
3653 |
-DESCRIPTION="C Interface to LAPACK" |
3654 |
-HOMEPAGE="http://www.netlib.org/lapack/" |
3655 |
-ESVN_REPO_URI="https://icl.cs.utk.edu/svn/lapack-dev/lapack/trunk" |
3656 |
- |
3657 |
-LICENSE="BSD" |
3658 |
-SLOT="0" |
3659 |
-KEYWORDS="" |
3660 |
-IUSE="static-libs test tmg xblas" |
3661 |
- |
3662 |
-RDEPEND=" |
3663 |
- virtual/blas |
3664 |
- virtual/lapack |
3665 |
- tmg? ( sci-libs/tmglib ) |
3666 |
- xblas? ( sci-libs/xblas )" |
3667 |
-DEPEND="${RDEPEND} |
3668 |
- virtual/pkgconfig" |
3669 |
- |
3670 |
-S="${WORKDIR}/${MYP}" |
3671 |
- |
3672 |
-src_prepare() { |
3673 |
- # rename libraries to avoid collision with other lapacke |
3674 |
- sed -i \ |
3675 |
- -e 's:BINARY_DIR}/lapacke.pc:BINARY_DIR}/reflapacke.pc:' \ |
3676 |
- -e '/export/s:lapacke:reflapacke:g' \ |
3677 |
- -e '/ALL_TARGETS/s:lapacke):reflapacke):' \ |
3678 |
- -e '/LAPACK_LIBRARIES/s:lapacke:reflapacke:g' \ |
3679 |
- CMakeLists.txt || die |
3680 |
- sed -i \ |
3681 |
- -e '/librar/s:(lapacke:(reflapacke:g' \ |
3682 |
- LAPACKE/CMakeLists.txt || die |
3683 |
- sed -i \ |
3684 |
- -e '/librar/s:lapacke:reflapacke:g' \ |
3685 |
- LAPACKE/example/CMakeLists.txt || die |
3686 |
- local tmgpc; use tmg && tmgpc=" -ltmglib" |
3687 |
- sed -i \ |
3688 |
- -e "s:-llapacke:-lreflapacke${tmgpc}:g" \ |
3689 |
- LAPACKE/lapacke.pc.in || die |
3690 |
- use static-libs && mkdir "${WORKDIR}/${PN}_static" |
3691 |
-} |
3692 |
- |
3693 |
-src_configure() { |
3694 |
- lapack_configure() { |
3695 |
- local mycmakeargs=( |
3696 |
- -DUSE_OPTIMIZED_BLAS=ON |
3697 |
- -DUSE_OPTIMIZED_LAPACK=ON |
3698 |
- -DLAPACKE=ON |
3699 |
- -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)" |
3700 |
- -DLAPACK_LIBRARIES="$($(tc-getPKG_CONFIG) --libs lapack)" |
3701 |
- -DLAPACKE_WITH_TMG=$(usex tmg) |
3702 |
- -DBUILD_TESTING=$(usex test) |
3703 |
- -DUSE_XBLAS=$(usex xblas) |
3704 |
- $@ |
3705 |
- ) |
3706 |
- cmake-utils_src_configure |
3707 |
- } |
3708 |
- |
3709 |
- lapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF |
3710 |
- use static-libs && \ |
3711 |
- BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \ |
3712 |
- -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON |
3713 |
-} |
3714 |
- |
3715 |
-src_compile() { |
3716 |
- use test && cmake-utils_src_compile -C TESTING/MATGEN |
3717 |
- cmake-utils_src_compile -C LAPACKE |
3718 |
- use static-libs \ |
3719 |
- && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile -C LAPACKE |
3720 |
-} |
3721 |
- |
3722 |
-src_test() { |
3723 |
- pushd "${BUILD_DIR}/lapacke" > /dev/null || die |
3724 |
- local ctestargs |
3725 |
- [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" |
3726 |
- ctest ${ctestargs} || die |
3727 |
- popd > /dev/null || die |
3728 |
-} |
3729 |
- |
3730 |
-src_install() { |
3731 |
- cmake-utils_src_install -C LAPACKE |
3732 |
- use static-libs \ |
3733 |
- && BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install -C LAPACKE |
3734 |
- alternatives_for lapacke reference 0 \ |
3735 |
- /usr/$(get_libdir)/pkgconfig/lapacke.pc reflapacke.pc |
3736 |
-} |
3737 |
|
3738 |
diff --git a/sci-libs/lapacke-reference/metadata.xml b/sci-libs/lapacke-reference/metadata.xml |
3739 |
deleted file mode 100644 |
3740 |
index 26d2a3499..000000000 |
3741 |
--- a/sci-libs/lapacke-reference/metadata.xml |
3742 |
+++ /dev/null |
3743 |
@@ -1,19 +0,0 @@ |
3744 |
-<?xml version="1.0" encoding="UTF-8"?> |
3745 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
3746 |
-<pkgmetadata> |
3747 |
- <maintainer type="project"> |
3748 |
- <email>sci@g.o</email> |
3749 |
- <name>Gentoo Science Project</name> |
3750 |
- </maintainer> |
3751 |
- <longdescription lang="en"> |
3752 |
-This implementation provides a native C interface to LAPACK routines |
3753 |
-available at www.netlib.org/lapack to facilitate usage of LAPACK |
3754 |
-functionality for C programmers. |
3755 |
-</longdescription> |
3756 |
- <use> |
3757 |
- <flag name="deprecated">Build deprecated routines</flag> |
3758 |
- <flag name="tmg">Build LAPACKE with a Test Matrix Generator library</flag> |
3759 |
- <flag name="xblas">Build LAPACKE with extra precision (needs |
3760 |
-<pkg>sci-libs/xblas</pkg>)</flag> |
3761 |
- </use> |
3762 |
-</pkgmetadata> |
3763 |
|
3764 |
diff --git a/scripts/lapack-migration.sh b/scripts/lapack-migration.sh |
3765 |
deleted file mode 100755 |
3766 |
index cd932c130..000000000 |
3767 |
--- a/scripts/lapack-migration.sh |
3768 |
+++ /dev/null |
3769 |
@@ -1,25 +0,0 @@ |
3770 |
-#!/usr/bin/env bash |
3771 |
-set -e |
3772 |
- |
3773 |
-EPREFIX=${1} |
3774 |
- |
3775 |
-#Link to the workaround automated by this script: https://wiki.gentoo.org/wiki/User_talk:Houseofsuns#Migration_to_science_overlay_from_main_tree |
3776 |
-#Efforts to more permanently address the issue: https://github.com/gentoo/sci/issues/805 |
3777 |
-echo "" |
3778 |
-echo "Setting Up Eselect for Gentoo Science:" |
3779 |
-echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" |
3780 |
-if [ ! -d ${EPREFIX}/etc/portage/package.mask/ ]; then |
3781 |
- mkdir -p ${EPREFIX}/etc/portage/package.mask/; |
3782 |
-fi |
3783 |
-cp "sci-lapack" "${EPREFIX}/etc/portage/package.mask/" |
3784 |
-emerge --oneshot --verbose dev-util/cmake >> /dev/null |
3785 |
-emerge --oneshot --verbose app-admin/eselect::science >> /dev/null |
3786 |
-FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose sci-libs/blas-reference::science |
3787 |
-eselect blas set reference |
3788 |
-FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose sci-libs/cblas-reference::science |
3789 |
-eselect cblas set reference |
3790 |
-FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose sci-libs/lapack-reference::science |
3791 |
-eselect lapack set reference |
3792 |
-FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose --exclude sci-libs/blas-reference --exclude sci-libs/cblas-reference --exclude sci-libs/lapack-reference `eix --only-names --installed --in-overlay science` |
3793 |
- |
3794 |
-emerge -1qv @preserved-rebuild |
3795 |
|
3796 |
diff --git a/scripts/sci-lapack b/scripts/sci-lapack |
3797 |
deleted file mode 100644 |
3798 |
index 691059927..000000000 |
3799 |
--- a/scripts/sci-lapack |
3800 |
+++ /dev/null |
3801 |
@@ -1,18 +0,0 @@ |
3802 |
-## mask packages superseded by science overlay |
3803 |
-app-admin/eselect::gentoo |
3804 |
-app-eselect/eselect-blas |
3805 |
-app-eselect/eselect-cblas |
3806 |
-app-eselect/eselect-lapack |
3807 |
-virtual/blas::gentoo |
3808 |
-virtual/cblas::gentoo |
3809 |
-virtual/lapack::gentoo |
3810 |
-sci-libs/gsl::gentoo |
3811 |
-app-doc/blas-docs::gentoo |
3812 |
-app-doc/lapack-docs::gentoo |
3813 |
-sci-libs/blas-reference::gentoo |
3814 |
-sci-libs/cblas-reference::gentoo |
3815 |
-sci-libs/lapack-reference::gentoo |
3816 |
-sci-libs/mkl::gentoo |
3817 |
- |
3818 |
-## more recently requires (see: https://github.com/gentoo/sci/issues/878 ) |
3819 |
->=dev-util/cmake-3.12.0 |
3820 |
|
3821 |
diff --git a/virtual/blas/blas-2.1-r5.ebuild b/virtual/blas/blas-2.1-r5.ebuild |
3822 |
deleted file mode 100644 |
3823 |
index d30ea7186..000000000 |
3824 |
--- a/virtual/blas/blas-2.1-r5.ebuild |
3825 |
+++ /dev/null |
3826 |
@@ -1,53 +0,0 @@ |
3827 |
-# Copyright 1999-2017 Gentoo Foundation |
3828 |
-# Distributed under the terms of the GNU General Public License v2 |
3829 |
- |
3830 |
-EAPI=6 |
3831 |
- |
3832 |
-inherit multilib-build multilib |
3833 |
- |
3834 |
-DESCRIPTION="Virtual for FORTRAN 77 BLAS implementation" |
3835 |
-HOMEPAGE="" |
3836 |
-SRC_URI="" |
3837 |
- |
3838 |
-LICENSE="" |
3839 |
-SLOT="0" |
3840 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
3841 |
-IUSE="doc int64" |
3842 |
- |
3843 |
-RDEPEND=" |
3844 |
- !app-eselect/eselect-blas |
3845 |
- || ( |
3846 |
- sci-libs/blas-reference[int64?,${MULTILIB_USEDEP}] |
3847 |
- >=sci-libs/openblas-0.2.11[int64?,${MULTILIB_USEDEP}] |
3848 |
- sci-libs/gotoblas2[int64?,${MULTILIB_USEDEP}] |
3849 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
3850 |
- abi_x86_64? ( |
3851 |
- !abi_x86_32? ( |
3852 |
- || ( |
3853 |
- >=dev-cpp/eigen-3.1.4[fortran] |
3854 |
- sci-libs/atlas[fortran] |
3855 |
- ) |
3856 |
- ) |
3857 |
- ) |
3858 |
- ) |
3859 |
- doc? ( >=app-doc/blas-docs-3.2 ) |
3860 |
- int64? ( |
3861 |
- || ( |
3862 |
- sci-libs/blas-reference[int64,${MULTILIB_USEDEP}] |
3863 |
- >=sci-libs/openblas-0.2.11[int64,${MULTILIB_USEDEP}] |
3864 |
- sci-libs/gotoblas2[int64,${MULTILIB_USEDEP}] |
3865 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
3866 |
- ) |
3867 |
- ) |
3868 |
-" |
3869 |
-DEPEND="" |
3870 |
- |
3871 |
-pkg_pretend() { |
3872 |
- if [[ -e "${EROOT%/}"/usr/$(get_libdir)/lib${PN}.so ]]; then |
3873 |
- ewarn "You have still the old ${PN} library symlink present" |
3874 |
- ewarn "Please delete" |
3875 |
- ewarn "${EROOT%/}/usr/$(get_libdir)/lib${PN}.so" |
3876 |
- ewarn "to avoid problems with new ${PN} structure" |
3877 |
- die "Old lib${PN} detected" |
3878 |
- fi |
3879 |
-} |
3880 |
|
3881 |
diff --git a/virtual/blas/blas-3.6-r100.ebuild b/virtual/blas/blas-3.6-r100.ebuild |
3882 |
deleted file mode 100644 |
3883 |
index 37afd2e29..000000000 |
3884 |
--- a/virtual/blas/blas-3.6-r100.ebuild |
3885 |
+++ /dev/null |
3886 |
@@ -1,53 +0,0 @@ |
3887 |
-# Copyright 1999-2017 Gentoo Foundation |
3888 |
-# Distributed under the terms of the GNU General Public License v2 |
3889 |
- |
3890 |
-EAPI=6 |
3891 |
- |
3892 |
-inherit multilib-build multilib |
3893 |
- |
3894 |
-DESCRIPTION="Virtual for FORTRAN 77 BLAS implementation" |
3895 |
-HOMEPAGE="" |
3896 |
-SRC_URI="" |
3897 |
- |
3898 |
-LICENSE="" |
3899 |
-SLOT="0" |
3900 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
3901 |
-IUSE="doc int64" |
3902 |
- |
3903 |
-RDEPEND=" |
3904 |
- !app-eselect/eselect-blas |
3905 |
- || ( |
3906 |
- >=sci-libs/blas-reference-20151113-r100[int64?,${MULTILIB_USEDEP}] |
3907 |
- >=sci-libs/openblas-0.2.11[int64?,${MULTILIB_USEDEP}] |
3908 |
- sci-libs/gotoblas2[int64?,${MULTILIB_USEDEP}] |
3909 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
3910 |
- abi_x86_64? ( |
3911 |
- !abi_x86_32? ( |
3912 |
- || ( |
3913 |
- >=dev-cpp/eigen-3.1.4[fortran] |
3914 |
- sci-libs/atlas[fortran] |
3915 |
- ) |
3916 |
- ) |
3917 |
- ) |
3918 |
- ) |
3919 |
- doc? ( >=app-doc/blas-docs-3.2 ) |
3920 |
- int64? ( |
3921 |
- || ( |
3922 |
- sci-libs/blas-reference[int64,${MULTILIB_USEDEP}] |
3923 |
- >=sci-libs/openblas-0.2.11[int64,${MULTILIB_USEDEP}] |
3924 |
- sci-libs/gotoblas2[int64,${MULTILIB_USEDEP}] |
3925 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
3926 |
- ) |
3927 |
- ) |
3928 |
-" |
3929 |
-DEPEND="" |
3930 |
- |
3931 |
-pkg_pretend() { |
3932 |
- if [[ -e "${EROOT%/}"/usr/$(get_libdir)/lib${PN}.so ]]; then |
3933 |
- ewarn "You have still the old ${PN} library symlink present" |
3934 |
- ewarn "Please delete" |
3935 |
- ewarn "${EROOT%/}/usr/$(get_libdir)/lib${PN}.so" |
3936 |
- ewarn "to avoid problems with new ${PN} structure" |
3937 |
- die "Old lib${PN} detected" |
3938 |
- fi |
3939 |
-} |
3940 |
|
3941 |
diff --git a/virtual/blas/blas-3.7-r100.ebuild b/virtual/blas/blas-3.7-r100.ebuild |
3942 |
deleted file mode 100644 |
3943 |
index 2c17daa33..000000000 |
3944 |
--- a/virtual/blas/blas-3.7-r100.ebuild |
3945 |
+++ /dev/null |
3946 |
@@ -1,53 +0,0 @@ |
3947 |
-# Copyright 1999-2017 Gentoo Foundation |
3948 |
-# Distributed under the terms of the GNU General Public License v2 |
3949 |
- |
3950 |
-EAPI=6 |
3951 |
- |
3952 |
-inherit multilib-build multilib |
3953 |
- |
3954 |
-DESCRIPTION="Virtual for FORTRAN 77 BLAS implementation" |
3955 |
-HOMEPAGE="" |
3956 |
-SRC_URI="" |
3957 |
- |
3958 |
-LICENSE="" |
3959 |
-SLOT="0" |
3960 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
3961 |
-IUSE="doc int64" |
3962 |
- |
3963 |
-RDEPEND=" |
3964 |
- !app-eselect/eselect-blas |
3965 |
- || ( |
3966 |
- >=sci-libs/blas-reference-20161223-r100[int64?,${MULTILIB_USEDEP}] |
3967 |
- >=sci-libs/openblas-0.2.11[int64?,${MULTILIB_USEDEP}] |
3968 |
- sci-libs/gotoblas2[int64?,${MULTILIB_USEDEP}] |
3969 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
3970 |
- abi_x86_64? ( |
3971 |
- !abi_x86_32? ( |
3972 |
- || ( |
3973 |
- >=dev-cpp/eigen-3.1.4[fortran] |
3974 |
- sci-libs/atlas[fortran] |
3975 |
- ) |
3976 |
- ) |
3977 |
- ) |
3978 |
- ) |
3979 |
- doc? ( >=app-doc/blas-docs-3.2 ) |
3980 |
- int64? ( |
3981 |
- || ( |
3982 |
- sci-libs/blas-reference[int64,${MULTILIB_USEDEP}] |
3983 |
- >=sci-libs/openblas-0.2.11[int64,${MULTILIB_USEDEP}] |
3984 |
- sci-libs/gotoblas2[int64,${MULTILIB_USEDEP}] |
3985 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
3986 |
- ) |
3987 |
- ) |
3988 |
-" |
3989 |
-DEPEND="" |
3990 |
- |
3991 |
-pkg_pretend() { |
3992 |
- if [[ -e "${EROOT%/}"/usr/$(get_libdir)/lib${PN}.so ]]; then |
3993 |
- ewarn "You have still the old ${PN} library symlink present" |
3994 |
- ewarn "Please delete" |
3995 |
- ewarn "${EROOT%/}/usr/$(get_libdir)/lib${PN}.so" |
3996 |
- ewarn "to avoid problems with new ${PN} structure" |
3997 |
- die "Old lib${PN} detected" |
3998 |
- fi |
3999 |
-} |
4000 |
|
4001 |
diff --git a/virtual/blas/metadata.xml b/virtual/blas/metadata.xml |
4002 |
deleted file mode 100644 |
4003 |
index f683eb986..000000000 |
4004 |
--- a/virtual/blas/metadata.xml |
4005 |
+++ /dev/null |
4006 |
@@ -1,16 +0,0 @@ |
4007 |
-<?xml version="1.0" encoding="UTF-8"?> |
4008 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
4009 |
-<pkgmetadata> |
4010 |
- <maintainer type="project"> |
4011 |
- <email>sci@g.o</email> |
4012 |
- <name>Gentoo Science Project</name> |
4013 |
- </maintainer> |
4014 |
- <longdescription lang="en"> |
4015 |
-Gentoo virtual package for the Basic Linear Algebra Subprograms |
4016 |
-FORTRAN 77 implementation. |
4017 |
-</longdescription> |
4018 |
- <use> |
4019 |
- <flag name="int64">Add eselect module for blas libraries built with 64 bits |
4020 |
-integer ABI</flag> |
4021 |
- </use> |
4022 |
-</pkgmetadata> |
4023 |
|
4024 |
diff --git a/virtual/cblas/cblas-2.0-r4.ebuild b/virtual/cblas/cblas-2.0-r4.ebuild |
4025 |
deleted file mode 100644 |
4026 |
index 14a030651..000000000 |
4027 |
--- a/virtual/cblas/cblas-2.0-r4.ebuild |
4028 |
+++ /dev/null |
4029 |
@@ -1,34 +0,0 @@ |
4030 |
-# Copyright 1999-2017 Gentoo Foundation |
4031 |
-# Distributed under the terms of the GNU General Public License v2 |
4032 |
- |
4033 |
-EAPI=6 |
4034 |
- |
4035 |
-inherit multilib-build |
4036 |
- |
4037 |
-DESCRIPTION="Virtual for BLAS C implementation" |
4038 |
-HOMEPAGE="" |
4039 |
-SRC_URI="" |
4040 |
- |
4041 |
-LICENSE="" |
4042 |
-SLOT="0" |
4043 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
4044 |
-IUSE="int64" |
4045 |
- |
4046 |
-RDEPEND=" |
4047 |
- || ( |
4048 |
- >=sci-libs/cblas-reference-20110218-r1[int64?,${MULTILIB_USEDEP}] |
4049 |
- >=sci-libs/openblas-0.2.11[int64?,${MULTILIB_USEDEP}] |
4050 |
- >=sci-libs/gsl-1.16-r2[-cblas-external,${MULTILIB_USEDEP}] |
4051 |
- >=sci-libs/gotoblas2-1.13[int64?,${MULTILIB_USEDEP}] |
4052 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
4053 |
- abi_x86_64? ( !abi_x86_32? ( >=sci-libs/atlas-3.9.34 ) ) |
4054 |
- ) |
4055 |
- int64? ( |
4056 |
- || ( |
4057 |
- >=sci-libs/openblas-0.2.11[int64,${MULTILIB_USEDEP}] |
4058 |
- >=sci-libs/cblas-reference-20110218-r1[int64,${MULTILIB_USEDEP}] |
4059 |
- >=sci-libs/gotoblas2-1.13[int64,${MULTILIB_USEDEP}] |
4060 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
4061 |
- ) |
4062 |
- )" |
4063 |
-DEPEND="" |
4064 |
|
4065 |
diff --git a/virtual/cblas/cblas-3.6-r100.ebuild b/virtual/cblas/cblas-3.6-r100.ebuild |
4066 |
deleted file mode 100644 |
4067 |
index 4adf7906c..000000000 |
4068 |
--- a/virtual/cblas/cblas-3.6-r100.ebuild |
4069 |
+++ /dev/null |
4070 |
@@ -1,34 +0,0 @@ |
4071 |
-# Copyright 1999-2017 Gentoo Foundation |
4072 |
-# Distributed under the terms of the GNU General Public License v2 |
4073 |
- |
4074 |
-EAPI=6 |
4075 |
- |
4076 |
-inherit multilib-build |
4077 |
- |
4078 |
-DESCRIPTION="Virtual for BLAS C implementation" |
4079 |
-HOMEPAGE="" |
4080 |
-SRC_URI="" |
4081 |
- |
4082 |
-LICENSE="" |
4083 |
-SLOT="0" |
4084 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
4085 |
-IUSE="int64" |
4086 |
- |
4087 |
-RDEPEND=" |
4088 |
- || ( |
4089 |
- >=sci-libs/cblas-reference-20151113-r100[int64?,${MULTILIB_USEDEP}] |
4090 |
- >=sci-libs/openblas-0.2.11[int64?,${MULTILIB_USEDEP}] |
4091 |
- >=sci-libs/gsl-1.16-r2[-cblas-external,${MULTILIB_USEDEP}] |
4092 |
- >=sci-libs/gotoblas2-1.13[int64?,${MULTILIB_USEDEP}] |
4093 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
4094 |
- abi_x86_64? ( !abi_x86_32? ( >=sci-libs/atlas-3.9.34 ) ) |
4095 |
- ) |
4096 |
- int64? ( |
4097 |
- || ( |
4098 |
- >=sci-libs/openblas-0.2.11[int64,${MULTILIB_USEDEP}] |
4099 |
- >=sci-libs/cblas-reference-20110218-r1[int64,${MULTILIB_USEDEP}] |
4100 |
- >=sci-libs/gotoblas2-1.13[int64,${MULTILIB_USEDEP}] |
4101 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
4102 |
- ) |
4103 |
- )" |
4104 |
-DEPEND="" |
4105 |
|
4106 |
diff --git a/virtual/cblas/cblas-3.7-r100.ebuild b/virtual/cblas/cblas-3.7-r100.ebuild |
4107 |
deleted file mode 100644 |
4108 |
index 51ed1b464..000000000 |
4109 |
--- a/virtual/cblas/cblas-3.7-r100.ebuild |
4110 |
+++ /dev/null |
4111 |
@@ -1,34 +0,0 @@ |
4112 |
-# Copyright 1999-2017 Gentoo Foundation |
4113 |
-# Distributed under the terms of the GNU General Public License v2 |
4114 |
- |
4115 |
-EAPI=6 |
4116 |
- |
4117 |
-inherit multilib-build |
4118 |
- |
4119 |
-DESCRIPTION="Virtual for BLAS C implementation" |
4120 |
-HOMEPAGE="" |
4121 |
-SRC_URI="" |
4122 |
- |
4123 |
-LICENSE="" |
4124 |
-SLOT="0" |
4125 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
4126 |
-IUSE="int64" |
4127 |
- |
4128 |
-RDEPEND=" |
4129 |
- || ( |
4130 |
- >=sci-libs/cblas-reference-20161223-r100[int64?,${MULTILIB_USEDEP}] |
4131 |
- >=sci-libs/openblas-0.2.11[int64?,${MULTILIB_USEDEP}] |
4132 |
- >=sci-libs/gsl-1.16-r2[-cblas-external,${MULTILIB_USEDEP}] |
4133 |
- >=sci-libs/gotoblas2-1.13[int64?,${MULTILIB_USEDEP}] |
4134 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
4135 |
- abi_x86_64? ( !abi_x86_32? ( >=sci-libs/atlas-3.9.34 ) ) |
4136 |
- ) |
4137 |
- int64? ( |
4138 |
- || ( |
4139 |
- >=sci-libs/openblas-0.2.11[int64,${MULTILIB_USEDEP}] |
4140 |
- >=sci-libs/cblas-reference-20110218-r1[int64,${MULTILIB_USEDEP}] |
4141 |
- >=sci-libs/gotoblas2-1.13[int64,${MULTILIB_USEDEP}] |
4142 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
4143 |
- ) |
4144 |
- )" |
4145 |
-DEPEND="" |
4146 |
|
4147 |
diff --git a/virtual/cblas/metadata.xml b/virtual/cblas/metadata.xml |
4148 |
deleted file mode 100644 |
4149 |
index 1f78cc421..000000000 |
4150 |
--- a/virtual/cblas/metadata.xml |
4151 |
+++ /dev/null |
4152 |
@@ -1,16 +0,0 @@ |
4153 |
-<?xml version="1.0" encoding="UTF-8"?> |
4154 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
4155 |
-<pkgmetadata> |
4156 |
- <maintainer type="project"> |
4157 |
- <email>sci@g.o</email> |
4158 |
- <name>Gentoo Science Project</name> |
4159 |
- </maintainer> |
4160 |
- <longdescription lang="en"> |
4161 |
-Gentoo virtual package for the Basic Linear Algebra Subprograms |
4162 |
-C implementation. |
4163 |
-</longdescription> |
4164 |
- <use> |
4165 |
- <flag name="int64">Add eselect module for cblas libraries built with 64 bits |
4166 |
-integer ABI</flag> |
4167 |
- </use> |
4168 |
-</pkgmetadata> |
4169 |
|
4170 |
diff --git a/virtual/lapack/lapack-3.6-r100.ebuild b/virtual/lapack/lapack-3.6-r100.ebuild |
4171 |
deleted file mode 100644 |
4172 |
index 64256ca6d..000000000 |
4173 |
--- a/virtual/lapack/lapack-3.6-r100.ebuild |
4174 |
+++ /dev/null |
4175 |
@@ -1,40 +0,0 @@ |
4176 |
-# Copyright 1999-2017 Gentoo Foundation |
4177 |
-# Distributed under the terms of the GNU General Public License v2 |
4178 |
- |
4179 |
-EAPI=6 |
4180 |
- |
4181 |
-inherit multilib-build |
4182 |
- |
4183 |
-DESCRIPTION="Virtual for Linear Algebra Package FORTRAN 77 implementation" |
4184 |
-HOMEPAGE="" |
4185 |
-SRC_URI="" |
4186 |
- |
4187 |
-LICENSE="" |
4188 |
-SLOT="0" |
4189 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
4190 |
-IUSE="doc int64" |
4191 |
- |
4192 |
-RDEPEND=" |
4193 |
- !app-eselect/eselect-lapack |
4194 |
- || ( |
4195 |
- >=sci-libs/lapack-reference-${PV}-r100[int64?,${MULTILIB_USEDEP}] |
4196 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
4197 |
- abi_x86_64? ( !abi_x86_32? ( >=sci-libs/atlas-3.9.34[lapack] ) ) |
4198 |
- ) |
4199 |
- int64? ( |
4200 |
- || ( |
4201 |
- >=sci-libs/lapack-reference-${PV}[int64,${MULTILIB_USEDEP}] |
4202 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
4203 |
- ) |
4204 |
- ) |
4205 |
- doc? ( >=app-doc/lapack-docs-3.3 )" |
4206 |
-DEPEND="" |
4207 |
- |
4208 |
-pkg_pretend() { |
4209 |
- if [[ -e "${EROOT%/}"/usr/$(get_libdir)/lib${PN}.so ]]; then |
4210 |
- ewarn "You have still the old ${PN} library symlink present" |
4211 |
- ewarn "Please delete" |
4212 |
- ewarn "${EROOT%/}/usr/$(get_libdir)/lib${PN}.so" |
4213 |
- ewarn "to avoid problems with new ${PN} structure" |
4214 |
- fi |
4215 |
-} |
4216 |
|
4217 |
diff --git a/virtual/lapack/lapack-3.7-r100.ebuild b/virtual/lapack/lapack-3.7-r100.ebuild |
4218 |
deleted file mode 100644 |
4219 |
index 64256ca6d..000000000 |
4220 |
--- a/virtual/lapack/lapack-3.7-r100.ebuild |
4221 |
+++ /dev/null |
4222 |
@@ -1,40 +0,0 @@ |
4223 |
-# Copyright 1999-2017 Gentoo Foundation |
4224 |
-# Distributed under the terms of the GNU General Public License v2 |
4225 |
- |
4226 |
-EAPI=6 |
4227 |
- |
4228 |
-inherit multilib-build |
4229 |
- |
4230 |
-DESCRIPTION="Virtual for Linear Algebra Package FORTRAN 77 implementation" |
4231 |
-HOMEPAGE="" |
4232 |
-SRC_URI="" |
4233 |
- |
4234 |
-LICENSE="" |
4235 |
-SLOT="0" |
4236 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
4237 |
-IUSE="doc int64" |
4238 |
- |
4239 |
-RDEPEND=" |
4240 |
- !app-eselect/eselect-lapack |
4241 |
- || ( |
4242 |
- >=sci-libs/lapack-reference-${PV}-r100[int64?,${MULTILIB_USEDEP}] |
4243 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
4244 |
- abi_x86_64? ( !abi_x86_32? ( >=sci-libs/atlas-3.9.34[lapack] ) ) |
4245 |
- ) |
4246 |
- int64? ( |
4247 |
- || ( |
4248 |
- >=sci-libs/lapack-reference-${PV}[int64,${MULTILIB_USEDEP}] |
4249 |
- sci-libs/mkl[int64,${MULTILIB_USEDEP}] |
4250 |
- ) |
4251 |
- ) |
4252 |
- doc? ( >=app-doc/lapack-docs-3.3 )" |
4253 |
-DEPEND="" |
4254 |
- |
4255 |
-pkg_pretend() { |
4256 |
- if [[ -e "${EROOT%/}"/usr/$(get_libdir)/lib${PN}.so ]]; then |
4257 |
- ewarn "You have still the old ${PN} library symlink present" |
4258 |
- ewarn "Please delete" |
4259 |
- ewarn "${EROOT%/}/usr/$(get_libdir)/lib${PN}.so" |
4260 |
- ewarn "to avoid problems with new ${PN} structure" |
4261 |
- fi |
4262 |
-} |
4263 |
|
4264 |
diff --git a/virtual/lapack/metadata.xml b/virtual/lapack/metadata.xml |
4265 |
deleted file mode 100644 |
4266 |
index 6148c6b10..000000000 |
4267 |
--- a/virtual/lapack/metadata.xml |
4268 |
+++ /dev/null |
4269 |
@@ -1,17 +0,0 @@ |
4270 |
-<?xml version="1.0" encoding="UTF-8"?> |
4271 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
4272 |
-<pkgmetadata> |
4273 |
- <maintainer type="project"> |
4274 |
- <email>sci@g.o</email> |
4275 |
- <name>Gentoo Science Project</name> |
4276 |
- </maintainer> |
4277 |
- <longdescription lang="en"> |
4278 |
-Gentoo virtual package for the Linear Algebra PACKAge |
4279 |
-FORTRAN 77 implementation. The version number corresponds to the |
4280 |
-version of the LAPACK reference implementation. |
4281 |
-</longdescription> |
4282 |
- <use> |
4283 |
- <flag name="int64">Add eselect module for lapack libraries built with 64 bits |
4284 |
-integer ABI</flag> |
4285 |
- </use> |
4286 |
-</pkgmetadata> |
4287 |
|
4288 |
diff --git a/virtual/lapacke/lapacke-3.6.ebuild b/virtual/lapacke/lapacke-3.6.ebuild |
4289 |
deleted file mode 100644 |
4290 |
index 594d6e640..000000000 |
4291 |
--- a/virtual/lapacke/lapacke-3.6.ebuild |
4292 |
+++ /dev/null |
4293 |
@@ -1,24 +0,0 @@ |
4294 |
-# Copyright 1999-2017 Gentoo Foundation |
4295 |
-# Distributed under the terms of the GNU General Public License v2 |
4296 |
- |
4297 |
-EAPI=6 |
4298 |
- |
4299 |
-inherit multilib-build |
4300 |
- |
4301 |
-DESCRIPTION="Virtual for LAPACK C implementation" |
4302 |
-HOMEPAGE="" |
4303 |
-SRC_URI="" |
4304 |
- |
4305 |
-LICENSE="" |
4306 |
-SLOT="0" |
4307 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
4308 |
-IUSE="int64" |
4309 |
- |
4310 |
-RDEPEND=" |
4311 |
- || ( |
4312 |
- abi_x86_64? ( !abi_x86_32? ( >=sci-libs/lapacke-reference-${PV} ) ) |
4313 |
- sci-libs/mkl[int64?,${MULTILIB_USEDEP}] |
4314 |
- ) |
4315 |
- int64? ( sci-libs/mkl[int64,${MULTILIB_USEDEP}] ) |
4316 |
- " |
4317 |
-DEPEND="" |
4318 |
|
4319 |
diff --git a/virtual/lapacke/metadata.xml b/virtual/lapacke/metadata.xml |
4320 |
deleted file mode 100644 |
4321 |
index 52b90821b..000000000 |
4322 |
--- a/virtual/lapacke/metadata.xml |
4323 |
+++ /dev/null |
4324 |
@@ -1,16 +0,0 @@ |
4325 |
-<?xml version="1.0" encoding="UTF-8"?> |
4326 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
4327 |
-<pkgmetadata> |
4328 |
- <maintainer type="project"> |
4329 |
- <email>sci@g.o</email> |
4330 |
- <name>Gentoo Science Project</name> |
4331 |
- </maintainer> |
4332 |
- <longdescription lang="en"> |
4333 |
-Gentoo virtual package for the Linear Algebra PACKAge |
4334 |
-C implementation. |
4335 |
-</longdescription> |
4336 |
- <use> |
4337 |
- <flag name="int64">Add eselect module for blas libraries built with 64 bits |
4338 |
-integer ABI</flag> |
4339 |
- </use> |
4340 |
-</pkgmetadata> |