summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/paml/package.py
blob: 3a8966b3f2c58768dd1853b05f0df385dfc337f3 (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
36
37
38
39
40
41
42
43
44
45
46
47
# 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 Paml(MakefilePackage):
    """PAML is a package of programs for phylogenetic analyses of DNA or
    protein sewuences using maximum likelihood."""

    homepage = "http://abacus.gene.ucl.ac.uk/software/paml.html"
    url = "https://github.com/abacus-gene/paml/archive/refs/tags/v4.10.0.tar.gz"
    git = "https://github.com/abacus-gene/paml.git"
    maintainers("snehring")

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

    version(
        "4.10.3",
        sha256="9b2a6e187e3f9f3bc55cd82db15eb701d43f031167d283a7c1b11c882b5d8a42",
        url="https://github.com/abacus-gene/paml/archive/refs/tags/untagged-a5659203e8ec0ddb58b8.tar.gz",
    )
    version("4.10.0", sha256="6ef6a116f254185eb1cf7a2b975946fc9179a4b7dcb60a82f8fa8bbe6931897c")
    version(
        "4.9h",
        sha256="623bf6cf4a018a4e7b4dbba189c41d6c0c25fdca3a0ae24703b82965c772edb3",
        url="http://abacus.gene.ucl.ac.uk/software/SoftOld/paml4.9h.tgz",
    )

    build_directory = "src"

    def install(self, spec, prefix):
        mkdirp(prefix.bin)
        with working_dir(self.build_directory):
            install("baseml", prefix.bin)
            install("basemlg", prefix.bin)
            install("chi2", prefix.bin)
            install("codeml", prefix.bin)
            install("evolver", prefix.bin)
            install("infinitesites", prefix.bin)
            install("mcmctree", prefix.bin)
            install("pamp", prefix.bin)
            install("yn00", prefix.bin)
        install_tree("dat", prefix.dat)
        install_tree("Technical", prefix.Technical)