blob: c4077a1031bdf5508b7954972a9b01af226822fd (
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
|
# 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 Phylobayesmpi(MakefilePackage):
"""Phylobayes MPI version"""
homepage = "https://github.com/bayesiancook/pbmp"
url = "https://github.com/bayesiancook/pbmpi/archive/v1.8b.tar.gz"
git = "https://github.com/bayesiancook/pbmpi.git"
license("GPL-2.0-only")
version("1.8b", sha256="7ff017bf492c1d8b42bfff3ee8e998ba1c50f4e4b3d9d6125647b91738017324")
depends_on("mpi")
build_directory = "sources"
def edit(self, spec, prefix):
with working_dir("sources"):
makefile = FileFilter("Makefile")
makefile.filter("CC=.*", "CC = " + spec["mpi"].mpicxx)
def install(self, spec, prefix):
# no install target provided in Makefile so copy the executables
# from the data directory
install_tree("data", prefix.bin)
|