2011-03-10 05:11:03 +00:00
|
|
|
class Fish < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "User-friendly command-line shell for UNIX-like operating systems"
|
2014-09-26 16:08:57 +00:00
|
|
|
homepage "http://fishshell.com"
|
2015-02-25 06:13:29 +00:00
|
|
|
url "http://fishshell.com/files/2.1.2/fish-2.1.2.tar.gz"
|
|
|
|
sha1 "f7f8d8d26721833be3458b8113c74b747296ec0b"
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2014-09-26 21:23:56 +00:00
|
|
|
bottle do
|
2015-02-25 14:11:09 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "7560818f385831e3d18be1458b1c5e52216f121c" => :yosemite
|
|
|
|
sha1 "a158ae57a437e5f8b2fdff88177be13fa6f35502" => :mavericks
|
|
|
|
sha1 "8d0aa59ebb4cf446e0f0fdf0f91738ffee7edbae" => :mountain_lion
|
2014-09-26 21:23:56 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:53 +00:00
|
|
|
head do
|
2014-10-27 22:20:46 +00:00
|
|
|
url "https://github.com/fish-shell/fish-shell.git", :shallow => false
|
2011-07-20 20:03:06 +00:00
|
|
|
|
2015-02-25 06:13:29 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
# Indeed, the head build always builds documentation
|
|
|
|
depends_on "doxygen" => :build
|
|
|
|
end
|
2015-02-21 00:13:22 +00:00
|
|
|
|
2014-09-26 16:08:57 +00:00
|
|
|
skip_clean "share/doc"
|
2009-09-02 19:27:58 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-25 06:13:29 +00:00
|
|
|
system "autoconf" if build.head?
|
2014-09-15 15:01:42 +00:00
|
|
|
# In Homebrew's 'superenv' sed's path will be incompatible, so
|
|
|
|
# the correct path is passed into configure here.
|
|
|
|
system "./configure", "--prefix=#{prefix}", "SED=/usr/bin/sed"
|
2013-10-28 09:15:53 +00:00
|
|
|
system "make", "install"
|
2009-09-02 19:27:58 +00:00
|
|
|
end
|
|
|
|
|
2014-09-26 16:08:57 +00:00
|
|
|
def post_install
|
|
|
|
system "pkill fishd || true"
|
|
|
|
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
|