aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAnt Bryan2012-08-27 20:31:15 -0400
committerAdam Vandenberg2012-08-27 19:47:31 -0700
commit482c513e4c20c72cffcb3463bcb3b863d3ecf7c4 (patch)
tree74accccaafe178b2c8b63066d979d5494f49c1d4 /Library/Formula
parent8e599ede57501929f9403e88fd40da56ee7bfd29 (diff)
downloadhomebrew-482c513e4c20c72cffcb3463bcb3b863d3ecf7c4.tar.bz2
curl: add libmetalink option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/curl.rb14
1 files changed, 9 insertions, 5 deletions
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"