2012-05-05 04:07:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Serf < Formula
|
|
|
|
homepage 'http://code.google.com/p/serf/'
|
2012-11-19 01:32:08 +00:00
|
|
|
url 'http://serf.googlecode.com/files/serf-1.1.1.tar.bz2'
|
|
|
|
sha1 '1ec4689ef57e7c28e7371df00d0ccc3e32ef6457'
|
2012-05-05 04:07:36 +00:00
|
|
|
|
2012-08-10 05:17:14 +00:00
|
|
|
option :universal
|
|
|
|
|
2012-08-02 16:00:30 +00:00
|
|
|
depends_on :libtool
|
2013-01-22 16:45:01 +00:00
|
|
|
depends_on 'sqlite'
|
2012-08-02 16:00:30 +00:00
|
|
|
|
2012-08-31 15:42:01 +00:00
|
|
|
def apr_bin
|
|
|
|
superbin or "/usr/bin"
|
|
|
|
end
|
|
|
|
|
2012-05-05 04:07:36 +00:00
|
|
|
def install
|
2012-08-10 05:17:14 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-05-05 04:07:36 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2012-08-31 15:42:01 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-apr=#{apr_bin}"
|
2012-05-05 04:07:36 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|