diff options
| author | Adam Vandenberg | 2010-02-19 11:19:01 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-21 23:37:49 -0800 |
| commit | aad4dc23ece5869165b23f9637475503d2491db8 (patch) | |
| tree | 733f6c214af986df9db5c04728588fadaae2fbb2 /Library/Formula/grep.rb | |
| parent | a6caeff4507f4502f5b9d9435ba009564e7c0669 (diff) | |
| download | homebrew-aad4dc23ece5869165b23f9637475503d2491db8.tar.bz2 | |
Use more inreplace features.
Update formulas to make more idiomatic use of "inreplace", including
its new ability to take a list of files to act on.
Diffstat (limited to 'Library/Formula/grep.rb')
| -rw-r--r-- | Library/Formula/grep.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/grep.rb b/Library/Formula/grep.rb index 7dd4d0afa..d4c204a8a 100644 --- a/Library/Formula/grep.rb +++ b/Library/Formula/grep.rb @@ -9,14 +9,17 @@ class Grep <Formula depends_on 'pcre' def install - system "./configure", "--prefix=#{prefix}", "--disable-debug", + system "./configure", "--disable-debug", "--disable-dependency-tracking", "--disable-nls", + "--prefix=#{prefix}", "--infodir=#{info}", "--mandir=#{man}" # Configure gives me 2 copies of -lpcre and no -lintl, so fix that - inreplace "src/Makefile", /^LIBS = .*$/, "LIBS = -lintl -lpcre" + inreplace "src/Makefile" do |s| + s.change_make_var! "LIBS", "-lintl -lpcre" + end system "make" system "make install" |
