d816a5ed88
apr-util will add a linkage to sqlite, even though serf doesn't use it (from what I can tell). But when serf is linked with subversion, they need to reference the same sqlite or bad things happen. Closes Homebrew/homebrew#17172.
25 lines
606 B
Ruby
25 lines
606 B
Ruby
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
|
|
depends_on 'sqlite'
|
|
|
|
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
|