Last active
August 29, 2015 13:59
-
-
Save JeanMertz/10987060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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