diff options
author | Nick Booher <njbooher@gmail.com> | 2020-03-11 22:04:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 22:04:59 -0500 |
commit | 8bdbd96e68dabe63d136fa9a11df09474311e327 (patch) | |
tree | bbdfbf81bed5b9e7f1b4f311e8d69c4e1e591e70 /var | |
parent | 99e465663aee43d244efc29542f2cd43e90dfda1 (diff) | |
download | spack-8bdbd96e68dabe63d136fa9a11df09474311e327.tar.gz spack-8bdbd96e68dabe63d136fa9a11df09474311e327.tar.bz2 spack-8bdbd96e68dabe63d136fa9a11df09474311e327.tar.xz spack-8bdbd96e68dabe63d136fa9a11df09474311e327.zip |
revbayes: Update URLs and hashes for old archives (#15451)
* revbayes: Update URLs and hashes for old archives
* Switch to url_for_version
* Fix whitespace
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/revbayes/package.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/revbayes/package.py b/var/spack/repos/builtin/packages/revbayes/package.py index 7cf707a72e..5f55668392 100644 --- a/var/spack/repos/builtin/packages/revbayes/package.py +++ b/var/spack/repos/builtin/packages/revbayes/package.py @@ -15,10 +15,10 @@ class Revbayes(CMakePackage): 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') + version('1.0.13', sha256='e85e2e1fe182fe9f504900150d936a06d252a362c591b9d3d8272dd085aa85d9') + version('1.0.12', sha256='80c926bb6b37288d02e36e07b44e4663841cd1fe541e2cc0b0e44c89ca929759') + version('1.0.11', sha256='03052194baa220dde7e622a739f09f34393f67ea00a0b163b409d313d7fc7c02') + version('1.0.10', sha256='6a3cf303e7224b0b32637bd8e2c3c2cf2621f5dbe599cd74ce4b0c215d0fcd2d') variant('mpi', default=True, description='Enable MPI parallel support') @@ -27,6 +27,12 @@ class Revbayes(CMakePackage): conflicts('%gcc@7.1.0:', when='@:1.0.12') + def url_for_version(self, version): + if version > Version('1.0.13'): + return 'https://github.com/revbayes/revbayes/archive/v{0}.tar.gz'.format(version) + else: + return 'https://github.com/revbayes/revbayes.archive/archive/v{0}.tar.gz'.format(version) + @property def root_cmakelists_dir(self): if self.spec.version > Version('1.0.13') and '+mpi' in self.spec: |