summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
author健美猫 <weijianwen@gmail.com>2018-03-07 01:41:22 +0800
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-03-06 18:41:22 +0100
commitc0f6cb5393e0a0e297b59544c92ea16990f7b349 (patch)
treeb80313a2bcebd6ad300d83e5fcfa838a5d74d0e1 /var
parent2be87124060900e0b3bbd1c35a0a9d9533b0f112 (diff)
downloadspack-c0f6cb5393e0a0e297b59544c92ea16990f7b349.tar.gz
spack-c0f6cb5393e0a0e297b59544c92ea16990f7b349.tar.bz2
spack-c0f6cb5393e0a0e297b59544c92ea16990f7b349.tar.xz
spack-c0f6cb5393e0a0e297b59544c92ea16990f7b349.zip
Add the libssh2 variant for curl. (#6980)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/curl/package.py3
1 files changed, 3 insertions, 0 deletions
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