summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Christofi <77968333+ChristopherChristofi@users.noreply.github.com>2023-12-19 09:35:23 +0000
committerGitHub <noreply@github.com>2023-12-19 10:35:23 +0100
commit2439ff56a5b561b99b0aad6ab8a71824cd4587f8 (patch)
tree6a04dc40d76f6ccaa1f649b84b829fec8b903722
parent2ef8d09fc78f44f2f60b165f65595fccc161a54c (diff)
downloadspack-2439ff56a5b561b99b0aad6ab8a71824cd4587f8.tar.gz
spack-2439ff56a5b561b99b0aad6ab8a71824cd4587f8.tar.bz2
spack-2439ff56a5b561b99b0aad6ab8a71824cd4587f8.tar.xz
spack-2439ff56a5b561b99b0aad6ab8a71824cd4587f8.zip
kalign: add v3.4.0 (#41758)
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
-rw-r--r--var/spack/repos/builtin/packages/kalign/package.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/kalign/package.py b/var/spack/repos/builtin/packages/kalign/package.py
index 949fbbc628..1e7a4faa74 100644
--- a/var/spack/repos/builtin/packages/kalign/package.py
+++ b/var/spack/repos/builtin/packages/kalign/package.py
@@ -3,18 +3,28 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
-
from spack.package import *
-class Kalign(AutotoolsPackage):
+class Kalign(AutotoolsPackage, CMakePackage):
"""A fast multiple sequence alignment program for biological sequences."""
homepage = "https://github.com/TimoLassmann/kalign"
url = "https://github.com/TimoLassmann/kalign/archive/refs/tags/v3.3.1.tar.gz"
+ version("3.4.0", sha256="67d1a562d54b3b7622cc3164588c05b9e2bf8f1a5140bb48a4e816c61a87d4a8")
version("3.3.1", sha256="7f10acf9a3fa15deabbc0304e7c14efa25cea39108318c9f02b47257de2d7390")
- depends_on("autoconf", type="build")
- depends_on("automake", type="build")
- depends_on("libtool", type="build")
+ build_system(
+ conditional("cmake", when="@3.4.0:"),
+ conditional("autotools", when="@3.3.1"),
+ default="cmake",
+ )
+
+ with when("build_system=cmake"):
+ depends_on("cmake@3.18:", type="build")
+
+ with when("build_system=autotools"):
+ depends_on("autoconf", type="build")
+ depends_on("automake", type="build")
+ depends_on("libtool", type="build")