diff options
| author | Gary V. Vaughan | 2013-06-22 13:29:29 +0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-24 15:22:01 -0700 |
| commit | e82eaa4a41a8f99c3faf8df4007cc5fb7db2a9a9 (patch) | |
| tree | 17318490bcf35e9df7a48bde4e66564f11235398 /Library/Formula | |
| parent | 81379c45bc1d1ddc2a12910bad609b17865573a7 (diff) | |
| download | homebrew-e82eaa4a41a8f99c3faf8df4007cc5fb7db2a9a9.tar.bz2 | |
lua: make sigaction powerpatch default, support --without-sigaction
* update option decls to with/without
* apply sigaction powerpatch by default, unless --without-sigaction
is passed.
Closes #20679.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/lua.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb index 833fc5d75..970dafe41 100644 --- a/Library/Formula/lua.rb +++ b/Library/Formula/lua.rb @@ -13,23 +13,23 @@ class Lua < Formula end option :universal - option 'completion', 'Enables advanced readline support' - option 'sigaction', 'Signal handling improvements for interpreter' + option 'with-completion', 'Enables advanced readline support' + option 'without-sigaction', 'Revert to ANSI signal instead of improved POSIX sigaction' # 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 def patches p = [DATA] - # completion provided by advanced readline power patch from - # http://lua-users.org/wiki/LuaPowerPatches - if build.include? 'completion' - p << 'http://luajit.org/patches/lua-5.1.4-advanced_readline.patch' - end # sigaction provided by posix signalling power patch from # http://lua-users.org/wiki/LuaPowerPatches - if build.include? 'sigaction' + unless build.without? 'sigaction' p << 'http://lua-users.org/files/wiki_insecure/power_patches/5.1/sig_catch.patch' end + # completion provided by advanced readline power patch from + # http://lua-users.org/wiki/LuaPowerPatches + if build.with? 'completion' + p << 'http://luajit.org/patches/lua-5.1.4-advanced_readline.patch' + end p end |
