Skip to content

Instantly share code, notes, and snippets.

@JeanMertz
Last active August 29, 2015 13:59
Show Gist options
  • Save JeanMertz/10987060 to your computer and use it in GitHub Desktop.
Save JeanMertz/10987060 to your computer and use it in GitHub Desktop.
require 'formula'
class Fish < Formula
homepage 'http://fishshell.com'
head 'https://github.com/fish-shell/fish-shell.git',
:revision => '3cbace98a76ba35af88f0a9234a7c6ebad10d68c'
depends_on 'autoconf'
depends_on 'doxygen' => :build
skip_clean 'share/doc'
def install
system "autoconf" if build.head?
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/fish", "-c", "echo"
end
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
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment