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'
|
2012-03-08 16:18:54 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ijbswa/Sources/3.0.19%20%28stable%29/privoxy-3.0.19-stable-src.tar.gz'
|
|
|
|
sha1 'a82287cbf48375ef449d021473a366baeca49250'
|
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
|