summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/kalign/package.py
blob: fa89318b4d926809bf00fb072b4ba87f50fa0af6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


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"

    license("GPL-3.0-or-later")

    version("3.4.0", sha256="67d1a562d54b3b7622cc3164588c05b9e2bf8f1a5140bb48a4e816c61a87d4a8")
    version("3.3.1", sha256="7f10acf9a3fa15deabbc0304e7c14efa25cea39108318c9f02b47257de2d7390")

    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")