libxml2: new url, add 2.9.13 (#30401)

This commit is contained in:
Harmen Stoppels 2022-04-30 07:22:24 +02:00 committed by GitHub
parent 06b5217c01
commit f2c1b40e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,16 @@ class Libxml2(AutotoolsPackage):
software available under the MIT License."""
homepage = "http://xmlsoft.org"
url = "http://xmlsoft.org/sources/libxml2-2.9.8.tar.gz"
url = 'https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.13.tar.xz'
list_url = 'https://gitlab.gnome.org/GNOME/libxml2/-/releases'
def url_for_version(self, version):
if version >= Version('2.9.13'):
url = 'https://download.gnome.org/sources/libxml2/{0}/libxml2-{1}.tar.xz'
return url.format(version.up_to(2), version)
return 'http://xmlsoft.org/sources/libxml2-{0}.tar.gz'.format(version)
version('2.9.13', sha256='276130602d12fe484ecc03447ee5e759d0465558fbc9d6bd144e3745306ebf0e')
version('2.9.12', sha256='c8d6681e38c56f172892c85ddc0852e1fd4b53b4209e7f4ebf17f7e2eae71d92')
version('2.9.11', sha256='886f696d5d5b45d780b2880645edf9e0c62a4fd6841b853e824ada4e02b4d331')
version('2.9.10', sha256='aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f')