From c0f6cb5393e0a0e297b59544c92ea16990f7b349 Mon Sep 17 00:00:00 2001 From: 健美猫 Date: Wed, 7 Mar 2018 01:41:22 +0800 Subject: Add the libssh2 variant for curl. (#6980) --- var/spack/repos/builtin/packages/curl/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/curl/package.py b/var/spack/repos/builtin/packages/curl/package.py index f567623be0..41ab94978f 100644 --- a/var/spack/repos/builtin/packages/curl/package.py +++ b/var/spack/repos/builtin/packages/curl/package.py @@ -49,10 +49,12 @@ class Curl(AutotoolsPackage): version('7.42.1', '296945012ce647b94083ed427c1877a8') variant('nghttp2', default=False, description='build nghttp2 library (requires C++11)') + variant('libssh2', default=True, description='enable libssh2 support') depends_on('openssl') depends_on('zlib') depends_on('nghttp2', when='+nghttp2') + depends_on('libssh2', when='+libssh2') def configure_args(self): spec = self.spec @@ -62,4 +64,5 @@ class Curl(AutotoolsPackage): '--with-ssl={0}'.format(spec['openssl'].prefix) ] args += self.with_or_without('nghttp2') + args += self.with_or_without('libssh2') return args -- cgit v1.2.3-60-g2f50