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'
|
2013-10-28 09:15:53 +00:00
|
|
|
url 'http://fishshell.com/files/2.1.0/fish-2.1.0.tar.gz'
|
|
|
|
sha1 'b1764cba540055cb8e2a96a7ea4c844b04a32522'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2013-09-20 15:15:53 +00:00
|
|
|
head do
|
|
|
|
url 'https://github.com/fish-shell/fish-shell.git'
|
|
|
|
|
2013-10-28 09:15:53 +00:00
|
|
|
depends_on :autoconf
|
2013-09-20 15:15:53 +00:00
|
|
|
# Indeed, the head build always builds documentation
|
|
|
|
depends_on 'doxygen' => :build
|
|
|
|
end
|
2011-07-20 20:03:06 +00:00
|
|
|
|
2009-12-04 10:47:47 +00:00
|
|
|
skip_clean 'share/doc'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
|
|
|
def install
|
2013-10-28 09:15:53 +00:00
|
|
|
system "autoconf" if build.head?
|
2013-05-17 07:56:56 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2013-10-28 09:15:53 +00:00
|
|
|
system "make", "install"
|
2009-09-02 19:27:58 +00:00
|
|
|
end
|
|
|
|
|
2013-05-20 01:16:16 +00:00
|
|
|
test do
|
2013-10-28 09:15:53 +00:00
|
|
|
system "#{bin}/fish", "-c", "echo"
|
2013-05-20 01:16:16 +00:00
|
|
|
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
|