diff options
Diffstat (limited to 'Library/Formula/lua.rb')
| -rw-r--r-- | Library/Formula/lua.rb | 7 |
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| |
