2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fish < Formula
|
2011-07-29 16:08:48 +00:00
|
|
|
homepage 'http://fishshell.com'
|
2012-07-07 18:08:22 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/fish/fish/1.23.1/fish-1.23.1.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3a6a5d0cfff348e5f9b1e7cd771865fd1dcd802e'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2011-07-20 20:03:06 +00:00
|
|
|
head 'git://gitorious.org/fish-shell/fish-shell.git'
|
|
|
|
|
|
|
|
# Indeed, the head build always builds documentation
|
2012-08-28 04:42:31 +00:00
|
|
|
depends_on 'doxygen' => :build if build.head?
|
|
|
|
depends_on :autoconf if build.head?
|
2009-09-18 18:16:39 +00:00
|
|
|
depends_on 'readline'
|
2012-10-21 20:06:08 +00:00
|
|
|
|
2009-12-04 10:47:47 +00:00
|
|
|
skip_clean 'share/doc'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2012-06-06 16:10:22 +00:00
|
|
|
conflicts_with "fishfish"
|
|
|
|
|
2011-02-24 19:50:11 +00:00
|
|
|
def patches
|
2011-07-20 20:03:06 +00:00
|
|
|
p = []
|
|
|
|
|
2012-08-28 04:42:31 +00:00
|
|
|
unless build.head?
|
2011-07-20 20:03:06 +00:00
|
|
|
# Reduces the timeout in select_try() from 5s to 10ms.
|
|
|
|
# The old timeout would cause fish to frequently freeze for a 5
|
|
|
|
# second period.
|
|
|
|
p << "http://gitorious.org/fish-shell/fish-shell/commit/6b8e7b16f6d4e11e168e3ce2effe2d8f0a53b184.patch?format=diff"
|
|
|
|
end
|
2011-02-24 19:50:11 +00:00
|
|
|
end
|
|
|
|
|
2009-09-02 19:27:58 +00:00
|
|
|
def install
|
2012-08-28 04:42:31 +00:00
|
|
|
system "autoconf" if build.head?
|
2009-09-02 19:27:58 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--without-xsel"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2011-07-20 20:03:06 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You will need to add:
|
|
|
|
#{HOMEBREW_PREFIX}/bin/fish
|
|
|
|
to /etc/shells. Run:
|
|
|
|
chsh -s #{HOMEBREW_PREFIX}/bin/fish
|
|
|
|
to make fish your default shell.
|
|
|
|
EOS
|
2009-09-02 19:27:58 +00:00
|
|
|
end
|
|
|
|
end
|