summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/parallel-netcdf/package.py
blob: 62a8f7ca0ba9ecf03b5ae7a0da652b22718739ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")