More specific dependency versions, wrap make check (#1962)

This commit is contained in:
Adam J. Stewart
2016-10-11 03:36:40 -05:00
committed by Todd Gamblin
parent 7fd639d6fc
commit 5988b3a222
3 changed files with 25 additions and 12 deletions

View File

@@ -46,10 +46,10 @@ class Netcdf(Package):
depends_on("hdf", when='+hdf4')
# Required for DAP support
depends_on("curl")
depends_on("curl@7.18.0:")
# Required for NetCDF-4 support
depends_on("zlib")
depends_on("zlib@1.2.5:")
depends_on('hdf5')
# NetCDF 4.4.0 and prior have compatibility issues with HDF5 1.10 and later
@@ -105,7 +105,7 @@ def install(self, spec, prefix):
LDFLAGS.append("-L%s/lib" % spec['hdf'].prefix)
LIBS.append("-l%s" % "jpeg")
if 'szip' in spec:
if '+szip' in spec:
CPPFLAGS.append("-I%s/include" % spec['szip'].prefix)
LDFLAGS.append("-L%s/lib" % spec['szip'].prefix)
LIBS.append("-l%s" % "sz")
@@ -120,4 +120,8 @@ def install(self, spec, prefix):
configure(*config_args)
make()
if self.run_tests:
make("check")
make("install")