lua: use safe_system for calling patch
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
4e22883318
commit
5d1a762a51
1 changed files with 3 additions and 4 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue