summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-01-25 14:12:59 +0100
committerGitHub <noreply@github.com>2023-01-25 14:12:59 +0100
commit8eb4807615610a987a558134247b8c3d41f04be8 (patch)
tree8de5b44204bf451afc0437f845a82323e073289e /var
parent047a481e482fba8cdddabafd1ff2f2b621663678 (diff)
downloadspack-8eb4807615610a987a558134247b8c3d41f04be8.tar.gz
spack-8eb4807615610a987a558134247b8c3d41f04be8.tar.bz2
spack-8eb4807615610a987a558134247b8c3d41f04be8.tar.xz
spack-8eb4807615610a987a558134247b8c3d41f04be8.zip
libxc: 6.1.0 (#35159)
Currently 6.0.0 fails on develop about incorrect shasum, but I can't reproduce; maybe the download was temporarily unavailable.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libxc/package.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/libxc/package.py b/var/spack/repos/builtin/packages/libxc/package.py
index 9c5d016a1f..4d5253528d 100644
--- a/var/spack/repos/builtin/packages/libxc/package.py
+++ b/var/spack/repos/builtin/packages/libxc/package.py
@@ -11,9 +11,10 @@ class Libxc(AutotoolsPackage, CudaPackage):
density-functional theory."""
homepage = "https://tddft.org/programs/libxc/"
- url = "https://www.tddft.org/programs/libxc/down.php?file=2.2.2/libxc-2.2.2.tar.gz"
+ url = "https://www.tddft.org/programs/libxc/down/2.2.2/libxc-2.2.2.tar.gz"
# Get checksum from latest release package at https://tddft.org/programs/libxc/download/
+ version("6.1.0", sha256="a3aa16915942543031a5d9c4a92c439ce54249bdcda8c91c4e69e65329dc9a54")
version("6.0.0", sha256="c2ca205a762200dfba2e6c9e8ca2061aaddc6b7cf42048859fe717a7aa07de7c")
version("5.2.3", sha256="7b7a96d8eeb472c7b8cca7ac38eae27e0a8113ef44dae5359b0eb12592b4bcf2")
version("5.1.7", sha256="1a818fdfe5c5f74270bc8ef0c59064e8feebcd66b8f642c08aecc1e7d125be34")
@@ -96,13 +97,9 @@ class Libxc(AutotoolsPackage, CudaPackage):
env.append_flags("CFLAGS", "-arch=sm_{0}".format(cuda_arch))
def configure_args(self):
- spec = self.spec
-
- args = [
- "--enable-shared" if "+shared" in spec else "--disable-shared",
- "--enable-cuda" if "+cuda" in spec else "--disable-cuda",
- ]
-
+ args = []
+ args += self.enable_or_disable("shared")
+ args += self.enable_or_disable("cuda")
return args
@run_after("configure")