homebrew-core/Formula/privoxy.rb
Jack Nagel 824b6a21a8 privoxy: specify localstatedir to configure
Fixes Homebrew/homebrew#11408.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-03 13:03:00 -05:00

30 lines
878 B
Ruby

require 'formula'
class Privoxy < Formula
homepage 'http://www.privoxy.org'
url 'http://downloads.sourceforge.net/project/ijbswa/Sources/3.0.19%20%28stable%29/privoxy-3.0.19-stable-src.tar.gz'
sha1 'a82287cbf48375ef449d021473a366baeca49250'
if MacOS.xcode_version >= "4.3"
depends_on "automake" => :build
depends_on "libtool" => :build
end
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
end