From 0741121496288b9e40b51928124765f993a2e61c Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sat, 22 Jun 2013 13:29:29 +0700 Subject: [PATCH] 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 Homebrew/homebrew#20679. Signed-off-by: Adam Vandenberg --- Formula/lua.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Formula/lua.rb b/Formula/lua.rb index 833fc5d750..970dafe41b 100644 --- a/Formula/lua.rb +++ b/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