curl: add dependency on libidn2 (#17526)

If the system has libidn2 installed, then curl will use it.
spack has a libidn2 package, so let's use that!

Related: #16514
This commit is contained in:
Dr. Christian Tacke 2020-07-15 08:43:38 +02:00 committed by GitHub
parent d56711f799
commit 0d4740d1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,7 @@ class Curl(AutotoolsPackage):
conflicts('platform=linux', when='+darwinssl')
depends_on('openssl', when='~darwinssl')
depends_on('libidn2')
depends_on('zlib')
depends_on('nghttp2', when='+nghttp2')
depends_on('libssh2', when='+libssh2')
@ -62,6 +63,8 @@ def configure_args(self):
spec = self.spec
args = ['--with-zlib={0}'.format(spec['zlib'].prefix)]
args.append('--with-libidn2={0}'.format(spec['libidn2'].prefix))
if spec.satisfies('+darwinssl'):
args.append('--with-darwinssl')
else: