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.
This commit is contained in:
Harmen Stoppels 2023-01-25 14:12:59 +01:00 committed by GitHub
parent 047a481e48
commit 8eb4807615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ def setup_build_environment(self, env):
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")