lua: use safe_system for calling patch

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Camillo Lugaresi 2010-12-21 04:40:11 +01:00 committed by Adam Vandenberg
parent 4e22883318
commit 5d1a762a51

View file

@ -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|