summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/dialign/package.py
blob: 13034578c7e37cad69c1561d8b7fb4951c645439 (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
# 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 Dialign(MakefilePackage):
    """DIALIGN is a software program for multiple sequence alignment developed
    by Burkhard Morgenstern et al.."""

    homepage = "https://bibiserv.cebitec.uni-bielefeld.de/dialign"
    url = "https://bibiserv.cebitec.uni-bielefeld.de/applications/dialign/resources/downloads/dialign-2.2.1-src.tar.gz"

    license("LGPL-2.1-or-later")

    version("2.2.1", sha256="046361bb4ca6e4ab2ac5e634cfcd673f964a887006c09c1b8bd3310fac86f519")

    build_directory = "src"

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        install(join_path("src", "dialign2-2"), prefix.bin)

        mkdirp(prefix.share)
        install_tree("dialign2_dir", prefix.share)

    def setup_run_environment(self, env):
        env.set("DIALIGN2_DIR", self.prefix.share)