curl: Remove duplicate conditional

Also, make sure that the libmetalink option is declared.
master
chdiza 2014-03-29 10:10:56 -04:00 committed by Mike McQuaid
parent f07130f217
commit feb092e4f7
1 changed files with 1 additions and 1 deletions

View File

@ -13,6 +13,7 @@ class Curl < Formula
option 'with-ssh', 'Build with scp and sftp support'
option 'with-ares', 'Build with C-Ares async DNS support'
option 'with-gssapi', 'Build with GSSAPI/Kerberos authentication support.'
option 'with-libmetalink', 'Build with libmetalink support.'
if MacOS.version >= :mountain_lion
option 'with-openssl', 'Build with OpenSSL instead of Secure Transport'
@ -46,7 +47,6 @@ class Curl < Formula
args << (build.with?("libmetalink") ? "--with-libmetalink" : "--without-libmetalink")
args << (build.with?("gssapi") ? "--with-gssapi" : "--without-gssapi")
args << (build.with?("rtmp") ? "--with-librtmp" : "--without-librtmp")
args << (build.with?("gssapi") ? "--with-gssapi" : "--without-gssapi")
if build.with? "ares"
args << "--enable-ares=#{Formula["c-ares"].opt_prefix}"