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-07-12 15:09:55 +00:00
|
|
|
url "http://fishshell.com/files/2.2.0/fish-2.2.0.tar.gz"
|
|
|
|
sha256 "a76339fd14ce2ec229283c53e805faac48c3e99d9e3ede9d82c0554acfc7b77a"
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2014-09-26 21:23:56 +00:00
|
|
|
bottle do
|
2015-07-13 02:21:45 +00:00
|
|
|
sha256 "da78a022f31317da5d6be21e6090a6c3424565ee7296b0d8ddd6adae2d6737ec" => :yosemite
|
|
|
|
sha256 "ecb9981625135e46ef4b89fbe08014f7fa1ba9754ca8bcd83afd43996ab7a90d" => :mavericks
|
|
|
|
sha256 "1a87c0e5f9dcecefd1f7e68975ed49308d4ab6a81f70e81b3aecae1b827ea261" => :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
|
|
|
|
depends_on "doxygen" => :build
|
|
|
|
end
|
2015-02-21 00:13:22 +00:00
|
|
|
|
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
|
|
|
|
|
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.
|
2015-07-12 15:09:55 +00:00
|
|
|
|
|
|
|
If you are upgrading from an older version of fish, you should now run:
|
|
|
|
killall fishd
|
|
|
|
to terminate the outdated fish daemon.
|
2011-07-20 20:03:06 +00:00
|
|
|
EOS
|
2009-09-02 19:27:58 +00:00
|
|
|
end
|
2015-07-12 15:09:55 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/fish", "-c", "echo"
|
|
|
|
end
|
2009-09-02 19:27:58 +00:00
|
|
|
end
|