aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lua.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-19 11:19:01 -0800
committerAdam Vandenberg2010-02-21 23:37:49 -0800
commitaad4dc23ece5869165b23f9637475503d2491db8 (patch)
tree733f6c214af986df9db5c04728588fadaae2fbb2 /Library/Formula/lua.rb
parenta6caeff4507f4502f5b9d9435ba009564e7c0669 (diff)
downloadhomebrew-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/lua.rb')
-rw-r--r--Library/Formula/lua.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb
index ad92b0725..f3174d3a6 100644
--- a/Library/Formula/lua.rb
+++ b/Library/Formula/lua.rb
@@ -10,12 +10,12 @@ class Lua <Formula
end
def install
- inreplace 'Makefile', '/usr/local', prefix
- inreplace 'src/luaconf.h', '/usr/local', prefix
- inreplace 'etc/lua.pc', '/usr/local', prefix
+ inreplace ['Makefile', 'src/luaconf.h', 'etc/lua.pc'],
+ '/usr/local', prefix
+
+ inreplace ['Makefile', 'etc/lua.pc'],
+ 'man/man1', 'share/man/man1'
- inreplace 'Makefile', 'man/man1', 'share/man/man1'
- inreplace 'etc/lua.pc', 'man/man1', 'share/man/man1'
inreplace 'src/luaconf.h', '/usr/local', HOMEBREW_PREFIX
ENV.append "CFLAGS", "-DLUA_USE_LINUX"