Merge pull request #396 from adamjstewart/features/hdf5

Add szip variant
This commit is contained in:
Todd Gamblin 2016-01-25 22:38:35 -08:00
commit 1a52700238

View file

@ -48,9 +48,11 @@ class Hdf5(Package):
variant('unsupported', default=False, description='Enables unsupported configuration options')
variant('mpi', default=False, description='Enable MPI support')
variant('szip', default=False, description='Enable szip support')
variant('threadsafe', default=False, description='Enable thread-safe capabilities')
depends_on("mpi", when='+mpi')
depends_on("szip", when='+szip')
depends_on("zlib")
def validate(self, spec):
@ -105,6 +107,9 @@ def install(self, spec, prefix):
if '+fortran' in spec:
extra_args.append("FC=%s" % spec['mpi'].prefix.bin + "/mpifort")
if '+szip' in spec:
extra_args.append("--with-szlib=%s" % spec['szip'].prefix)
if '+threadsafe' in spec:
extra_args.extend([
'--enable-threadsafe',