02fe5cb05d
This formula conflicts with the original fish formula, as they provide the same executable (`fish`). Closes Homebrew/homebrew#13258. Signed-off-by: Misty De Meo <mistydemeo@gmail.com> Updated original commit to migrate custom conflict class to the new conflicts_with DSL, added the conflict to fish, and changed GitHub URLs to https.
36 lines
763 B
Ruby
36 lines
763 B
Ruby
require 'formula'
|
|
|
|
class Fishfish < Formula
|
|
homepage 'http://ridiculousfish.com/shell'
|
|
|
|
url 'https://github.com/fish-shell/fish-shell.git',
|
|
:tag => 'OpenBeta_r2'
|
|
version 'OpenBeta_r2'
|
|
|
|
head 'https://github.com/fish-shell/fish-shell.git',
|
|
:branch => 'master'
|
|
|
|
depends_on :autoconf => :build
|
|
depends_on 'doxygen' => :build
|
|
|
|
conflicts_with "fish"
|
|
|
|
def install
|
|
system "autoconf"
|
|
system "./configure", "--prefix=#{prefix}", "--without-xsel"
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "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
|