diff --git a/Formula/parsley.rb b/Formula/parsley.rb index 433e503b09..6f85f4e3ba 100644 --- a/Formula/parsley.rb +++ b/Formula/parsley.rb @@ -12,8 +12,11 @@ class Parsley < Formula argp = Formula.factory("argp-standalone").prefix # remove the refs to /opt/local and use this opportunity to link to argp - inreplace 'configure', '-L/opt/local/lib', "-L#{argp}" - inreplace 'configure', '-I/opt/local/include', "-I#{argp}" + inrepace "configure" do |s| + s.gsub! '-L/opt/local/lib', "-L#{argp}" + s.gsub! '-I/opt/local/include', "-I#{argp}" + end + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end