2009-12-17 19:55:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Curl < Formula
|
2009-12-17 19:55:27 +00:00
|
|
|
homepage 'http://curl.haxx.se/'
|
2012-06-17 17:02:48 +00:00
|
|
|
url 'http://curl.haxx.se/download/curl-7.26.0.tar.bz2'
|
|
|
|
sha256 'fced262f16eb6bfcdcea15e04a7905ffcb5ff04b14a19ca35b9df86d6720d26a'
|
2009-12-17 19:55:27 +00:00
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx,
|
|
|
|
"The libcurl provided by Leopard is too old for CouchDB to use."
|
2010-11-09 21:20:56 +00:00
|
|
|
|
2012-04-04 06:28:44 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libssh2' if ARGV.include? "--with-ssh"
|
|
|
|
|
|
|
|
def options
|
|
|
|
[["--with-ssh", "Build with scp and sftp support."]]
|
|
|
|
end
|
|
|
|
|
2009-12-17 19:55:27 +00:00
|
|
|
def install
|
2012-04-04 06:28:44 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}]
|
|
|
|
|
|
|
|
args << "--with-libssh2" if ARGV.include? "--with-ssh"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-12-17 19:55:27 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|