diff options
| author | Jack Nagel | 2014-11-14 14:35:07 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-11-14 14:46:44 -0600 |
| commit | 5b93179508761320c749bbc71acf41b8087cf81f (patch) | |
| tree | 1656d30c30c7e516cfc566dc19296501ef2a2234 /Library | |
| parent | e922d6e8cdc297f43424ce136fac33296b5155b8 (diff) | |
| download | homebrew-5b93179508761320c749bbc71acf41b8087cf81f.tar.bz2 | |
curl: update options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/curl.rb | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/Library/Formula/curl.rb b/Library/Formula/curl.rb index c38b8ec1f..4a84c4209 100644 --- a/Library/Formula/curl.rb +++ b/Library/Formula/curl.rb @@ -15,13 +15,18 @@ class Curl < Formula keg_only :provided_by_osx - option 'with-idn', 'Build with support for Internationalized Domain Names' - option 'with-rtmp', 'Build with RTMP support' - option 'with-ssh', 'Build with scp and sftp support' - option 'with-ares', 'Build with C-Ares async DNS support' + option 'with-libidn', 'Build with support for Internationalized Domain Names' + option 'with-rtmpdump', 'Build with RTMP support' + option 'with-libssh2', 'Build with scp and sftp support' + option 'with-c-ares', 'Build with C-Ares async DNS support' option 'with-gssapi', 'Build with GSSAPI/Kerberos authentication support.' option 'with-libmetalink', 'Build with libmetalink support.' + deprecated_option "with-idn" => "with-libidn" + deprecated_option "with-rtmp" => "with-rtmpdump" + deprecated_option "with-ssh" => "with-libssh2" + deprecated_option "with-ares" => "with-c-ares" + if MacOS.version >= :mountain_lion option 'with-openssl', 'Build with OpenSSL instead of Secure Transport' depends_on 'openssl' => :optional @@ -30,11 +35,11 @@ class Curl < Formula end depends_on 'pkg-config' => :build - depends_on 'libidn' if build.with? 'idn' + depends_on 'libidn' => :optional depends_on 'libmetalink' => :optional - depends_on 'libssh2' if build.with? 'ssh' - depends_on 'c-ares' if build.with? 'ares' - depends_on 'rtmpdump' if build.with? 'rtmp' + depends_on 'libssh2' => :optional + depends_on 'c-ares' => :optional + depends_on 'rtmpdump' => :optional def install args = %W[ @@ -50,13 +55,13 @@ class Curl < Formula args << "--with-darwinssl" end - args << (build.with?("ssh") ? "--with-libssh2" : "--without-libssh2") - args << (build.with?("idn") ? "--with-libidn" : "--without-libidn") + args << (build.with?("libssh2") ? "--with-libssh2" : "--without-libssh2") + args << (build.with?("libidn") ? "--with-libidn" : "--without-libidn") 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?("rtmpdump") ? "--with-librtmp" : "--without-librtmp") - if build.with? "ares" + if build.with? "c-ares" args << "--enable-ares=#{Formula["c-ares"].opt_prefix}" else args << "--disable-ares" |
