diff options
author | Nick Booher <njbooher@iastate.edu> | 2019-11-16 01:12:38 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-11-16 00:12:38 -0700 |
commit | c8c8dca5b5e8cae7e40eb30a36ac55692b352e4e (patch) | |
tree | 54d9ad992d63f3b24ea6c487063bdf27759f2978 /var | |
parent | 3dbafb5ee7f582b395cba3783ddba5cc579dbd16 (diff) | |
download | spack-c8c8dca5b5e8cae7e40eb30a36ac55692b352e4e.tar.gz spack-c8c8dca5b5e8cae7e40eb30a36ac55692b352e4e.tar.bz2 spack-c8c8dca5b5e8cae7e40eb30a36ac55692b352e4e.tar.xz spack-c8c8dca5b5e8cae7e40eb30a36ac55692b352e4e.zip |
revbayes: add new versions (#13760)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/revbayes/package.py | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/revbayes/package.py b/var/spack/repos/builtin/packages/revbayes/package.py index 50176857bf..0198efe768 100644 --- a/var/spack/repos/builtin/packages/revbayes/package.py +++ b/var/spack/repos/builtin/packages/revbayes/package.py @@ -12,7 +12,11 @@ class Revbayes(CMakePackage): homepage = "https://revbayes.github.io" url = "https://github.com/revbayes/revbayes/archive/v1.0.11.tar.gz" + git = "https://github.com/revbayes/revbayes.git" + version('develop', branch='development') + version('1.0.13', sha256='472b4ccc44d813c1ff1b8d27e8ccf3d96388de79aa1688b3714f683ba65038fa') + version('1.0.12', sha256='d79f3a9bc72305cab35009d11e1f027fcaacde7329a4c49b5b8285588a8d3588') version('1.0.11', sha256='7e81b1952e3a63cb84617fa632f4ccdf246b4d79e7d537a423540de047dadf50') version('1.0.10', sha256='95e9affe8ca8d62880cf46778b6ec9dd8726e62a185670ebcbadf2eb2bb79f93') @@ -21,9 +25,14 @@ class Revbayes(CMakePackage): depends_on('boost') depends_on('mpi', when='+mpi') - conflicts('%gcc@7.1.0:') + conflicts('%gcc@7.1.0:', when='@:1.0.12') - root_cmakelists_dir = 'projects/cmake/build' + @property + def root_cmakelists_dir(self): + if self.spec.version > Version('1.0.13') and '+mpi' in self.spec: + return 'projects/cmake/build-mpi' + else: + return 'projects/cmake/build' @run_before('cmake') def regenerate(self): @@ -44,3 +53,9 @@ class Revbayes(CMakePackage): else: install_path = join_path(self.build_directory, '..', 'rb') install(install_path, prefix.bin) + + @when('@1.0.12:1.0.13') + def install(self, spec, prefix): + mkdirp(prefix.bin) + install_path = join_path(self.build_directory, '..', 'rb') + install(install_path, prefix.bin) |