diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-11-04 18:09:59 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-11-12 15:16:06 -0800 |
commit | 55662eca696352b5bbe2a0c31868b6ebb33e1c99 (patch) | |
tree | aff710de7b2017e7ee71b8c7a8fcc630b63e124e /var/spack/packages/netcdf/package.py | |
parent | 6dff42be0973c5949d836eab51cfdffb0eda0a69 (diff) | |
parent | 1c4ef2996219a00e774baafa558880c83ae3d859 (diff) | |
download | spack-55662eca696352b5bbe2a0c31868b6ebb33e1c99.tar.gz spack-55662eca696352b5bbe2a0c31868b6ebb33e1c99.tar.bz2 spack-55662eca696352b5bbe2a0c31868b6ebb33e1c99.tar.xz spack-55662eca696352b5bbe2a0c31868b6ebb33e1c99.zip |
Merge branch 'develop' into mplegendre-multi_pkgsrc_roots
Conflicts:
lib/spack/spack/__init__.py
lib/spack/spack/directives.py
lib/spack/spack/packages.py
Diffstat (limited to 'var/spack/packages/netcdf/package.py')
-rw-r--r-- | var/spack/packages/netcdf/package.py | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/var/spack/packages/netcdf/package.py b/var/spack/packages/netcdf/package.py index 34284ea725..e1e0d836c6 100644 --- a/var/spack/packages/netcdf/package.py +++ b/var/spack/packages/netcdf/package.py @@ -1,28 +1,27 @@ from spack import * class Netcdf(Package): - """NetCDF is a set of software libraries and self-describing, machine-independent - data formats that support the creation, access, and sharing of array-oriented - scientific data.""" + """NetCDF is a set of software libraries and self-describing, machine-independent + data formats that support the creation, access, and sharing of array-oriented + scientific data.""" homepage = "http://www.unidata.ucar.edu/software/netcdf/" url = "ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.tar.gz" version('4.3.3', '5fbd0e108a54bd82cb5702a73f56d2ae') + patch('netcdf-4.3.3-mpi.patch') + # Dependencies: - # >HDF5 + # >HDF5 depends_on("hdf5") - def install(self, spec, prefix): - configure( - "--prefix=%s" % prefix, - "--disable-dap", # Disable DAP. - "--disable-shared", # Don't build shared libraries (use static libs). - "CPPFLAGS=-I%s/include" % spec['hdf5'].prefix, # Link HDF5's include dir. - "LDFLAGS=-L%s/lib" % spec['hdf5'].prefix) # Link HDF5's lib dir. - - make("install") + def install(self, spec, prefix): + with working_dir('spack-build', create=True): + cmake('..', + "-DCMAKE_INSTALL_PREFIX:PATH=%s" % prefix, + "-DENABLE_DAP:BOOL=OFF", # Disable DAP. + "-DBUILD_SHARED_LIBS:BOOL=OFF") # Don't build shared libraries (use static libs). - # Check the newly installed netcdf package. Currently disabled. - # make("check") + make() + make("install") |