diff options
author | Joseph Ciurej <ciurej1@llnl.gov> | 2016-02-26 16:06:17 -0800 |
---|---|---|
committer | Joseph Ciurej <ciurej1@llnl.gov> | 2016-02-26 16:06:17 -0800 |
commit | 30d9ca2bde033da28b6f6105f93ee05f4fd0acfa (patch) | |
tree | dc17c7e63a81dbbf7a2ae04ff6c01a28abeac52e /var | |
parent | 7176e5ef074ee267fa976fcaad0b6237d3b22f06 (diff) | |
download | spack-30d9ca2bde033da28b6f6105f93ee05f4fd0acfa.tar.gz spack-30d9ca2bde033da28b6f6105f93ee05f4fd0acfa.tar.bz2 spack-30d9ca2bde033da28b6f6105f93ee05f4fd0acfa.tar.xz spack-30d9ca2bde033da28b6f6105f93ee05f4fd0acfa.zip |
Updated the silo package and added the '+fortran' variant.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/silo/package.py | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/silo/package.py b/var/spack/repos/builtin/packages/silo/package.py index 9eda11df15..d1aed78e0e 100644 --- a/var/spack/repos/builtin/packages/silo/package.py +++ b/var/spack/repos/builtin/packages/silo/package.py @@ -1,19 +1,28 @@ from spack import * class Silo(Package): - """Silo is a library for reading and writing a wide variety of scientific data to binary, disk files.""" + """Silo is a library for reading and writing a wide variety of scientific + data to binary, disk files.""" homepage = "http://wci.llnl.gov/simulation/computer-codes/silo" url = "https://wci.llnl.gov/content/assets/docs/simulation/computer-codes/silo/silo-4.8/silo-4.8.tar.gz" - #version('4.9', 'a83eda4f06761a86726e918fc55e782a') version('4.8', 'b1cbc0e7ec435eb656dc4b53a23663c9') - depends_on("hdf5@:1.8.12") + variant('fortran', default=True, description='Enable Fortran support') + + depends_on("hdf5") def install(self, spec, prefix): - configure("--prefix=%s" % prefix, - "--with-hdf5=%s" %spec['hdf5'].prefix) + config_args = [ + '--enable-fortran' if '+fortran' in spec else '--disable-fortran', + ] + + configure( + "--prefix=%s" % prefix, + "--with-hdf5=%s,%s" % (spec['hdf5'].prefix.include, spec['hdf5'].prefix.lib), + "--with-zlib=%s,%s" % (spec['zlib'].prefix.include, spec['zlib'].prefix.lib), + *config_args) make() make("install") |