summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")