Updated hdf5: new versions added. (#2442)

* Updated hdf5: new versions added.

* Updated hdf5: url_for_version() accounts for per-version urls.
This commit is contained in:
Sergey Kosukhin 2016-12-01 23:31:27 +01:00 committed by becker33
parent e26a0be731
commit c6e2d9c1b0

View File

@ -40,6 +40,12 @@ class Hdf5(AutotoolsPackage):
version('1.10.0-patch1', '9180ff0ef8dc2ef3f61bd37a7404f295') version('1.10.0-patch1', '9180ff0ef8dc2ef3f61bd37a7404f295')
version('1.10.0', 'bdc935337ee8282579cd6bc4270ad199') version('1.10.0', 'bdc935337ee8282579cd6bc4270ad199')
version('1.8.18', 'dd2148b740713ca0295442ec683d7b1c',
# The link for the latest version differs from the links for
# the previous releases. Do not forget to remove this once
# the version 1.8.18 is not the latest one for the 1.8.* branch.
url='http://hdfgroup.org/ftp/HDF5/current18/src/hdf5-1.8.18.tar.gz')
version('1.8.17', '7d572f8f3b798a628b8245af0391a0ca')
version('1.8.16', 'b8ed9a36ae142317f88b0c7ef4b9c618') version('1.8.16', 'b8ed9a36ae142317f88b0c7ef4b9c618')
version('1.8.15', '03cccb5b33dbe975fdcd8ae9dc021f24') version('1.8.15', '03cccb5b33dbe975fdcd8ae9dc021f24')
version('1.8.13', 'c03426e9e77d7766944654280b467289') version('1.8.13', 'c03426e9e77d7766944654280b467289')
@ -199,6 +205,11 @@ def check_install(self):
shutil.rmtree(checkdir) shutil.rmtree(checkdir)
def url_for_version(self, version): def url_for_version(self, version):
# If we have a specific URL for this version, return it.
version_urls = self.version_urls()
if version in version_urls:
return version_urls[version]
base_url = "http://www.hdfgroup.org/ftp/HDF5/releases" base_url = "http://www.hdfgroup.org/ftp/HDF5/releases"
if version == Version("1.2.2"): if version == Version("1.2.2"):