blob: 1bfc8d9a072876633352e3d649711f1418a0f0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  | 
require 'formula'
class Curl < Formula
  homepage 'http://curl.haxx.se/'
  url 'http://curl.haxx.se/download/curl-7.26.0.tar.bz2'
  sha256 'fced262f16eb6bfcdcea15e04a7905ffcb5ff04b14a19ca35b9df86d6720d26a'
  keg_only :provided_by_osx,
            "The libcurl provided by Leopard is too old for CouchDB to use."
  depends_on 'pkg-config' => :build
  depends_on 'libssh2' if ARGV.include? "--with-ssh"
  def options
    [["--with-ssh", "Build with scp and sftp support."]]
  end
  def install
    args = %W[
        --disable-debug
        --disable-dependency-tracking
        --prefix=#{prefix}]
    args << "--with-libssh2" if ARGV.include? "--with-ssh"
    system "./configure", *args
    system "make install"
  end
end
  |