blob: d1247a4d30951a62e48a17b75224ad74598ef34c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
class Fish < Formula
homepage "http://fishshell.com"
url "http://fishshell.com/files/2.1.2/fish-2.1.2.tar.gz"
sha1 "f7f8d8d26721833be3458b8113c74b747296ec0b"
bottle do
sha1 "4fadd805fc166fd1692e7159339ded169577d195" => :yosemite
sha1 "1feab6ebb28ba6acf7290a5054a04d3d81f3ef1f" => :mavericks
sha1 "6e3d623a17b6b0b566a8c466574ff32cfffaa3ea" => :mountain_lion
end
head do
url "https://github.com/fish-shell/fish-shell.git", :shallow => false
depends_on "autoconf" => :build
# 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
def post_install
system "pkill fishd || true"
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
|