forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchruby-fish.rb
25 lines (21 loc) · 924 Bytes
/
chruby-fish.rb
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
class ChrubyFish < Formula
desc "Thin wrapper around chruby to make it work with the Fish shell"
homepage "https://github.com/JeanMertz/chruby-fish#readme"
url "https://github.com/JeanMertz/chruby-fish/archive/v0.8.2.tar.gz"
sha256 "e3726d39da219f5339f86302f7b5d7b62ca96570ddfcc3976595f1d62e3b34e1"
head "https://github.com/JeanMertz/chruby-fish.git"
bottle do
cellar :any_skip_relocation
sha256 "ba0ca145d65c92efa34f257219a96d94c4a82800ac5e37b71e3208ed61a82293" => :mojave
sha256 "1ebd01df8a1edd51c2b73568c1db57b38a672b530fd0a55d063595370d0c301d" => :high_sierra
sha256 "1ebd01df8a1edd51c2b73568c1db57b38a672b530fd0a55d063595370d0c301d" => :sierra
end
depends_on "chruby"
depends_on "fish"
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
assert_match /chruby-fish/, shell_output("fish -c '. #{share}/chruby/chruby.fish; chruby --version'")
end
end