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/xspringies.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/xspringies.rb')
| -rw-r--r-- | Library/Formula/xspringies.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/xspringies.rb b/Library/Formula/xspringies.rb index 3668a8696..9de783b4d 100644 --- a/Library/Formula/xspringies.rb +++ b/Library/Formula/xspringies.rb @@ -7,8 +7,10 @@ class Xspringies <Formula version '1.12' def install - inreplace 'Makefile.std', 'LIBS = -lm -lX11', 'LIBS = -L/usr/X11/lib -lm -lX11' - inreplace 'Makefile.std', 'mkdirhier', 'mkdir -p' + inreplace 'Makefile.std' do |s| + s.change_make_var! "LIBS", '-L/usr/X11/lib -lm -lX11' + s.gsub! 'mkdirhier', 'mkdir -p' + end system "make -f Makefile.std DDIR=#{prefix}/ install" end end |
