Add the libssh2 variant for curl. (#6980)

This commit is contained in:
健美猫 2018-03-07 01:41:22 +08:00 committed by Massimiliano Culpo
parent 2be8712406
commit c0f6cb5393

View file

@ -49,10 +49,12 @@ class Curl(AutotoolsPackage):
version('7.42.1', '296945012ce647b94083ed427c1877a8') version('7.42.1', '296945012ce647b94083ed427c1877a8')
variant('nghttp2', default=False, description='build nghttp2 library (requires C++11)') variant('nghttp2', default=False, description='build nghttp2 library (requires C++11)')
variant('libssh2', default=True, description='enable libssh2 support')
depends_on('openssl') depends_on('openssl')
depends_on('zlib') depends_on('zlib')
depends_on('nghttp2', when='+nghttp2') depends_on('nghttp2', when='+nghttp2')
depends_on('libssh2', when='+libssh2')
def configure_args(self): def configure_args(self):
spec = self.spec spec = self.spec
@ -62,4 +64,5 @@ def configure_args(self):
'--with-ssl={0}'.format(spec['openssl'].prefix) '--with-ssl={0}'.format(spec['openssl'].prefix)
] ]
args += self.with_or_without('nghttp2') args += self.with_or_without('nghttp2')
args += self.with_or_without('libssh2')
return args return args