homebrew-core/Formula/curl.rb
kjedamzik 02372ad583 curl 7.34.0
Closes Homebrew/homebrew#25286.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-20 10:21:16 -06:00

40 lines
1.4 KiB
Ruby

require 'formula'
class Curl < Formula
homepage 'http://curl.haxx.se/'
url 'http://curl.haxx.se/download/curl-7.34.0.tar.gz'
mirror 'ftp://ftp.sunet.se/pub/www/utilities/curl/curl-7.34.0.tar.gz'
sha256 '0705271de8411a85460706e177cd0f1064ec07c0b9e140a66a916fb644696d6a'
keg_only :provided_by_osx
option 'with-ssh', 'Build with scp and sftp support'
option 'with-ares', 'Build with C-Ares async DNS support'
option 'with-ssl', 'Build with Homebrew OpenSSL instead of the system version'
option 'with-darwinssl', 'Build with Secure Transport for SSL support'
option 'with-gssapi', 'Build with GSSAPI/Kerberos authentication support.'
depends_on 'pkg-config' => :build
depends_on 'libmetalink' => :optional
depends_on 'libssh2' if build.with? 'ssh'
depends_on 'c-ares' if build.with? 'ares'
depends_on 'openssl' if build.with? 'ssl'
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--with-libssh2" if build.with? 'ssh'
args << "--with-libmetalink" if build.with? 'libmetalink'
args << "--enable-ares=#{Formula.factory("c-ares").opt_prefix}" if build.with? 'ares'
args << "--with-ssl=#{Formula.factory("openssl").opt_prefix}" if build.with? 'ssl'
args << "--with-darwinssl" if build.with? 'darwinssl'
args << "--with-gssapi" if build.with? 'gssapi'
system "./configure", *args
system "make install"
end
end