aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fish.rb
diff options
context:
space:
mode:
authorBart Vandendriessche2011-02-24 20:50:11 +0100
committerAdam Vandenberg2011-02-27 11:06:08 -0800
commitedbe64ba1e8f386635e1370d7db512b4a7e11c6b (patch)
treef6fa30b77978c17e8c4743cee79179d2524d6506 /Library/Formula/fish.rb
parent1a69019b8e81679432b03574ac1c26139b308658 (diff)
downloadhomebrew-edbe64ba1e8f386635e1370d7db512b4a7e11c6b.tar.bz2
Before installing, apply an upstream patch that fixes the 5 second freezes problem
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/fish.rb')
-rw-r--r--Library/Formula/fish.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/fish.rb b/Library/Formula/fish.rb
index 3419f16f1..902aef175 100644
--- a/Library/Formula/fish.rb
+++ b/Library/Formula/fish.rb
@@ -8,6 +8,13 @@ class Fish <Formula
depends_on 'readline'
skip_clean 'share/doc'
+ def patches
+ # Reduces the timeout in select_try() from 5s to 10ms.
+ # The old timeout would cause fish to frequently freeze for a 5
+ # second period.
+ "http://gitorious.org/fish-shell/fish-shell/commit/6b8e7b16f6d4e11e168e3ce2effe2d8f0a53b184.patch"
+ end
+
def install
system "./configure", "--prefix=#{prefix}", "--without-xsel"
system "make install"