summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaravan Pantham <saravan.pantham@gmail.com>2015-03-18 15:09:21 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-06-06 13:06:17 -0700
commita23e1579e3f716c2ba2a445f8ff4ce69ed2632fb (patch)
tree71939ddb7fddce92c6b5d95962250c43186d9730
parentab31f989db4de515aafd900c9235161ce45993b3 (diff)
downloadspack-a23e1579e3f716c2ba2a445f8ff4ce69ed2632fb.tar.gz
spack-a23e1579e3f716c2ba2a445f8ff4ce69ed2632fb.tar.bz2
spack-a23e1579e3f716c2ba2a445f8ff4ce69ed2632fb.tar.xz
spack-a23e1579e3f716c2ba2a445f8ff4ce69ed2632fb.zip
Added BLAS package
-rw-r--r--var/spack/packages/blas/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/packages/blas/package.py b/var/spack/packages/blas/package.py
new file mode 100644
index 0000000000..7bab63bcd9
--- /dev/null
+++ b/var/spack/packages/blas/package.py
@@ -0,0 +1,21 @@
+from spack import *
+import os
+
+class Blas(Package):
+ """The BLAS (Basic Linear Algebra Subprograms) are routines that provide standard
+ building blocks for performing basic vector and matrix operations."""
+
+ homepage = "http://www.netlib.org/blas/"
+
+ version('unversioned', '5e99e975f7a1e3ea6abcad7c6e7e42e6',
+ url='http://www.netlib.org/blas/blas.tgz')
+
+ def install(self, spec, prefix):
+ make()
+ mv = which('mv') # Create a shell wrapper for the mv command.
+ mkdir = which('mkdir') # Create a shell wrapper for the mkdir command.
+ pwd = os.getcwd() # Retrieve the current working dir.
+ mkdir('%s' % prefix.lib) # Create the lib dir inside the install dir.
+ mv('%s/blas_LINUX.a' % pwd, '%s/libblas.a' % pwd) # Rename the generated lib file to libblas.a
+ mv('%s/libblas.a' % pwd, '%s/libblas.a' % prefix.lib) # Move the library file to the install dir.
+