aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/serf.rb
blob: f659186297a92ca82752328658bc9e6b398b4be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Serf < Formula
  homepage 'http://code.google.com/p/serf/'
  url 'http://serf.googlecode.com/files/serf-1.2.0.tar.bz2'
  sha1 '30b29bd9214d50887abcc20cf82096aaaf5d1d61'

  option :universal

  depends_on :libtool
  depends_on 'sqlite'

  def apr_bin
    superbin or "/usr/bin"
  end

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