2010-04-05 06:49:51 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Privoxy < Formula
|
2010-04-05 06:49:51 +00:00
|
|
|
homepage 'http://www.privoxy.org'
|
2013-03-28 23:43:19 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ijbswa/Sources/3.0.21%20%28stable%29/privoxy-3.0.21-stable-src.tar.gz'
|
|
|
|
sha1 '2d73a9146e87218b25989096f63ab0772ce24109'
|
2010-04-05 06:49:51 +00:00
|
|
|
|
2012-08-01 22:50:32 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-04-03 18:02:18 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
|
2010-04-05 06:49:51 +00:00
|
|
|
def install
|
2012-04-03 18:02:18 +00:00
|
|
|
# Find Homebrew's libpcre
|
|
|
|
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
|
|
|
|
|
|
|
|
# No configure script is shipped with the source
|
|
|
|
system "autoreconf", "-i"
|
|
|
|
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2010-12-09 19:24:33 +00:00
|
|
|
"--prefix=#{prefix}",
|
2012-04-03 18:03:00 +00:00
|
|
|
"--sysconfdir=#{etc}/privoxy",
|
|
|
|
"--localstatedir=#{var}"
|
2010-04-05 06:49:51 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|