summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pbmpi/package.py
blob: ab63fa40efd76d417869c9386378027cbd473f96 (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
# Copyright 2013-2022 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 Pbmpi(MakefilePackage):
    """A Bayesian software for phylogenetic reconstruction using mixture models
    """

    homepage = "https://megasun.bch.umontreal.ca/People/lartillot/www/index.htm"
    git      = "https://github.com/bayesiancook/pbmpi.git"

    version('partition', branch='partition')

    depends_on('mpi')
    depends_on('libfabric')

    build_directory = 'sources'

    @run_before('build')
    def make_data_dir(self):
        mkdirp(self.stage.source_path, 'data')

    def install(self, spec, prefix):
        install_tree('data', prefix.bin)
        install_tree('sources', prefix.sources)