homebrew-core/Formula/fish.rb
Mark Griffiths e72ab4a98a fish: update for new documentation build process.
Part of an updated documentation build process, the lexicon_filter
script's 'sed' shebang is set during make using 'which'. In Homebrew's
'superenv' this will be incorrect as the superenv stub isn't
shebangable, so it needs to be rewritten.

Closes Homebrew/homebrew#32315.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-09-18 19:07:30 -05:00

38 lines
942 B
Ruby

require 'formula'
class Fish < Formula
homepage 'http://fishshell.com'
url 'http://fishshell.com/files/2.1.0/fish-2.1.0.tar.gz'
sha1 'b1764cba540055cb8e2a96a7ea4c844b04a32522'
head do
url 'https://github.com/fish-shell/fish-shell.git'
depends_on :autoconf
# Indeed, the head build always builds documentation
depends_on 'doxygen' => :build
end
skip_clean 'share/doc'
def install
system "autoconf" if build.head?
# 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"
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