summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/psmc/package.py
blob: 2398433563c52bd6abf304af94d21a020fc8d526 (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
# 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 Psmc(MakefilePackage):
    """mplementation of the Pairwise Sequentially Markovian Coalescent
    (PSMC) model"""

    homepage = "https://github.com/lh3/psmc"
    git = "https://github.com/lh3/psmc.git"

    license("MIT")

    version("2016-1-21", commit="e5f7df5d00bb75ec603ae0beff62c0d7e37640b9")

    depends_on("zlib-api", type="link")

    def setup_run_environment(self, env):
        env.prepend_path("PATH", self.prefix.bin.utils)

    def build(self, spec, prefix):
        make()
        with working_dir("utils"):
            make()

    def install(self, spec, prefix):
        install_tree(self.build_directory, prefix.bin)