summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/hh-suite/package.py
blob: 334653ea86ce4532a7c3bd91bb5928554d186d5a (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
33
34
35
# Copyright 2013-2024 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 HhSuite(CMakePackage):
    """HH-suite is a widely used open source software suite for
    sensitive sequence similarity searches and protein fold
    recognition. It is based on pairwise alignment of profile Hidden
    Markov models (HMMs), which represent multiple sequence alignments
    of homologous proteins."""

    homepage = "https://github.com/soedinglab/hh-suite"
    url = "https://github.com/soedinglab/hh-suite/archive/refs/tags/v3.3.0.tar.gz"

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

    version("3.3.0", sha256="dd67f7f3bf601e48c9c0bc4cf1fbe3b946f787a808bde765e9436a48d27b0964")

    variant("mpi", default=True, description="Enable MPI support")

    depends_on("cmake@2.8.12:", type="build")
    depends_on("mpi", when="+mpi")

    def build_args(self, spec, prefix):
        args = []
        if "+mpi" in self.spec:
            args.append("-DCHECK_MPI=1")
        else:
            args.append("-DCHECK_MPI=0")
        return args