aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGary V. Vaughan2013-06-21 17:13:50 +0700
committerAdam Vandenberg2013-06-21 21:18:29 -0700
commit201f9090fcc97e2d165789e0bc2ac27103288140 (patch)
treeab91a5a0f211ade62c4f81ce4a8fb00d03f8bbe6 /Library
parent2f3011076ca005486af5566235ad499419403f06 (diff)
downloadhomebrew-201f9090fcc97e2d165789e0bc2ac27103288140.tar.bz2
lua: fix ^C^C signal bug
Add sigaction powerpatch option. Closes #20657. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/lua.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb
index 805421dfe..833fc5d75 100644
--- a/Library/Formula/lua.rb
+++ b/Library/Formula/lua.rb
@@ -14,6 +14,7 @@ class Lua < Formula
option :universal
option 'completion', 'Enables advanced readline support'
+ option 'sigaction', 'Signal handling improvements for interpreter'
# 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
@@ -24,6 +25,11 @@ class Lua < Formula
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'
+ p << 'http://lua-users.org/files/wiki_insecure/power_patches/5.1/sig_catch.patch'
+ end
p
end