aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCamillo Lugaresi2010-12-21 04:40:11 +0100
committerAdam Vandenberg2010-12-26 13:38:33 -0800
commit1c271e0aabe295ceebd6097194b7c807cf94c45e (patch)
tree94a06e659d1ec5d1b810d89a0974f93f7e6f3f5c /Library/Formula
parent9dca21d8cd9886cabacac3913d86784259071802 (diff)
downloadhomebrew-1c271e0aabe295ceebd6097194b7c807cf94c45e.tar.bz2
lua: use safe_system for calling patch
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/lua.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb
index fc5c86ada..7a64371b0 100644
--- a/Library/Formula/lua.rb
+++ b/Library/Formula/lua.rb
@@ -10,10 +10,9 @@ class Lua <Formula
def install
# Apply patch-level 2
- cd 'src' do
- curl "http://www.lua.org/ftp/patch-lua-5.1.4-2", "-O"
- `patch < patch-lua-5.1.4-2`
- end
+ curl "http://www.lua.org/ftp/patch-lua-5.1.4-2", "-O"
+ safe_system '/usr/bin/patch', '-d', 'src', '-i', '../patch-lua-5.1.4-2'
+ # we could use the patches method if it supported additional arguments (-d in our case)
# Use our CC/CFLAGS to compile.
inreplace 'src/Makefile' do |s|