From fba5fbfb3b67ec209ea33b2c39e2754850493bef Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 3 Apr 2012 13:02:18 -0500 Subject: [PATCH] privoxy: clarify autoreconf, use our libpcre Signed-off-by: Jack Nagel --- Formula/privoxy.rb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Formula/privoxy.rb b/Formula/privoxy.rb index 217b96fcd1..25690b197b 100644 --- a/Formula/privoxy.rb +++ b/Formula/privoxy.rb @@ -6,15 +6,21 @@ class Privoxy < Formula sha1 'a82287cbf48375ef449d021473a366baeca49250' if MacOS.xcode_version >= "4.3" - # remove the autoreconf if possible, no comment provided about why it is there - # so we have no basis to make a decision at this point. depends_on "automake" => :build depends_on "libtool" => :build end + depends_on 'pcre' + def install - system "autoreconf -i" - system "./configure", "--disable-debug", "--disable-dependency-tracking", + # 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" system "make"