summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorsnehring <7978778+snehring@users.noreply.github.com>2023-12-07 12:30:14 -0600
committerGitHub <noreply@github.com>2023-12-07 11:30:14 -0700
commite618a93f3d80478cff2a1cfc688d2dd811c7a3e0 (patch)
treefe7324b06f4ab85f4d43eb3cef55d7735facb78c /var
parent3f0ec5c5803316805b0d7d50e22db039425d3536 (diff)
downloadspack-e618a93f3d80478cff2a1cfc688d2dd811c7a3e0.tar.gz
spack-e618a93f3d80478cff2a1cfc688d2dd811c7a3e0.tar.bz2
spack-e618a93f3d80478cff2a1cfc688d2dd811c7a3e0.tar.xz
spack-e618a93f3d80478cff2a1cfc688d2dd811c7a3e0.zip
iqtree2: add new version 2.2.2.7 and new variant lsd2 (#41467)
* iqtree2: add new version 2.2.2.7 and new variant lsd2 * iqtree2: reorder variant and resource
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/iqtree2/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/iqtree2/package.py b/var/spack/repos/builtin/packages/iqtree2/package.py
index c84cb6e8e6..73219e1eec 100644
--- a/var/spack/repos/builtin/packages/iqtree2/package.py
+++ b/var/spack/repos/builtin/packages/iqtree2/package.py
@@ -13,9 +13,29 @@ class Iqtree2(CMakePackage):
homepage = "http://www.iqtree.org"
url = "https://github.com/iqtree/iqtree2/archive/refs/tags/v2.1.2.tar.gz"
+ version("2.2.2.7", sha256="407a1a56d352ba9c2152a1d708cd29db872a41c252fbdc7acd8e0de0da8af008")
version("2.2.2", sha256="2e9ce79427b140bca5f48b31fb098f394a21a7c5116bbbada1e3eabdd6efe982")
version("2.1.2", sha256="3aaf5ac7f60d852ac8b733fb82832c049ca48b7203a6a865e99c5af359fcca5a")
+ variant("lsd2", default=False, description="Build with LSD2 support")
+
depends_on("boost", type="link")
depends_on("eigen", type="link")
depends_on("zlib-api", type="link")
+
+ resource(
+ name="lsd2-rsrc",
+ url="https://github.com/tothuhien/lsd2/archive/refs/tags/v.2.4.1.tar.gz",
+ sha256="3d0921c96edb8f30498dc8a27878a76d785516043fbede4a72eefd84b5955458",
+ destination="lsd2-rsrc",
+ when="+lsd2",
+ )
+
+ @run_before("cmake")
+ def expand_resource(self):
+ copy_tree(join_path("lsd2-rsrc", "*"), "lsd2")
+
+ def cmake_cargs(self):
+ args = [self.define_from_variant("USE_LSD2", variant="lsd2")]
+
+ return args