homebrew-core/Formula/curl.rb
Ant Bryan 24bc82d86f curl 7.28.0
Closes Homebrew/homebrew#15447.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-13 20:57:39 -07:00

31 lines
898 B
Ruby

require 'formula'
class Curl < Formula
homepage 'http://curl.haxx.se/'
url 'http://curl.haxx.se/download/curl-7.28.0.tar.gz'
sha256 'ececf0355d352925cb41936be6b50b68d8af1fbd737e267c8fe9e929c5539ff4'
keg_only :provided_by_osx,
"The libcurl provided by Leopard is too old for CouchDB to use."
option 'with-ssh', 'Build with scp and sftp support'
option 'with-libmetalink', 'Build with Metalink support'
depends_on 'pkg-config' => :build
depends_on 'libssh2' if build.include? 'with-ssh'
depends_on 'libmetalink' if build.include? 'with-libmetalink'
def install
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--with-libssh2" if build.include? 'with-ssh'
args << "--with-libmetalink" if build.include? 'with-libmetalink'
system "./configure", *args
system "make install"
end
end