From a23e1579e3f716c2ba2a445f8ff4ce69ed2632fb Mon Sep 17 00:00:00 2001 From: Saravan Pantham Date: Wed, 18 Mar 2015 15:09:21 -0700 Subject: Added BLAS package --- var/spack/packages/blas/package.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 var/spack/packages/blas/package.py 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. + -- cgit v1.2.3-70-g09d2