diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-01-28 15:41:58 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-01-28 15:41:58 -0600 |
commit | 4f340315341a125bd01d0c844efc83454e531ca5 (patch) | |
tree | e8b37aabbdcefab93eac66ebd0e28922218c57a8 /var | |
parent | c2bb00ca2f925c1a8c4b49f7b0a7b22e7c0b43a8 (diff) | |
download | spack-4f340315341a125bd01d0c844efc83454e531ca5.tar.gz spack-4f340315341a125bd01d0c844efc83454e531ca5.tar.bz2 spack-4f340315341a125bd01d0c844efc83454e531ca5.tar.xz spack-4f340315341a125bd01d0c844efc83454e531ca5.zip |
Add PnetCDF and M4 packages
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/m4/package.py | 13 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/parallel-netcdf/package.py | 20 |
2 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py new file mode 100644 index 0000000000..5d76d8866b --- /dev/null +++ b/var/spack/repos/builtin/packages/m4/package.py @@ -0,0 +1,13 @@ +from spack import * + +class M4(Package): + """GNU M4 is an implementation of the traditional Unix macro processor.""" + homepage = "https://www.gnu.org/software/m4/m4.html" + url = "ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz" + + version('1.4.17', 'a5e9954b1dae036762f7b13673a2cf76') + + def install(self, spec, prefix): + configure("--prefix=%s" % prefix) + make() + make("install") diff --git a/var/spack/repos/builtin/packages/parallel-netcdf/package.py b/var/spack/repos/builtin/packages/parallel-netcdf/package.py new file mode 100644 index 0000000000..62a8f7ca0b --- /dev/null +++ b/var/spack/repos/builtin/packages/parallel-netcdf/package.py @@ -0,0 +1,20 @@ +from spack import * + +class ParallelNetcdf(Package): + """Parallel netCDF (PnetCDF) is a library providing high-performance + parallel I/O while still maintaining file-format compatibility with + Unidata's NetCDF.""" + + homepage = "https://trac.mcs.anl.gov/projects/parallel-netcdf" + url = "http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/parallel-netcdf-1.6.1.tar.gz" + + version('1.6.1', '62a094eb952f9d1e15f07d56e535052604f1ac34') + + depends_on("m4") + depends_on("mpi") + + def install(self, spec, prefix): + configure("--prefix=%s" % prefix, + "--with-mpi=%s" % spec['mpi'].prefix) + make() + make("install") |