Skip to content

Commit 7a32954

Browse files
authored
dftd4: add v3.6.0 and v3.7.0, update URL (spack#48500)
1 parent 92564ec commit 7a32954

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

var/spack/repos/builtin/packages/dftd4/package.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ class Dftd4(MesonPackage):
99
"""Generally Applicable Atomic-Charge Dependent London Dispersion Correction"""
1010

1111
homepage = "https://www.chemie.uni-bonn.de/pctc/mulliken-center/software/dftd4"
12-
url = "https://github.com/dftd4/dftd4/releases/download/v3.5.0/dftd4-3.5.0-source.tar.xz"
12+
url = "https://github.com/dftd4/dftd4/releases/download/v0.0.0/dftd4-0.0.0.tar.xz"
1313
git = "https://github.com/dftd4/dftd4.git"
1414

1515
maintainers("awvwgk")
1616

1717
license("LGPL-3.0-only")
1818

1919
version("main", branch="main")
20+
version("3.7.0", sha256="4e8749df6852bf863d5d1831780a2d30e9ac4afcfebbbfe5f6a6a73d06d6c6ee")
21+
version("3.6.0", sha256="56b3b4650853a34347d3d56c93d7596ecbe2208c4a14dbd027959fd4a009679d")
2022
version("3.5.0", sha256="d2bab992b5ef999fd13fec8eb1da9e9e8d94b8727a2e624d176086197a00a46f")
2123
version("3.4.0", sha256="24fcb225cdd5c292ac26f7d3204ee3c4024174adb5272eeda9ae7bc57113ec8d")
2224
version("3.3.0", sha256="408720b8545532d5240dd743c05d57b140af983192dad6d965b0d79393d0a9ef")
@@ -54,3 +56,8 @@ def meson_args(self):
5456
"-Dopenmp={0}".format(str("+openmp" in self.spec).lower()),
5557
"-Dpython={0}".format(str("+python" in self.spec).lower()),
5658
]
59+
60+
def url_for_version(self, version):
61+
if version <= Version("3.6.0"):
62+
return f"https://github.com/dftd4/dftd4/releases/download/v{version}/dftd4-{version}-source.tar.xz"
63+
return super().url_for_version(version)

0 commit comments

Comments
 (0)