summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorilbiondo <61497728+ilbiondo@users.noreply.github.com>2020-04-15 13:26:37 +0200
committerGitHub <noreply@github.com>2020-04-15 13:26:37 +0200
commit666bc844be759e6d289b0f62866138b6177cf18a (patch)
tree706deca2dbc45b785ccf3ad9acb05e643e66d595 /var
parentff0ec9cf6151eaa7b5e478f5c305102506c8852e (diff)
downloadspack-666bc844be759e6d289b0f62866138b6177cf18a.tar.gz
spack-666bc844be759e6d289b0f62866138b6177cf18a.tar.bz2
spack-666bc844be759e6d289b0f62866138b6177cf18a.tar.xz
spack-666bc844be759e6d289b0f62866138b6177cf18a.zip
Phylobayes MPI: added new package at v1.8b (#16065)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/phylobayesmpi/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/phylobayesmpi/package.py b/var/spack/repos/builtin/packages/phylobayesmpi/package.py
new file mode 100644
index 0000000000..9a10a82054
--- /dev/null
+++ b/var/spack/repos/builtin/packages/phylobayesmpi/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2020 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 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"
+
+ 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)