diff options
Diffstat (limited to 'Library/Formula/lua.rb')
| -rw-r--r-- | Library/Formula/lua.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb index 42832313c..32b8d261e 100644 --- a/Library/Formula/lua.rb +++ b/Library/Formula/lua.rb @@ -13,9 +13,7 @@ class Lua < Formula # Skip cleaning both empty folders and bin/libs so external symbols still work. skip_clean :all - def options - [['--completion', 'Enables advanced readline support']] - end + option 'completion', 'Enables advanced readline support' # Be sure to build a dylib, or else runtime modules will pull in another static copy of liblua = crashy # See: https://github.com/mxcl/homebrew/pull/5043 @@ -23,7 +21,7 @@ class Lua < Formula p = [DATA] # completion provided by advanced readline power patch from # http://lua-users.org/wiki/LuaPowerPatches - if ARGV.include? '--completion' + if build.include? 'completion' p << 'http://luajit.org/patches/lua-5.1.4-advanced_readline.patch' end p |
