parsley use block inreplace
This commit is contained in:
parent
80217645b8
commit
e5eb669c6e
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue