
- This moves var/spack/packages to var/spack/repos/builtin/packages. - Packages that did not exist in the source branch, or were changed in develop, were moved into var/spack/repos/builtin/packages as part of the integration. Conflicts: lib/spack/spack/test/unit_install.py var/spack/repos/builtin/packages/clang/package.py
29 lines
947 B
Python
29 lines
947 B
Python
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."""
|
|
|
|
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:
|
|
depends_on("cmake @2.8.12:")
|
|
# >HDF5
|
|
depends_on("hdf5")
|
|
|
|
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).
|
|
|
|
make()
|
|
make("install")
|