diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/octopus/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py index 3d6c4be06a..42ec5f7b95 100644 --- a/var/spack/repos/builtin/packages/octopus/package.py +++ b/var/spack/repos/builtin/packages/octopus/package.py @@ -59,6 +59,7 @@ class Octopus(AutotoolsPackage, CudaPackage): variant("libvdwxc", default=False, description="Compile with libvdwxc") variant("libyaml", default=False, description="Compile with libyaml") variant("elpa", default=False, description="Compile with ELPA") + variant("etsf-io", default=False, description="Compile with etsf-io") variant("nlopt", default=False, description="Compile with nlopt") variant( "pnfft", @@ -100,6 +101,7 @@ class Octopus(AutotoolsPackage, CudaPackage): depends_on("elpa~mpi", when="+elpa") depends_on("netcdf-fortran ^netcdf-c~~mpi", when="+netcdf") + depends_on("etsf-io", when="+etsf-io") depends_on("py-numpy", when="+python") depends_on("py-mpi4py", when="+python") depends_on("metis@5:+int64", when="+metis") @@ -225,6 +227,8 @@ class Octopus(AutotoolsPackage, CudaPackage): args.append("--enable-python") # --with-etsf-io-prefix= + if "+etsf-io" in spec: + args.append("--with-etsf-io-prefix=%s" % spec["etsf-io"].prefix) # --with-sparskit=${prefix}/lib/libskit.a # --with-pfft-prefix=${prefix} --with-mpifftw-prefix=${prefix} # --with-berkeleygw-prefix=${prefix} |