class Privoxy < Formula desc "Advanced filtering web proxy" homepage "http://www.privoxy.org" url "https://downloads.sourceforge.net/project/ijbswa/Sources/3.0.23%20%28stable%29/privoxy-3.0.23-stable-src.tar.gz" sha256 "80b1a172d0518a9f95cde83d18dc62b9c7f117b9ada77bdcd3d310107f28f964" bottle do sha1 "019e61d3280bc129ef7f83415b7c65785bc66727" => :yosemite sha1 "4dabda6301f4430c5f80024f8c2695582d99754c" => :mavericks sha1 "343462262756a0933cad7d04fc5ea9667c533881" => :mountain_lion end depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build depends_on "pcre" def install # 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", "--prefix=#{prefix}", "--sysconfdir=#{etc}/privoxy", "--localstatedir=#{var}" system "make" system "make", "install" end plist_options :manual => "privoxy #{HOMEBREW_PREFIX}/etc/privoxy/config" def plist; <<-EOS.undent KeepAlive Label #{plist_name} WorkingDirectory #{var} ProgramArguments #{sbin}/privoxy --no-daemon #{etc}/privoxy/config RunAtLoad EOS end end