Add top-level attributes for hg, svn, and git A-L packages

This commit is contained in:
Adam J. Stewart
2018-07-23 00:00:15 -07:00
committed by Todd Gamblin
parent 5f00056490
commit 4c6aca533a
152 changed files with 468 additions and 493 deletions

View File

@@ -38,30 +38,21 @@ class Boost(Package):
"""
homepage = "http://www.boost.org"
url = "http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2"
git = "https://github.com/boostorg/boost.git"
list_url = "http://sourceforge.net/projects/boost/files/boost/"
list_depth = 1
version('develop',
git='https://github.com/boostorg/boost.git',
branch='develop',
submodules=True)
version('1.67.0', '694ae3f4f899d1a80eb7a3b31b33be73c423c1ae',
url='https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2')
version('1.66.0', 'b6b284acde2ad7ed49b44e856955d7b1ea4e9459',
url='https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2')
version('1.65.1', '41d7542ce40e171f3f7982aff008ff0d',
url='https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.tar.bz2')
version('1.65.0', '5512d3809801b0a1b9dd58447b70915d',
url='https://dl.bintray.com/boostorg/release/1.65.0/source/boost_1_65_0.tar.bz2')
version('develop', branch='develop', submodules=True)
version('1.67.0', '694ae3f4f899d1a80eb7a3b31b33be73c423c1ae')
version('1.66.0', 'b6b284acde2ad7ed49b44e856955d7b1ea4e9459')
version('1.65.1', '41d7542ce40e171f3f7982aff008ff0d')
version('1.65.0', '5512d3809801b0a1b9dd58447b70915d')
# NOTE: 1.64.0 seems fine for *most* applications, but if you need
# +python and +mpi, there seem to be errors with out-of-date
# API calls from mpi/python.
# See: https://github.com/spack/spack/issues/3963
version('1.64.0', '93eecce2abed9d2442c9676914709349',
url='https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2')
version('1.63.0', '1c837ecd990bb022d07e7aab32b09847',
url='https://dl.bintray.com/boostorg/release/1.63.0/source/boost_1_63_0.tar.bz2')
version('1.64.0', '93eecce2abed9d2442c9676914709349')
version('1.63.0', '1c837ecd990bb022d07e7aab32b09847')
version('1.62.0', '5fb94629535c19e48703bdb2b2e9490f')
version('1.61.0', '6095876341956f65f9d35939ccea1a9f')
version('1.60.0', '65a840e1a0b13a558ff19eeb2c4f0cbe')
@@ -182,7 +173,11 @@ class Boost(Package):
patch('boost_1.63.0_pgi_17.4_workaround.patch', when='@1.63.0%pgi@17.4')
def url_for_version(self, version):
url = "http://downloads.sourceforge.net/project/boost/boost/{0}/boost_{1}.tar.bz2"
if version >= Version('1.63.0'):
url = "https://dl.bintray.com/boostorg/release/{0}/source/boost_{1}.tar.bz2"
else:
url = "http://downloads.sourceforge.net/project/boost/boost/{0}/boost_{1}.tar.bz2"
return url.format(version.dotted, version.underscored)
def determine_toolset(self, spec):