aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2007-08-16 16:00:47 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2007-08-16 16:00:47 +0000
commitc399feead1b8d9ea84e3940a60a02f6b056d5df5 (patch)
tree9c6487ff15eb20e050bd3959e766f0daa43f010f /sci-libs/lapack-atlas
parentadded new virtual blas, cblas and lapack (diff)
downloadsci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.tar.gz
sci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.tar.bz2
sci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.zip
added many updates to blas/lapack packages
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@691 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/lapack-atlas')
-rw-r--r--sci-libs/lapack-atlas/Manifest38
-rw-r--r--sci-libs/lapack-atlas/files/atlas-asm-gentoo.patch12
-rw-r--r--sci-libs/lapack-atlas/files/digest-lapack-atlas-3.7.379
-rw-r--r--sci-libs/lapack-atlas/files/eselect.lapack.atlas4
-rw-r--r--sci-libs/lapack-atlas/files/lapack-reference-3.1.1-autotool.patch374
-rw-r--r--sci-libs/lapack-atlas/files/lapack-reference-3.1.1-test-fix.patch36
-rw-r--r--sci-libs/lapack-atlas/files/lapack.pc.in13
-rw-r--r--sci-libs/lapack-atlas/files/war26
-rw-r--r--sci-libs/lapack-atlas/lapack-atlas-3.7.37.ebuild168
-rw-r--r--sci-libs/lapack-atlas/metadata.xml14
10 files changed, 694 insertions, 0 deletions
diff --git a/sci-libs/lapack-atlas/Manifest b/sci-libs/lapack-atlas/Manifest
new file mode 100644
index 000000000..7f2f49553
--- /dev/null
+++ b/sci-libs/lapack-atlas/Manifest
@@ -0,0 +1,38 @@
+AUX atlas-asm-gentoo.patch 408 RMD160 3cea2f4a5a96ec22a4d0cfc78d691198a2d1a0da SHA1 493d066be68c66cca1f0c906d588da8983ec7afa SHA256 00f9247d422c758ef8ff43446a36a6dbb7962f94e5d01307318c87a90a78355b
+MD5 fb9ca923b595b67967a744339e7a32a6 files/atlas-asm-gentoo.patch 408
+RMD160 3cea2f4a5a96ec22a4d0cfc78d691198a2d1a0da files/atlas-asm-gentoo.patch 408
+SHA256 00f9247d422c758ef8ff43446a36a6dbb7962f94e5d01307318c87a90a78355b files/atlas-asm-gentoo.patch 408
+AUX eselect.lapack.atlas 221 RMD160 10a38380469d069b7562b1c8f5a11d0ca94c806d SHA1 381462731ef8f618e8c3cd115c3da812b6f7c2ba SHA256 41b00b000df42c14cc483b468b19d586995b4f528544e24e7aba25feab966a64
+MD5 17542dc2fda336886d50104d48e95487 files/eselect.lapack.atlas 221
+RMD160 10a38380469d069b7562b1c8f5a11d0ca94c806d files/eselect.lapack.atlas 221
+SHA256 41b00b000df42c14cc483b468b19d586995b4f528544e24e7aba25feab966a64 files/eselect.lapack.atlas 221
+AUX lapack-reference-3.1.1-autotool.patch 16994 RMD160 becd221cdb3dcdb0dd3ac4b7c11416c5da6aba44 SHA1 a1eda6146c1cd32f972b0f1703610c85b58b7c74 SHA256 6cd32492e97740d3e98e93de38a0e192dd6d249c35ade4caf7e7ab4c45edadec
+MD5 0750e86c04390617206f5170f2c07652 files/lapack-reference-3.1.1-autotool.patch 16994
+RMD160 becd221cdb3dcdb0dd3ac4b7c11416c5da6aba44 files/lapack-reference-3.1.1-autotool.patch 16994
+SHA256 6cd32492e97740d3e98e93de38a0e192dd6d249c35ade4caf7e7ab4c45edadec files/lapack-reference-3.1.1-autotool.patch 16994
+AUX lapack-reference-3.1.1-test-fix.patch 2120 RMD160 9c37d349af207f0bbb6deb1ae88addb9676c73fc SHA1 bf73066396b08def6bcd81d0ce09aab682224cb1 SHA256 40c514db2bf9a08ce9630e53058ef3d863fd981c774987b233f6bdce3601a6f8
+MD5 d9f7c5dbfc41c255eab86b32702f5650 files/lapack-reference-3.1.1-test-fix.patch 2120
+RMD160 9c37d349af207f0bbb6deb1ae88addb9676c73fc files/lapack-reference-3.1.1-test-fix.patch 2120
+SHA256 40c514db2bf9a08ce9630e53058ef3d863fd981c774987b233f6bdce3601a6f8 files/lapack-reference-3.1.1-test-fix.patch 2120
+AUX lapack.pc.in 346 RMD160 37e53e81a13ae0745bb4f70b960cf55ed7e091d2 SHA1 72158ced78039be6e35d2a48ac19c8126945566d SHA256 75cf6520921f344b83a8c0c085cbaefd12debc371ae1ef9dbcd6edd9b829ade2
+MD5 e9c548422f243390920d81d59e57e1a2 files/lapack.pc.in 346
+RMD160 37e53e81a13ae0745bb4f70b960cf55ed7e091d2 files/lapack.pc.in 346
+SHA256 75cf6520921f344b83a8c0c085cbaefd12debc371ae1ef9dbcd6edd9b829ade2 files/lapack.pc.in 346
+AUX war 545 RMD160 6f44c25e739703f988180959608094aa633db7bf SHA1 d90a66e57395e01b94bac9b444590de8fef77aca SHA256 696a8e1cc3918ce5d19f0aa41250d5f052244527a5e3804b025db7938f06ae7b
+MD5 13d26350d75e6993f1b3ec48ca97f14e files/war 545
+RMD160 6f44c25e739703f988180959608094aa633db7bf files/war 545
+SHA256 696a8e1cc3918ce5d19f0aa41250d5f052244527a5e3804b025db7938f06ae7b files/war 545
+DIST atlas-3.7.37-shared-libs.patch.bz2 6373 RMD160 bcfb01319951b8ea5def473f47e6b8f3ea37906a SHA1 c8ca108f50a7968ad98be64a70ea1b0b5e87ad5d SHA256 17cd5fe09733eff63f3c332d63ca42bc62d461830027de9052eb24c48dadc9ec
+DIST atlas3.7.37.tar.bz2 2282682 RMD160 33f728d2d25c396179748c43aeff9ab71107ddc8 SHA1 32ea739fc4682fb2a9b6625d1a912baaf8f31e1a SHA256 bbc56b6355c07666d8021f640da00a35838e87ec4cb4cf52bdbb25336635fd65
+DIST lapack-lite-3.1.1.tgz 5332509 RMD160 d81baafd1f0f9859d9f75ac9b658f743544b5f5b SHA1 1ec4ef90b544cf82bc7b4f770cee6fb46da457c5 SHA256 505a13272d0d71c45ea52be2de74b0562b234ea3ccf5160665c7a2ee74a58437
+EBUILD lapack-atlas-3.7.37.ebuild 5100 RMD160 cc652537f4e13831d055571dd2c21951291841c3 SHA1 d4aa0d0ae5a42fd76117a7da4d9b7109aea23433 SHA256 085bdc0db44fb524e9aa2d691d616353670a0f0cbb54aaee51a9f24a7c3fe1b6
+MD5 7799498dda7d4e0d4e6215f402d9bf97 lapack-atlas-3.7.37.ebuild 5100
+RMD160 cc652537f4e13831d055571dd2c21951291841c3 lapack-atlas-3.7.37.ebuild 5100
+SHA256 085bdc0db44fb524e9aa2d691d616353670a0f0cbb54aaee51a9f24a7c3fe1b6 lapack-atlas-3.7.37.ebuild 5100
+MISC metadata.xml 654 RMD160 06f9ca1f9b2c2c3452dd71c61dba3a55b0c5e4e6 SHA1 0462e763a17b33d2ff889eb4d25751ea9a117840 SHA256 dc1ac3c41329b360274e3a2c393e390467a8d72cb64e10de2dddab060617bf1e
+MD5 382af87e1a8465db41ae327e9cf042cf metadata.xml 654
+RMD160 06f9ca1f9b2c2c3452dd71c61dba3a55b0c5e4e6 metadata.xml 654
+SHA256 dc1ac3c41329b360274e3a2c393e390467a8d72cb64e10de2dddab060617bf1e metadata.xml 654
+MD5 a16a900e97473c5c2ab966ef092137e8 files/digest-lapack-atlas-3.7.37 765
+RMD160 73290ce934eb794d71460e024269741717439de8 files/digest-lapack-atlas-3.7.37 765
+SHA256 579d452aaadb1d7db023309c983a2a4bfe063ce893ead5003baf84d9fc32fa0e files/digest-lapack-atlas-3.7.37 765
diff --git a/sci-libs/lapack-atlas/files/atlas-asm-gentoo.patch b/sci-libs/lapack-atlas/files/atlas-asm-gentoo.patch
new file mode 100644
index 000000000..ca5a7a8ee
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/atlas-asm-gentoo.patch
@@ -0,0 +1,12 @@
+diff -Naur ATLAS/include/contrib/camm_dpa.h ATLAS-new/include/contrib/camm_dpa.h
+--- ATLAS/include/contrib/camm_dpa.h 2006-09-09 15:33:15.000000000 -0400
++++ ATLAS-new/include/contrib/camm_dpa.h 2006-09-26 10:18:24.000000000 -0400
+@@ -1619,7 +1619,7 @@
+ #if defined(SCPLX) || (defined(DCPLX) && defined(ATL_SSE2))
+ ,"m" (w)
+ #endif
+- :"ax","bx","cx","dx","si","di");
++ :"ax","cx","dx","si","di");
+
+
+ }
diff --git a/sci-libs/lapack-atlas/files/digest-lapack-atlas-3.7.37 b/sci-libs/lapack-atlas/files/digest-lapack-atlas-3.7.37
new file mode 100644
index 000000000..62b35b085
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/digest-lapack-atlas-3.7.37
@@ -0,0 +1,9 @@
+MD5 88fe3d5e7eb9cda6f87be1264d5995b4 atlas-3.7.37-shared-libs.patch.bz2 6373
+RMD160 bcfb01319951b8ea5def473f47e6b8f3ea37906a atlas-3.7.37-shared-libs.patch.bz2 6373
+SHA256 17cd5fe09733eff63f3c332d63ca42bc62d461830027de9052eb24c48dadc9ec atlas-3.7.37-shared-libs.patch.bz2 6373
+MD5 5c3fb9a4c74e8426105558a23b2215ff atlas3.7.37.tar.bz2 2282682
+RMD160 33f728d2d25c396179748c43aeff9ab71107ddc8 atlas3.7.37.tar.bz2 2282682
+SHA256 bbc56b6355c07666d8021f640da00a35838e87ec4cb4cf52bdbb25336635fd65 atlas3.7.37.tar.bz2 2282682
+MD5 5feace3f4507a92ef822b2e0b50151d7 lapack-lite-3.1.1.tgz 5332509
+RMD160 d81baafd1f0f9859d9f75ac9b658f743544b5f5b lapack-lite-3.1.1.tgz 5332509
+SHA256 505a13272d0d71c45ea52be2de74b0562b234ea3ccf5160665c7a2ee74a58437 lapack-lite-3.1.1.tgz 5332509
diff --git a/sci-libs/lapack-atlas/files/eselect.lapack.atlas b/sci-libs/lapack-atlas/files/eselect.lapack.atlas
new file mode 100644
index 000000000..7478b5154
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/eselect.lapack.atlas
@@ -0,0 +1,4 @@
+lapack/atlas/liblapack.so /usr/@LIBDIR@/liblapack.so
+lapack/atlas/liblapack.so.0 /usr/@LIBDIR@/liblapack.so.0
+lapack/atlas/liblapack.a /usr/@LIBDIR@/liblapack.a
+../lapack/atlas/lapack.pc /usr/@LIBDIR@/pkgconfig/lapack.pc
diff --git a/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-autotool.patch b/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-autotool.patch
new file mode 100644
index 000000000..72a00618c
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-autotool.patch
@@ -0,0 +1,374 @@
+--- configure.ac 1970-01-01 01:00:00.000000000 +0100
++++ configure.ac 2007-08-14 10:28:36.000000000 +0100
+@@ -0,0 +1,26 @@
++AC_PREREQ(2.61)
++AC_INIT(lapack, 3.1.1, lapack@cs.utk.edu)
++AM_INIT_AUTOMAKE([foreign])
++
++AC_LANG(Fortran 77)
++AC_PROG_F77
++AC_PROG_LIBTOOL
++
++AC_F77_FUNC(sgemm)
++
++PKG_PROG_PKG_CONFIG
++if test -n "$PKG_CONFIG"; then
++ PKG_CHECK_MODULES([BLAS], [blas])
++else
++ AC_CHECK_LIB(blas, $sgemm)
++ BLAS_LIBS=-lblas
++ AC_SUBST(BLAS_LIBS)
++fi
++
++AC_ARG_VAR(NOOPT_FFLAGS, Fortran 77 compiler flags to use for unoptimized files)
++
++AC_CONFIG_FILES([Makefile
++ SRC/Makefile
++ INSTALL/Makefile
++ lapack.pc])
++AC_OUTPUT
+--- Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ Makefile.am 2007-08-14 11:39:34.000000000 +0100
+@@ -0,0 +1,6 @@
++SUBDIRS = INSTALL SRC
++
++pkgconfigdir = $(libdir)
++pkgconfig_DATA = lapack.pc
++
++EXTRA_DIST = README lapack.pc
+--- lapack.pc.in 1970-01-01 01:00:00.000000000 +0100
++++ lapack.pc.in 2007-08-14 17:16:49.000000000 +0100
+@@ -0,0 +1,12 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: @PACKAGE_NAME@
++Description: Linear Algebra PACKage FORTRAN 77 reference implementation
++Version: @PACKAGE_VERSION@
++Requires: blas
++URL: http://www.netlib.org/lapack/
++Libs: -llapack
++Libs.private: -lm
+--- SRC/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ SRC/Makefile.am 2007-08-02 15:15:59.000000000 +0100
+@@ -0,0 +1,292 @@
++lib_LTLIBRARIES = \
++ liblapack.la
++
++noinst_LTLIBRARIES = \
++ liblapack-noopt.la
++
++ALLAUX_SOURCES = ilaenv.f ieeeck.f lsamen.f xerbla.f iparmq.f \
++ ../INSTALL/ilaver.f ../INSTALL/lsame.f
++
++SINGLE_NOOPT_SOURCES = \
++ slaruv.f ../INSTALL/slamch.f
++
++SINGLE_SOURCES = \
++ sbdsdc.f \
++ sbdsqr.f sdisna.f slabad.f slacpy.f sladiv.f slae2.f slaebz.f \
++ slaed0.f slaed1.f slaed2.f slaed3.f slaed4.f slaed5.f slaed6.f \
++ slaed7.f slaed8.f slaed9.f slaeda.f slaev2.f slagtf.f \
++ slagts.f slamrg.f slanst.f \
++ slapy2.f slapy3.f slarnv.f \
++ slarra.f slarrb.f slarrc.f slarrd.f slarre.f slarrf.f slarrj.f \
++ slarrk.f slarrr.f slaneg.f \
++ slartg.f slas2.f slascl.f \
++ slasd0.f slasd1.f slasd2.f slasd3.f slasd4.f slasd5.f slasd6.f \
++ slasd7.f slasd8.f slasda.f slasdq.f slasdt.f \
++ slaset.f slasq1.f slasq2.f slasq3.f slazq3.f slasq4.f slazq4.f slasq5.f slasq6.f \
++ slasr.f slasrt.f slassq.f slasv2.f spttrf.f sstebz.f sstedc.f \
++ ssteqr.f ssterf.f slaisnan.f sisnan.f \
++ ../INSTALL/second_INT_CPU_TIME.f
++
++DOUBLE_NOOPT_SOURCES = \
++ dlaruv.f ../INSTALL/dlamch.f
++
++DOUBLE_SOURCES = \
++ dbdsdc.f \
++ dbdsqr.f ddisna.f dlabad.f dlacpy.f dladiv.f dlae2.f dlaebz.f \
++ dlaed0.f dlaed1.f dlaed2.f dlaed3.f dlaed4.f dlaed5.f dlaed6.f \
++ dlaed7.f dlaed8.f dlaed9.f dlaeda.f dlaev2.f dlagtf.f \
++ dlagts.f dlamrg.f dlanst.f \
++ dlapy2.f dlapy3.f dlarnv.f \
++ dlarra.f dlarrb.f dlarrc.f dlarrd.f dlarre.f dlarrf.f dlarrj.f \
++ dlarrk.f dlarrr.f dlaneg.f \
++ dlartg.f dlas2.f dlascl.f \
++ dlasd0.f dlasd1.f dlasd2.f dlasd3.f dlasd4.f dlasd5.f dlasd6.f \
++ dlasd7.f dlasd8.f dlasda.f dlasdq.f dlasdt.f \
++ dlaset.f dlasq1.f dlasq2.f dlasq3.f dlazq3.f dlasq4.f dlazq4.f dlasq5.f dlasq6.f \
++ dlasr.f dlasrt.f dlassq.f dlasv2.f dpttrf.f dstebz.f dstedc.f \
++ dsteqr.f dsterf.f dlaisnan.f disnan.f \
++ ../INSTALL/dsecnd_INT_CPU_TIME.f
++
++S_SOURCES = \
++ sgbbrd.f sgbcon.f sgbequ.f sgbrfs.f sgbsv.f \
++ sgbsvx.f sgbtf2.f sgbtrf.f sgbtrs.f sgebak.f sgebal.f sgebd2.f \
++ sgebrd.f sgecon.f sgeequ.f sgees.f sgeesx.f sgeev.f sgeevx.f \
++ sgegs.f sgegv.f sgehd2.f sgehrd.f sgelq2.f sgelqf.f \
++ sgels.f sgelsd.f sgelss.f sgelsx.f sgelsy.f sgeql2.f sgeqlf.f \
++ sgeqp3.f sgeqpf.f sgeqr2.f sgeqrf.f sgerfs.f sgerq2.f sgerqf.f \
++ sgesc2.f sgesdd.f sgesv.f sgesvd.f sgesvx.f sgetc2.f sgetf2.f \
++ sgetrf.f sgetri.f \
++ sgetrs.f sggbak.f sggbal.f sgges.f sggesx.f sggev.f sggevx.f \
++ sggglm.f sgghrd.f sgglse.f sggqrf.f \
++ sggrqf.f sggsvd.f sggsvp.f sgtcon.f sgtrfs.f sgtsv.f \
++ sgtsvx.f sgttrf.f sgttrs.f sgtts2.f shgeqz.f \
++ shsein.f shseqr.f slabrd.f slacon.f slacn2.f \
++ slaein.f slaexc.f slag2.f slags2.f slagtm.f slagv2.f slahqr.f \
++ slahrd.f slahr2.f slaic1.f slaln2.f slals0.f slalsa.f slalsd.f \
++ slangb.f slange.f slangt.f slanhs.f slansb.f slansp.f \
++ slansy.f slantb.f slantp.f slantr.f slanv2.f \
++ slapll.f slapmt.f \
++ slaqgb.f slaqge.f slaqp2.f slaqps.f slaqsb.f slaqsp.f slaqsy.f \
++ slaqr0.f slaqr1.f slaqr2.f slaqr3.f slaqr4.f slaqr5.f \
++ slaqtr.f slar1v.f slar2v.f \
++ slarf.f slarfb.f slarfg.f slarft.f slarfx.f slargv.f \
++ slarrv.f slartv.f \
++ slarz.f slarzb.f slarzt.f slaswp.f slasy2.f slasyf.f \
++ slatbs.f slatdf.f slatps.f slatrd.f slatrs.f slatrz.f slatzm.f \
++ slauu2.f slauum.f sopgtr.f sopmtr.f sorg2l.f sorg2r.f \
++ sorgbr.f sorghr.f sorgl2.f sorglq.f sorgql.f sorgqr.f sorgr2.f \
++ sorgrq.f sorgtr.f sorm2l.f sorm2r.f \
++ sormbr.f sormhr.f sorml2.f sormlq.f sormql.f sormqr.f sormr2.f \
++ sormr3.f sormrq.f sormrz.f sormtr.f spbcon.f spbequ.f spbrfs.f \
++ spbstf.f spbsv.f spbsvx.f \
++ spbtf2.f spbtrf.f spbtrs.f spocon.f spoequ.f sporfs.f sposv.f \
++ sposvx.f spotf2.f spotrf.f spotri.f spotrs.f sppcon.f sppequ.f \
++ spprfs.f sppsv.f sppsvx.f spptrf.f spptri.f spptrs.f sptcon.f \
++ spteqr.f sptrfs.f sptsv.f sptsvx.f spttrs.f sptts2.f srscl.f \
++ ssbev.f ssbevd.f ssbevx.f ssbgst.f ssbgv.f ssbgvd.f ssbgvx.f \
++ ssbtrd.f sspcon.f sspev.f sspevd.f sspevx.f sspgst.f \
++ sspgv.f sspgvd.f sspgvx.f ssprfs.f sspsv.f sspsvx.f ssptrd.f \
++ ssptrf.f ssptri.f ssptrs.f sstegr.f sstein.f sstev.f sstevd.f sstevr.f \
++ sstevx.f ssycon.f ssyev.f ssyevd.f ssyevr.f ssyevx.f ssygs2.f \
++ ssygst.f ssygv.f ssygvd.f ssygvx.f ssyrfs.f ssysv.f ssysvx.f \
++ ssytd2.f ssytf2.f ssytrd.f ssytrf.f ssytri.f ssytrs.f stbcon.f \
++ stbrfs.f stbtrs.f stgevc.f stgex2.f stgexc.f stgsen.f \
++ stgsja.f stgsna.f stgsy2.f stgsyl.f stpcon.f stprfs.f stptri.f \
++ stptrs.f \
++ strcon.f strevc.f strexc.f strrfs.f strsen.f strsna.f strsyl.f \
++ strti2.f strtri.f strtrs.f stzrqf.f stzrzf.f sstemr.f
++
++C_SOURCES = \
++ cbdsqr.f cgbbrd.f cgbcon.f cgbequ.f cgbrfs.f cgbsv.f cgbsvx.f \
++ cgbtf2.f cgbtrf.f cgbtrs.f cgebak.f cgebal.f cgebd2.f cgebrd.f \
++ cgecon.f cgeequ.f cgees.f cgeesx.f cgeev.f cgeevx.f \
++ cgegs.f cgegv.f cgehd2.f cgehrd.f cgelq2.f cgelqf.f \
++ cgels.f cgelsd.f cgelss.f cgelsx.f cgelsy.f cgeql2.f cgeqlf.f cgeqp3.f \
++ cgeqpf.f cgeqr2.f cgeqrf.f cgerfs.f cgerq2.f cgerqf.f \
++ cgesc2.f cgesdd.f cgesv.f cgesvd.f cgesvx.f cgetc2.f cgetf2.f cgetrf.f \
++ cgetri.f cgetrs.f \
++ cggbak.f cggbal.f cgges.f cggesx.f cggev.f cggevx.f cggglm.f \
++ cgghrd.f cgglse.f cggqrf.f cggrqf.f \
++ cggsvd.f cggsvp.f \
++ cgtcon.f cgtrfs.f cgtsv.f cgtsvx.f cgttrf.f cgttrs.f cgtts2.f chbev.f \
++ chbevd.f chbevx.f chbgst.f chbgv.f chbgvd.f chbgvx.f chbtrd.f \
++ checon.f cheev.f cheevd.f cheevr.f cheevx.f chegs2.f chegst.f \
++ chegv.f chegvd.f chegvx.f cherfs.f chesv.f chesvx.f chetd2.f \
++ chetf2.f chetrd.f \
++ chetrf.f chetri.f chetrs.f chgeqz.f chpcon.f chpev.f chpevd.f \
++ chpevx.f chpgst.f chpgv.f chpgvd.f chpgvx.f chprfs.f chpsv.f \
++ chpsvx.f \
++ chptrd.f chptrf.f chptri.f chptrs.f chsein.f chseqr.f clabrd.f \
++ clacgv.f clacon.f clacn2.f clacp2.f clacpy.f clacrm.f clacrt.f cladiv.f \
++ claed0.f claed7.f claed8.f \
++ claein.f claesy.f claev2.f clags2.f clagtm.f \
++ clahef.f clahqr.f \
++ clahrd.f clahr2.f claic1.f clals0.f clalsa.f clalsd.f clangb.f clange.f clangt.f \
++ clanhb.f clanhe.f \
++ clanhp.f clanhs.f clanht.f clansb.f clansp.f clansy.f clantb.f \
++ clantp.f clantr.f clapll.f clapmt.f clarcm.f claqgb.f claqge.f \
++ claqhb.f claqhe.f claqhp.f claqp2.f claqps.f claqsb.f \
++ claqr0.f claqr1.f claqr2.f claqr3.f claqr4.f claqr5.f \
++ claqsp.f claqsy.f clar1v.f clar2v.f clarf.f clarfb.f clarfg.f clarft.f \
++ clarfx.f clargv.f clarnv.f clarrv.f clartg.f clartv.f \
++ clarz.f clarzb.f clarzt.f clascl.f claset.f clasr.f classq.f \
++ claswp.f clasyf.f clatbs.f clatdf.f clatps.f clatrd.f clatrs.f clatrz.f \
++ clatzm.f clauu2.f clauum.f cpbcon.f cpbequ.f cpbrfs.f cpbstf.f cpbsv.f \
++ cpbsvx.f cpbtf2.f cpbtrf.f cpbtrs.f cpocon.f cpoequ.f cporfs.f \
++ cposv.f cposvx.f cpotf2.f cpotrf.f cpotri.f cpotrs.f cppcon.f \
++ cppequ.f cpprfs.f cppsv.f cppsvx.f cpptrf.f cpptri.f cpptrs.f \
++ cptcon.f cpteqr.f cptrfs.f cptsv.f cptsvx.f cpttrf.f cpttrs.f cptts2.f \
++ crot.f cspcon.f cspmv.f cspr.f csprfs.f cspsv.f \
++ cspsvx.f csptrf.f csptri.f csptrs.f csrscl.f cstedc.f \
++ cstegr.f cstein.f csteqr.f csycon.f csymv.f \
++ csyr.f csyrfs.f csysv.f csysvx.f csytf2.f csytrf.f csytri.f \
++ csytrs.f ctbcon.f ctbrfs.f ctbtrs.f ctgevc.f ctgex2.f \
++ ctgexc.f ctgsen.f ctgsja.f ctgsna.f ctgsy2.f ctgsyl.f ctpcon.f \
++ ctprfs.f ctptri.f \
++ ctptrs.f ctrcon.f ctrevc.f ctrexc.f ctrrfs.f ctrsen.f ctrsna.f \
++ ctrsyl.f ctrti2.f ctrtri.f ctrtrs.f ctzrqf.f ctzrzf.f cung2l.f cung2r.f \
++ cungbr.f cunghr.f cungl2.f cunglq.f cungql.f cungqr.f cungr2.f \
++ cungrq.f cungtr.f cunm2l.f cunm2r.f cunmbr.f cunmhr.f cunml2.f \
++ cunmlq.f cunmql.f cunmqr.f cunmr2.f cunmr3.f cunmrq.f cunmrz.f \
++ cunmtr.f cupgtr.f cupmtr.f icmax1.f scsum1.f cstemr.f
++
++D_SOURCES = \
++ dgbbrd.f dgbcon.f dgbequ.f dgbrfs.f dgbsv.f \
++ dgbsvx.f dgbtf2.f dgbtrf.f dgbtrs.f dgebak.f dgebal.f dgebd2.f \
++ dgebrd.f dgecon.f dgeequ.f dgees.f dgeesx.f dgeev.f dgeevx.f \
++ dgegs.f dgegv.f dgehd2.f dgehrd.f dgelq2.f dgelqf.f \
++ dgels.f dgelsd.f dgelss.f dgelsx.f dgelsy.f dgeql2.f dgeqlf.f \
++ dgeqp3.f dgeqpf.f dgeqr2.f dgeqrf.f dgerfs.f dgerq2.f dgerqf.f \
++ dgesc2.f dgesdd.f dgesv.f dgesvd.f dgesvx.f dgetc2.f dgetf2.f \
++ dgetrf.f dgetri.f \
++ dgetrs.f dggbak.f dggbal.f dgges.f dggesx.f dggev.f dggevx.f \
++ dggglm.f dgghrd.f dgglse.f dggqrf.f \
++ dggrqf.f dggsvd.f dggsvp.f dgtcon.f dgtrfs.f dgtsv.f \
++ dgtsvx.f dgttrf.f dgttrs.f dgtts2.f dhgeqz.f \
++ dhsein.f dhseqr.f dlabrd.f dlacon.f dlacn2.f \
++ dlaein.f dlaexc.f dlag2.f dlags2.f dlagtm.f dlagv2.f dlahqr.f \
++ dlahrd.f dlahr2.f dlaic1.f dlaln2.f dlals0.f dlalsa.f dlalsd.f \
++ dlangb.f dlange.f dlangt.f dlanhs.f dlansb.f dlansp.f \
++ dlansy.f dlantb.f dlantp.f dlantr.f dlanv2.f \
++ dlapll.f dlapmt.f \
++ dlaqgb.f dlaqge.f dlaqp2.f dlaqps.f dlaqsb.f dlaqsp.f dlaqsy.f \
++ dlaqr0.f dlaqr1.f dlaqr2.f dlaqr3.f dlaqr4.f dlaqr5.f \
++ dlaqtr.f dlar1v.f dlar2v.f \
++ dlarf.f dlarfb.f dlarfg.f dlarft.f dlarfx.f dlargv.f \
++ dlarrv.f dlartv.f \
++ dlarz.f dlarzb.f dlarzt.f dlaswp.f dlasy2.f dlasyf.f \
++ dlatbs.f dlatdf.f dlatps.f dlatrd.f dlatrs.f dlatrz.f dlatzm.f dlauu2.f \
++ dlauum.f dopgtr.f dopmtr.f dorg2l.f dorg2r.f \
++ dorgbr.f dorghr.f dorgl2.f dorglq.f dorgql.f dorgqr.f dorgr2.f \
++ dorgrq.f dorgtr.f dorm2l.f dorm2r.f \
++ dormbr.f dormhr.f dorml2.f dormlq.f dormql.f dormqr.f dormr2.f \
++ dormr3.f dormrq.f dormrz.f dormtr.f dpbcon.f dpbequ.f dpbrfs.f \
++ dpbstf.f dpbsv.f dpbsvx.f \
++ dpbtf2.f dpbtrf.f dpbtrs.f dpocon.f dpoequ.f dporfs.f dposv.f \
++ dposvx.f dpotf2.f dpotrf.f dpotri.f dpotrs.f dppcon.f dppequ.f \
++ dpprfs.f dppsv.f dppsvx.f dpptrf.f dpptri.f dpptrs.f dptcon.f \
++ dpteqr.f dptrfs.f dptsv.f dptsvx.f dpttrs.f dptts2.f drscl.f \
++ dsbev.f dsbevd.f dsbevx.f dsbgst.f dsbgv.f dsbgvd.f dsbgvx.f \
++ dsbtrd.f dspcon.f dspev.f dspevd.f dspevx.f dspgst.f \
++ dspgv.f dspgvd.f dspgvx.f dsprfs.f dspsv.f dspsvx.f dsptrd.f \
++ dsptrf.f dsptri.f dsptrs.f dstegr.f dstein.f dstev.f dstevd.f dstevr.f \
++ dstevx.f dsycon.f dsyev.f dsyevd.f dsyevr.f \
++ dsyevx.f dsygs2.f dsygst.f dsygv.f dsygvd.f dsygvx.f dsyrfs.f \
++ dsysv.f dsysvx.f \
++ dsytd2.f dsytf2.f dsytrd.f dsytrf.f dsytri.f dsytrs.f dtbcon.f \
++ dtbrfs.f dtbtrs.f dtgevc.f dtgex2.f dtgexc.f dtgsen.f \
++ dtgsja.f dtgsna.f dtgsy2.f dtgsyl.f dtpcon.f dtprfs.f dtptri.f \
++ dtptrs.f \
++ dtrcon.f dtrevc.f dtrexc.f dtrrfs.f dtrsen.f dtrsna.f dtrsyl.f \
++ dtrti2.f dtrtri.f dtrtrs.f dtzrqf.f dtzrzf.f dstemr.f \
++ dsgesv.f dlag2s.f slag2d.f
++
++Z_SOURCES = \
++ zbdsqr.f zgbbrd.f zgbcon.f zgbequ.f zgbrfs.f zgbsv.f zgbsvx.f \
++ zgbtf2.f zgbtrf.f zgbtrs.f zgebak.f zgebal.f zgebd2.f zgebrd.f \
++ zgecon.f zgeequ.f zgees.f zgeesx.f zgeev.f zgeevx.f \
++ zgegs.f zgegv.f zgehd2.f zgehrd.f zgelq2.f zgelqf.f \
++ zgels.f zgelsd.f zgelss.f zgelsx.f zgelsy.f zgeql2.f zgeqlf.f zgeqp3.f \
++ zgeqpf.f zgeqr2.f zgeqrf.f zgerfs.f zgerq2.f zgerqf.f \
++ zgesc2.f zgesdd.f zgesv.f zgesvd.f zgesvx.f zgetc2.f zgetf2.f zgetrf.f \
++ zgetri.f zgetrs.f \
++ zggbak.f zggbal.f zgges.f zggesx.f zggev.f zggevx.f zggglm.f \
++ zgghrd.f zgglse.f zggqrf.f zggrqf.f \
++ zggsvd.f zggsvp.f \
++ zgtcon.f zgtrfs.f zgtsv.f zgtsvx.f zgttrf.f zgttrs.f zgtts2.f zhbev.f \
++ zhbevd.f zhbevx.f zhbgst.f zhbgv.f zhbgvd.f zhbgvx.f zhbtrd.f \
++ zhecon.f zheev.f zheevd.f zheevr.f zheevx.f zhegs2.f zhegst.f \
++ zhegv.f zhegvd.f zhegvx.f zherfs.f zhesv.f zhesvx.f zhetd2.f \
++ zhetf2.f zhetrd.f \
++ zhetrf.f zhetri.f zhetrs.f zhgeqz.f zhpcon.f zhpev.f zhpevd.f \
++ zhpevx.f zhpgst.f zhpgv.f zhpgvd.f zhpgvx.f zhprfs.f zhpsv.f \
++ zhpsvx.f \
++ zhptrd.f zhptrf.f zhptri.f zhptrs.f zhsein.f zhseqr.f zlabrd.f \
++ zlacgv.f zlacon.f zlacn2.f zlacp2.f zlacpy.f zlacrm.f zlacrt.f zladiv.f \
++ zlaed0.f zlaed7.f zlaed8.f \
++ zlaein.f zlaesy.f zlaev2.f zlags2.f zlagtm.f \
++ zlahef.f zlahqr.f \
++ zlahrd.f zlahr2.f zlaic1.f zlals0.f zlalsa.f zlalsd.f zlangb.f zlange.f \
++ zlangt.f zlanhb.f \
++ zlanhe.f \
++ zlanhp.f zlanhs.f zlanht.f zlansb.f zlansp.f zlansy.f zlantb.f \
++ zlantp.f zlantr.f zlapll.f zlapmt.f zlaqgb.f zlaqge.f \
++ zlaqhb.f zlaqhe.f zlaqhp.f zlaqp2.f zlaqps.f zlaqsb.f \
++ zlaqr0.f zlaqr1.f zlaqr2.f zlaqr3.f zlaqr4.f zlaqr5.f \
++ zlaqsp.f zlaqsy.f zlar1v.f zlar2v.f zlarcm.f zlarf.f zlarfb.f \
++ zlarfg.f zlarft.f \
++ zlarfx.f zlargv.f zlarnv.f zlarrv.f zlartg.f zlartv.f \
++ zlarz.f zlarzb.f zlarzt.f zlascl.f zlaset.f zlasr.f \
++ zlassq.f zlaswp.f zlasyf.f \
++ zlatbs.f zlatdf.f zlatps.f zlatrd.f zlatrs.f zlatrz.f zlatzm.f zlauu2.f \
++ zlauum.f zpbcon.f zpbequ.f zpbrfs.f zpbstf.f zpbsv.f \
++ zpbsvx.f zpbtf2.f zpbtrf.f zpbtrs.f zpocon.f zpoequ.f zporfs.f \
++ zposv.f zposvx.f zpotf2.f zpotrf.f zpotri.f zpotrs.f zppcon.f \
++ zppequ.f zpprfs.f zppsv.f zppsvx.f zpptrf.f zpptri.f zpptrs.f \
++ zptcon.f zpteqr.f zptrfs.f zptsv.f zptsvx.f zpttrf.f zpttrs.f zptts2.f \
++ zrot.f zspcon.f zspmv.f zspr.f zsprfs.f zspsv.f \
++ zspsvx.f zsptrf.f zsptri.f zsptrs.f zdrscl.f zstedc.f \
++ zstegr.f zstein.f zsteqr.f zsycon.f zsymv.f \
++ zsyr.f zsyrfs.f zsysv.f zsysvx.f zsytf2.f zsytrf.f zsytri.f \
++ zsytrs.f ztbcon.f ztbrfs.f ztbtrs.f ztgevc.f ztgex2.f \
++ ztgexc.f ztgsen.f ztgsja.f ztgsna.f ztgsy2.f ztgsyl.f ztpcon.f \
++ ztprfs.f ztptri.f \
++ ztptrs.f ztrcon.f ztrevc.f ztrexc.f ztrrfs.f ztrsen.f ztrsna.f \
++ ztrsyl.f ztrti2.f ztrtri.f ztrtrs.f ztzrqf.f ztzrzf.f zung2l.f \
++ zung2r.f zungbr.f zunghr.f zungl2.f zunglq.f zungql.f zungqr.f zungr2.f \
++ zungrq.f zungtr.f zunm2l.f zunm2r.f zunmbr.f zunmhr.f zunml2.f \
++ zunmlq.f zunmql.f zunmqr.f zunmr2.f zunmr3.f zunmrq.f zunmrz.f \
++ zunmtr.f zupgtr.f \
++ zupmtr.f izmax1.f dzsum1.f zstemr.f \
++ zcgesv.f zlag2c.f clag2z.f
++
++liblapack_noopt_la_FFLAGS = \
++ $(NOOPT_FFLAGS)
++
++liblapack_noopt_la_SOURCES = \
++ $(SINGLE_NOOPT_SOURCES) \
++ $(DOUBLE_NOOPT_SOURCES)
++
++liblapack_la_LIBADD = liblapack-noopt.la @BLAS_LIBS@
++
++liblapack_la_SOURCES = \
++ $(ALLAUX_SOURCES) \
++ $(SINGLE_SOURCES) \
++ $(DOUBLE_SOURCES) \
++ $(S_SOURCES) \
++ $(C_SOURCES) \
++ $(D_SOURCES) \
++ $(Z_SOURCES)
++
++# Automake doesn't have a way to build with no optimization
++# See http://sources.redhat.com/ml/automake/2002-08/msg00082.html
++# This is the automake-produced rule with $(FFLAGS) removed
++liblapack_noopt_la-slaruv.lo: slaruv.f
++ $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(liblapack_noopt_la_FFLAGS) -c -o liblapack_noopt_la-slaruv.lo `test -f 'slaruv.f' || echo '$(srcdir)/'`slaruv.f
++liblapack_noopt_la-dlaruv.lo: dlaruv.f
++ $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(liblapack_noopt_la_FFLAGS) -c -o liblapack_noopt_la-dlaruv.lo `test -f 'dlaruv.f' || echo '$(srcdir)/'`dlaruv.f
++
++liblapack_noopt_la-slamch.lo: ../INSTALL/slamch.f
++ $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(liblapack_noopt_la_FFLAGS) -c -o liblapack_noopt_la-slamch.lo `test -f '../INSTALL/slamch.f' || echo '$(srcdir)/'`../INSTALL/slamch.f
++liblapack_noopt_la-dlamch.lo: ../INSTALL/dlamch.f
++ $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(liblapack_noopt_la_FFLAGS) -c -o liblapack_noopt_la-dlamch.lo `test -f '../INSTALL/dlamch.f' || echo '$(srcdir)/'`../INSTALL/dlamch.f
+--- INSTALL/Makefile.am 1970-01-01 01:00:00.000000000 +0100
++++ INSTALL/Makefile.am 2007-08-02 11:43:17.000000000 +0100
+@@ -0,0 +1,23 @@
++check_PROGRAMS = \
++ testlsame \
++ testslamch \
++ testdlamch \
++ testsecond \
++ testdsecnd \
++ testieee
++
++TESTS = $(check_PROGRAMS)
++
++testlsame_SOURCES = lsame.f lsametst.f
++testslamch_SOURCES = slamch.f lsame.f slamchtst.f
++testdlamch_SOURCES = dlamch.f lsame.f dlamchtst.f
++testsecond_SOURCES = second_INT_CPU_TIME.f secondtst.f
++testdsecnd_SOURCES = dsecnd_INT_CPU_TIME.f dsecndtst.f
++testieee_SOURCES = tstiee.f
++
++EXTRA_DIST = \
++ lawn81.pdf \
++ lawn81.ps \
++ lawn81.tex \
++ org2.ps \
++ psfig.tex
diff --git a/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-test-fix.patch b/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-test-fix.patch
new file mode 100644
index 000000000..e9b754403
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/lapack-reference-3.1.1-test-fix.patch
@@ -0,0 +1,36 @@
+diff -Naur lapack-lite-3.1.1/TESTING/ctest.in lapack-lite-3.1.1-new/TESTING/ctest.in
+--- lapack-lite-3.1.1/TESTING/ctest.in 2007-02-26 13:20:47.000000000 -0500
++++ lapack-lite-3.1.1-new/TESTING/ctest.in 2007-07-24 10:19:31.000000000 -0400
+@@ -32,5 +32,4 @@
+ CQL 8 List types on next line if 0 < NTYPES < 8
+ CQP 6 List types on next line if 0 < NTYPES < 6
+ CTZ 3 List types on next line if 0 < NTYPES < 3
+-CLS 6 List types on next line if 0 < NTYPES < 6
+ CEQ
+diff -Naur lapack-lite-3.1.1/TESTING/dtest.in lapack-lite-3.1.1-new/TESTING/dtest.in
+--- lapack-lite-3.1.1/TESTING/dtest.in 2007-02-26 13:20:49.000000000 -0500
++++ lapack-lite-3.1.1-new/TESTING/dtest.in 2007-07-24 10:19:36.000000000 -0400
+@@ -30,5 +30,4 @@
+ DQL 8 List types on next line if 0 < NTYPES < 8
+ DQP 6 List types on next line if 0 < NTYPES < 6
+ DTZ 3 List types on next line if 0 < NTYPES < 3
+-DLS 6 List types on next line if 0 < NTYPES < 6
+ DEQ
+diff -Naur lapack-lite-3.1.1/TESTING/stest.in lapack-lite-3.1.1-new/TESTING/stest.in
+--- lapack-lite-3.1.1/TESTING/stest.in 2007-02-26 13:20:49.000000000 -0500
++++ lapack-lite-3.1.1-new/TESTING/stest.in 2007-07-24 10:19:48.000000000 -0400
+@@ -30,5 +30,4 @@
+ SQL 8 List types on next line if 0 < NTYPES < 8
+ SQP 6 List types on next line if 0 < NTYPES < 6
+ STZ 3 List types on next line if 0 < NTYPES < 3
+-SLS 6 List types on next line if 0 < NTYPES < 6
+ SEQ
+diff -Naur lapack-lite-3.1.1/TESTING/ztest.in lapack-lite-3.1.1-new/TESTING/ztest.in
+--- lapack-lite-3.1.1/TESTING/ztest.in 2007-02-26 13:20:49.000000000 -0500
++++ lapack-lite-3.1.1-new/TESTING/ztest.in 2007-07-24 10:19:42.000000000 -0400
+@@ -32,5 +32,4 @@
+ ZQL 8 List types on next line if 0 < NTYPES < 8
+ ZQP 6 List types on next line if 0 < NTYPES < 6
+ ZTZ 3 List types on next line if 0 < NTYPES < 3
+-ZLS 6 List types on next line if 0 < NTYPES < 6
+ ZEQ
diff --git a/sci-libs/lapack-atlas/files/lapack.pc.in b/sci-libs/lapack-atlas/files/lapack.pc.in
new file mode 100644
index 000000000..6dfda1c97
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/lapack.pc.in
@@ -0,0 +1,13 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/@LIBDIR@
+includedir=${prefix}/include
+
+Name: lapack
+Description: Automatically Tuned Linear Algebra Software F77 and C LAPACK implementation
+Version: @PV@
+URL: http://math-atlas.sourceforge.net/
+Requires: blas cblas
+Libs: -L${libdir} -llapack
+Libs.private: -latlas @EXTLIBS@
+Include: -I${includedir}
diff --git a/sci-libs/lapack-atlas/files/war b/sci-libs/lapack-atlas/files/war
new file mode 100644
index 000000000..2093f033a
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/war
@@ -0,0 +1,26 @@
+#! /bin/bash
+#
+# war -- wrapper for the archiver
+#
+# Executed by ATLAS build as:
+# full_path/war ARCHIVER ARFLAGS LIBNAME.a OBJS.lo
+
+TOPDIR=$(echo $0 | sed 's/\(.*\)\/.*/\1/')
+PWD=$(pwd)
+
+ARCHIVER=$1
+LIBRARY=$(echo $3 | sed 's/.*\/\(.*\)/\1/')
+OBJ_DIR=${TOPDIR}/gentoo/$LIBRARY
+
+if [ ! -x $OBJ_DIR ]; then mkdir -p ${OBJ_DIR}/.libs; fi
+
+$ARCHIVER $@
+
+shift 3
+for obj in $@ ; do
+ lobj=$(echo $obj | sed 's/\.o/\.lo/')
+ ln -sf ${PWD}/$obj ${OBJ_DIR}/$obj
+ ln -sf ${PWD}/$lobj ${OBJ_DIR}/$lobj
+ ln -sf ${PWD}/.libs/$obj ${OBJ_DIR}/.libs/$obj
+done
+
diff --git a/sci-libs/lapack-atlas/lapack-atlas-3.7.37.ebuild b/sci-libs/lapack-atlas/lapack-atlas-3.7.37.ebuild
new file mode 100644
index 000000000..8a8996a4c
--- /dev/null
+++ b/sci-libs/lapack-atlas/lapack-atlas-3.7.37.ebuild
@@ -0,0 +1,168 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils flag-o-matic toolchain-funcs fortran autotools versionator
+
+MY_PN="${PN/lapack-/}"
+L_PN="lapack"
+L_PV="3.1.1"
+BlasRelease=$(get_version_component_range 1-3)
+
+DESCRIPTION="F77 and C LAPACK implementations using available ATLAS routines"
+LICENSE="BSD"
+HOMEPAGE="http://math-atlas.sourceforge.net/"
+SRC_URI1="mirror://sourceforge/math-atlas/${MY_PN}${PV}.tar.bz2"
+SRC_URI2="http://www.netlib.org/${L_PN}/${L_PN}-lite-${L_PV}.tgz"
+SRC_URI="${SRC_URI1} ${SRC_URI2}
+ http://dev.gentoo.org/~bicatali/${MY_PN}-${PV}-shared-libs.patch.bz2"
+
+SLOT="0"
+IUSE="doc"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="virtual/blas
+ virtual/cblas
+ app-admin/eselect-lapack
+ ~sci-libs/blas-atlas-${BlasRelease}
+ >=sys-devel/libtool-1.5"
+
+RDEPEND="${DEPEND}
+ dev-util/pkgconfig
+ doc? ( app-doc/lapack-docs )"
+
+FORTRAN="g77 gfortran ifc"
+
+S="${WORKDIR}/ATLAS"
+S_LAPACK="${WORKDIR}/${L_PN}-lite-${L_PV}"
+BLD_DIR="${S}/gentoo-build"
+RPATH="${DESTTREE}/$(get_libdir)/${L_PN}/${MY_PN}"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${DISTDIR}"/${MY_PN}-${PV}-shared-libs.patch.bz2
+ epatch "${FILESDIR}"/${MY_PN}-asm-gentoo.patch
+
+ cd "${S}"
+ mkdir ${BLD_DIR} || die "failed to generate build directory"
+ cp "${FILESDIR}"/war "${BLD_DIR}" && chmod a+x "${BLD_DIR}"/war \
+ || die "failed to install war"
+
+ # make sure the compile picks up the proper includes
+ sed -e "s|INCLUDES =|INCLUDES = -I/usr/include/atlas/|" \
+ -e "s:= gcc:= $(tc-getCC) ${CFLAGS}:" \
+ -i CONFIG/src/SpewMakeInc.c || \
+ die "failed to append proper includes"
+
+ # force proper 32/64bit libs
+ local archselect
+ if [[ "${ARCH}" == "amd64" || "${ARCH}" == "ppc64" ]]; then
+ archselect="-b 64"
+ elif [ "${ARCH}" == "alpha" ]; then
+ archselect=""
+ else
+ archselect="-b 32"
+ fi
+
+ cd ${BLD_DIR} && ../configure \
+ --cc=$(tc-getCC) \
+ --cflags="${CFLAGS}" \
+ --prefix=${D}/${DESTTREE} \
+ --libdir=${D}/${DESTTREE}/$(get_libdir)/atlas \
+ --incdir=${D}/${DESTTREE}/include \
+ -C ac "$(tc-getCC)" -F ac "${CFLAGS}" \
+ -C if "${FORTRANC}" -F if "${FFLAGS}" \
+ -Ss pmake "\$(MAKE) ${MAKEOPTS}" \
+ -Si cputhrchk 0 ${archselect} \
+ || die "configure failed"
+
+ cd "${S_LAPACK}"
+ epatch "${FILESDIR}"/${L_PN}-reference-${L_PV}-autotool.patch
+ epatch "${FILESDIR}"/${L_PN}-reference-${L_PV}-test-fix.patch
+ eautoreconf
+
+ # set up the testing routines
+ sed -e "s:g77:${FORTRANC}:" \
+ -e "s:-funroll-all-loops -O3:${FFLAGS} $(pkg-config --cflags blas cblas):" \
+ -e "s:LOADOPTS =:LOADOPTS = ${LDFLAGS} $(pkg-config --cflags blas cblas):" \
+ -e "s:../../blas\$(PLAT).a:$(pkg-config --libs blas cblas):" \
+ -e "s:lapack\$(PLAT).a:SRC/.libs/liblapack.so:" \
+ -e "s:EXT_ETIME$:INT_CPU_TIME:" \
+ make.inc.example > make.inc \
+ || die "Failed to set up make.inc"
+}
+
+src_compile() {
+ # build atlas' part of lapack
+ cd "${BLD_DIR}"
+ for d in src/lapack interfaces/lapack/C/src interfaces/lapack/F77/src; do
+ cd "${BLD_DIR}/{d}"
+ make lib || die "Failed to make lib in ${d}"
+ done
+
+ # build rest of lapack
+ cd "${S_LAPACK}"
+ econf || die "Failed to configure reference lapack lib"
+ emake || die "Failed to make reference lapack lib"
+
+ cd "${S_LAPACK}"/SRC
+ einfo "Copying liblapack.a/*.o to ${S_LAPACK}/SRC"
+ cp -sf "${BLD_DIR}"/gentoo/liblapack.a/*.o .
+ einfo "Copying liblapack.a/*.lo to ${S_LAPACK}/SRC"
+ cp -sf "${BLD_DIR}"/gentoo/liblapack.a/*.lo .
+ einfo "Copying liblapack.a/.libs/*.o to ${S_LAPACK}/SRC"
+ cp -sf "${BLD_DIR}"/gentoo/liblapack.a/.libs/*.o .libs/
+
+ local flibs
+ [[ ${FORTRANC} == "gfortran" ]] && flibs="-lgfortran"
+ [[ ${FORTRANC} == "g77" ]] && flibs="-lg2c"
+ ../libtool --mode=link --tag=F77 ${FORTRANC} \
+ $(pkg-config --libs blas) \
+ $(pkg-config --libs cblas) \
+ ${flibs} \
+ -o liblapack.la *.lo -rpath "${RPATH}" \
+ || die "Failed to create liblapack.la"
+
+ # making pkg-config file
+ sed -e "s:@LIBDIR@:$(get_libdir):" \
+ -e "s:@PV@:${PV}:" \
+ -e "s:@EXTLIBS@:-lm ${flibs}:g" \
+ "${FILESDIR}/lapack.pc.in" > "${S}"/lapack.pc \
+ || die "sed lapack.pc failed"
+}
+
+src_install () {
+ dodir "${RPATH}"
+
+ cd "${S_LAPACK}"/SRC
+ ../libtool --mode=install cp liblapack.la "${D}/${RPATH}" \
+ || die "Failed to install lapack-atlas library"
+
+ eselect lapack add $(get_libdir) "${FILESDIR}"/eselect.lapack.atlas atlas
+
+ insinto /usr/include/atlas
+ doins "${S}"/include/clapack.h || die "Failed to install clapack.h"
+
+ cd "${S}"
+ dodoc README doc/AtlasCredits.txt doc/ChangeLog || \
+ die "Failed to install docs"
+
+ insinto /usr/$(get_libdir)/lapack/atlas
+ doins "${S}"/lapack.pc || die "Failed to install lapack.pc"
+}
+
+src_test() {
+ cd "${S_LAPACK}"/TESTING/MATGEN && emake || \
+ die "Failed to create tmglib.a"
+ cd ../ && emake || die "lapack-reference tests failed."
+}
+
+pkg_postinst() {
+ [[ -z "$(eselect lapack show)" ]] && eselect lapack set atlas
+
+ elog "Use 'eselect lapack' (as root) to select"
+ elog "one of the ATLAS lapack profiles."
+ elog "Once selected, use 'pkg-config --libs lapack' to link with ATLAS lapack."
+ elog "With C, add 'pkg-config --cflags lapack' to compile."
+}
diff --git a/sci-libs/lapack-atlas/metadata.xml b/sci-libs/lapack-atlas/metadata.xml
new file mode 100644
index 000000000..27e517d1d
--- /dev/null
+++ b/sci-libs/lapack-atlas/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ATLAS is an approach for the automatic generation and optimization of
+numerical software. Currently ATLAS supplies optimized versions for
+the complete set of linear algebra kernels known as the Basic Linear
+Algebra Subroutines (BLAS), and a subset of the linear algebra
+routines in the LAPACK library.
+The libraries in this package contain full LAPACK FORTRAN 77 and C
+implementations, using routines from both ATLAS and the reference Netlib package.
+</longdescription>
+</pkgmetadata>