summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJeffrey Salmond <js947@users.noreply.github.com>2016-11-04 18:56:47 +0000
committerTodd Gamblin <tgamblin@llnl.gov>2016-11-04 11:56:47 -0700
commit472ad39db35dd2c68dc64fc4e54f5044d4f9d1c7 (patch)
tree10c3ca7af504d74a0457aaba50a43fc053469aef /var
parentf01b9797d731647bb187e491e2dccc4020af13eb (diff)
downloadspack-472ad39db35dd2c68dc64fc4e54f5044d4f9d1c7.tar.gz
spack-472ad39db35dd2c68dc64fc4e54f5044d4f9d1c7.tar.bz2
spack-472ad39db35dd2c68dc64fc4e54f5044d4f9d1c7.tar.xz
spack-472ad39db35dd2c68dc64fc4e54f5044d4f9d1c7.zip
updates to matio package (#2243)
* updates to matio package - update to a AutoTools package - add variants for hdf5 and zlib - add latest version * fix flake8 error
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/matio/package.py23
1 files changed, 17 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/matio/package.py b/var/spack/repos/builtin/packages/matio/package.py
index c141f7e8af..a33b23a4e9 100644
--- a/var/spack/repos/builtin/packages/matio/package.py
+++ b/var/spack/repos/builtin/packages/matio/package.py
@@ -25,15 +25,26 @@
from spack import *
-class Matio(Package):
+class Matio(AutotoolsPackage):
"""matio is an C library for reading and writing Matlab MAT files"""
homepage = "http://sourceforge.net/projects/matio/"
- url = "http://downloads.sourceforge.net/project/matio/matio/1.5.2/matio-1.5.2.tar.gz"
+ url = "http://downloads.sourceforge.net/project/matio/matio/1.5.9/matio-1.5.9.tar.gz"
+ version('1.5.9', 'aab5b4219a3c0262afe7eeb7bdd2f463')
version('1.5.2', '85b007b99916c63791f28398f6a4c6f1')
- def install(self, spec, prefix):
- configure('--prefix=%s' % prefix)
+ variant("zlib", default=True,
+ description='support for compressed mat files')
+ variant("hdf5", default=True,
+ description='support for version 7.3 mat files via hdf5')
- make()
- make("install")
+ depends_on("zlib", when="+zlib")
+ depends_on("hdf5", when="+hdf5")
+
+ def configure_args(self):
+ args = []
+ if '+zlib' in self.spec:
+ args.append("--with-zlib=%s" % self.spec['zlib'].prefix)
+ if '+hdf5' in self.spec:
+ args.append("--with-hdf5=%s" % self.spec['hdf5'].prefix)
+ return args