diff options
| author | Adam Vandenberg | 2012-08-27 22:07:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 22:07:01 -0700 |
| commit | 7e5bc89e3541cea898bc366c2da587b810f59dba (patch) | |
| tree | 924c73ef815fcd4093aa8c009bcca9419640fbf2 /Library | |
| parent | 1ec30a11ac74f67f9c2806043dd5bc2208a4812c (diff) | |
| download | homebrew-7e5bc89e3541cea898bc366c2da587b810f59dba.tar.bz2 | |
lua: use new dsl
Diffstat (limited to 'Library')
| -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 |
