summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2018-12-03 13:35:51 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2018-12-03 12:35:51 -0600
commit0d033a042c2f2b7ddad740cf6013c7edaa670434 (patch)
tree482b1e4155ed972b72499698a7a277172c61b53e
parent3a2045b7c074d4c53cefbbdad113a7717b1d9b99 (diff)
downloadspack-0d033a042c2f2b7ddad740cf6013c7edaa670434.tar.gz
spack-0d033a042c2f2b7ddad740cf6013c7edaa670434.tar.bz2
spack-0d033a042c2f2b7ddad740cf6013c7edaa670434.tar.xz
spack-0d033a042c2f2b7ddad740cf6013c7edaa670434.zip
Download CMake sources from the Github releases (#10003)
Now that CMake is providing CMake release artifacts on github, we should prefer those as they have better download speeds and uptime.
-rw-r--r--var/spack/repos/builtin/packages/cmake/package.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py
index c56d733d45..60ec0b4b38 100644
--- a/var/spack/repos/builtin/packages/cmake/package.py
+++ b/var/spack/repos/builtin/packages/cmake/package.py
@@ -10,9 +10,7 @@ class Cmake(Package):
"""A cross-platform, open-source build system. CMake is a family of
tools designed to build, test and package software."""
homepage = 'https://www.cmake.org'
- url = 'https://cmake.org/files/v3.4/cmake-3.4.3.tar.gz'
- list_url = 'https://cmake.org/files/'
- list_depth = 1
+ url = 'https://github.com/Kitware/CMake/releases/download/v3.13.0/cmake-3.13.0.tar.gz'
version('3.13.0', '4058b2f1a53c026564e8936698d56c3b352d90df067b195cb749a97a3d273c90')
version('3.12.4', '5255584bfd043eb717562cff8942d472f1c0e4679c4941d84baadaa9b28e3194')
@@ -85,11 +83,6 @@ class Cmake(Package):
phases = ['bootstrap', 'build', 'install']
- def url_for_version(self, version):
- """Handle CMake's version-based custom URLs."""
- url = 'https://cmake.org/files/v{0}/cmake-{1}.tar.gz'
- return url.format(version.up_to(2), version)
-
def bootstrap_args(self):
spec = self.spec
args = [