Add a new version for gnutls. (#11546)

* Update URL and add a new version.

* Fix flake8 issues.

* Remove newly-added duplicate url_for_version.
This commit is contained in:
健美猞猁 2019-05-27 09:45:16 +08:00 committed by Adam J. Stewart
parent 1efaaad344
commit 47538a21ec

View file

@ -17,6 +17,7 @@ class Gnutls(AutotoolsPackage):
homepage = "http://www.gnutls.org"
url = "https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.19.tar.xz"
version('3.6.7.1', sha256='881b26409ecd8ea4c514fd3fbdb6fae5fab422ca7b71116260e263940a4bbbad')
version('3.5.19', sha256='1936eb64f03aaefd6eb16cef0567457777618573826b94d03376bb6a4afadc44')
version('3.5.13', '4fd41ad86572933c2379b4cc321a0959')
version('3.5.10', '336c03a71ba90184ffd0388075dde504')
@ -26,6 +27,7 @@ class Gnutls(AutotoolsPackage):
variant('zlib', default=True, description='Enable zlib compression support')
# Note that version 3.3.9 of gnutls doesn't support nettle 3.0.
depends_on('nettle@3.4.1:', when='@3.6.7.1:')
depends_on('nettle@:2.9', when='@3.3.9')
depends_on('nettle', when='@3.5:')
depends_on('libidn2@:2.0.99', when='@:3.5.99')