diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/psmc/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/psmc/package.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/psmc/package.py b/var/spack/repos/builtin/packages/psmc/package.py new file mode 100644 index 0000000000..019d664e39 --- /dev/null +++ b/var/spack/repos/builtin/packages/psmc/package.py @@ -0,0 +1,27 @@ +# Copyright 2013-2018 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 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" + + version('2016-1-21', commit='e5f7df5d00bb75ec603ae0beff62c0d7e37640b9') + + def setup_environment(self, spack_env, run_env): + run_env.prepend_path('PATH', 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) |