2022-01-13 03:21:41 +08:00
|
|
|
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2018-04-18 02:30:30 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2018-04-18 02:30:30 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Psmc(MakefilePackage):
|
|
|
|
"""mplementation of the Pairwise Sequentially Markovian Coalescent
|
|
|
|
(PSMC) model"""
|
|
|
|
|
|
|
|
homepage = "https://github.com/lh3/psmc"
|
2018-07-24 09:55:17 +08:00
|
|
|
git = "https://github.com/lh3/psmc.git"
|
2018-04-18 02:30:30 +08:00
|
|
|
|
2018-07-24 09:55:17 +08:00
|
|
|
version("2016-1-21", commit="e5f7df5d00bb75ec603ae0beff62c0d7e37640b9")
|
2018-04-18 02:30:30 +08:00
|
|
|
|
2019-10-09 09:51:04 +08:00
|
|
|
depends_on("zlib", type="link")
|
|
|
|
|
2019-11-30 05:00:44 +08:00
|
|
|
def setup_run_environment(self, env):
|
|
|
|
env.prepend_path("PATH", self.prefix.bin.utils)
|
2018-04-18 02:30:30 +08:00
|
|
|
|
|
|
|
def build(self, spec, prefix):
|
|
|
|
make()
|
|
|
|
with working_dir("utils"):
|
|
|
|
make()
|
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
install_tree(self.build_directory, prefix.bin)
|