2021-01-02 15:10:28 +08:00
|
|
|
# Copyright 2013-2021 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-03-24 04:19:26 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2018-03-24 04:19:26 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class Beast1(Package):
|
|
|
|
"""BEAST is a cross-platform program for Bayesian
|
|
|
|
analysis of molecular sequences using MCMC."""
|
|
|
|
|
2021-09-02 14:46:27 +08:00
|
|
|
homepage = "https://beast.community/"
|
2018-03-24 04:19:26 +08:00
|
|
|
|
2019-03-27 04:39:42 +08:00
|
|
|
version('1.10.4', sha256='be652c4d55953f7c6c7a9d3eb3de203c77dc380e81ad81cfe0492408990c36a8')
|
2019-10-11 13:44:41 +08:00
|
|
|
version('1.8.4', sha256='c14e93976008463108aefa34ecc23287ab70703caccf4962e36e295207120d78')
|
2018-03-24 04:19:26 +08:00
|
|
|
|
2018-07-23 06:17:03 +08:00
|
|
|
variant('beagle', default=True, description='Build with libbeagle support')
|
|
|
|
|
2018-03-24 04:19:26 +08:00
|
|
|
depends_on('java', type='run')
|
2018-07-23 06:17:03 +08:00
|
|
|
depends_on('libbeagle', type=('build', 'link', 'run'), when="+beagle")
|
2018-03-24 04:19:26 +08:00
|
|
|
|
2019-03-27 04:39:42 +08:00
|
|
|
def url_for_version(self, ver):
|
|
|
|
base = 'https://github.com/beast-dev/beast-mcmc/releases/download'
|
|
|
|
return '{0}/v{1}/BEASTv{1}.tgz'.format(base, ver.dotted)
|
|
|
|
|
2019-10-28 11:24:06 +08:00
|
|
|
def setup_run_environment(self, env):
|
|
|
|
env.set('BEAST1', self.prefix)
|
|
|
|
env.set('BEAST_LIB', self.prefix.lib)
|
2018-03-24 04:19:26 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
install_tree('bin', prefix.bin)
|
|
|
|
install_tree('examples', prefix.examples)
|
|
|
|
install_tree('images', prefix.images)
|
|
|
|
install_tree('lib', prefix.lib)
|
|
|
|
install_tree('doc', prefix.doc)
|