From 482c513e4c20c72cffcb3463bcb3b863d3ecf7c4 Mon Sep 17 00:00:00 2001 From: Ant Bryan Date: Mon, 27 Aug 2012 20:31:15 -0400 Subject: curl: add libmetalink option Signed-off-by: Adam Vandenberg --- Library/Formula/curl.rb | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/curl.rb b/Library/Formula/curl.rb index fd0247255..fff8247d8 100644 --- a/Library/Formula/curl.rb +++ b/Library/Formula/curl.rb @@ -8,18 +8,22 @@ class Curl < Formula 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' - - option 'with-ssh', 'Build with scp and sftp support' + depends_on 'libmetalink' if build.include? 'with-libmetalink' def install args = %W[ - --disable-debug - --disable-dependency-tracking - --prefix=#{prefix}] + --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" -- cgit v1.2.3