aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorYacin Nadji2011-08-19 13:01:50 -0400
committerAdam Vandenberg2011-08-24 12:09:36 -0700
commit64e280c53f25e1995dbd0831883a68bb5f19c60d (patch)
tree70e2484a01f994df2691c610de6c6ccd3b13120d /Library
parent8756f517802fb3b5903106d24e02b72a7f84cdcb (diff)
downloadhomebrew-64e280c53f25e1995dbd0831883a68bb5f19c60d.tar.bz2
urxvt: add --disable-iso14755
There's an annoying hardcoded key combination (Ctrl+Shift) that starts ISO 14755 mode for i18n support. Given the ubiquity of UTF-8, this mode is largely useless and can only be disabled with a command-line option. A simple search on google shows how many people find this annoying: http://www.google.com/search?q=disable+iso14755&oq=disable+iso14755 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rxvt-unicode.rb23
1 files changed, 15 insertions, 8 deletions
diff --git a/Library/Formula/rxvt-unicode.rb b/Library/Formula/rxvt-unicode.rb
index 4011fcd54..d812d6643 100644
--- a/Library/Formula/rxvt-unicode.rb
+++ b/Library/Formula/rxvt-unicode.rb
@@ -14,16 +14,23 @@ class RxvtUnicode < Formula
DATA
end
+ def options
+ [["--disable-iso14755", "Disable ISO 14775 Shift+Ctrl hotkey"]]
+ end
+
def install
- system "./configure", "--prefix=#{prefix}",
- "--mandir=#{man}",
- "--disable-afterimage",
- "--enable-perl",
- "--enable-256-color",
- "--with-term=rxvt-unicode-256color",
- "--with-terminfo=/usr/share/terminfo",
- "--enable-smart-resize"
+ args = ["--prefix=#{prefix}",
+ "--mandir=#{man}",
+ "--disable-afterimage",
+ "--enable-perl",
+ "--enable-256-color",
+ "--with-term=rxvt-unicode-256color",
+ "--with-terminfo=/usr/share/terminfo",
+ "--enable-smart-resize"]
+
+ args << "--disable-iso14755" if ARGV.include? "--disable-iso14755"
+ system "./configure", *args
system "make"
# `make` won't work unless we rename this because of HFS's default case-insensitivity
system "mv INSTALL README.install"