From 7e5bc89e3541cea898bc366c2da587b810f59dba Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 27 Aug 2012 22:07:01 -0700 Subject: lua: use new dsl --- Library/Formula/lua.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3