parsley use block inreplace

This commit is contained in:
Adam Vandenberg 2011-03-25 22:37:14 -07:00
parent 80217645b8
commit e5eb669c6e

View file

@ -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