openconnect: --with-gnutls option

Closes Homebrew/homebrew#29815.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Duncan Maitland 2014-06-03 22:40:51 +10:00 committed by Adam Vandenberg
parent f2c3c636ef
commit 70ff52486d

View file

@ -19,9 +19,12 @@ class Openconnect < Formula
depends_on "libtool" => :build
end
option 'with-gnutls', 'Use GnuTLS instead of OpenSSL'
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on "openssl"
depends_on 'openssl' if build.without? 'gnutls'
depends_on 'gnutls' => :optional
resource 'vpnc-script' do
url 'http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/d2c5a77f3f0ea6ad80fc59158127d63ede81a6cb:/vpnc-script'