aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/serf.rb
blob: 6210435737a877a10e37af9798272fa1db41b4f4 (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
require 'formula'

class Serf < Formula
  homepage 'http://code.google.com/p/serf/'
  url 'http://serf.googlecode.com/files/serf-1.1.1.tar.bz2'
  sha1 '1ec4689ef57e7c28e7371df00d0ccc3e32ef6457'

  option :universal

  depends_on :libtool

  def apr_bin
    superbin or "/usr/bin"
  end

  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-apr=#{apr_bin}"
    system "make install"
  end
end