forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarina.rb
38 lines (32 loc) · 1.25 KB
/
carina.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
26
27
28
29
30
31
32
33
34
35
36
37
38
class Carina < Formula
desc "Command-line client for Carina"
homepage "https://github.com/getcarina/carina"
url "https://github.com/getcarina/carina.git",
:tag => "v2.1.3",
:revision => "2b3ec267e298e095d7c2f81a2d82dc50a720e81c"
head "https://github.com/getcarina/carina.git"
bottle do
cellar :any_skip_relocation
sha256 "4db2ef26df674487552ac898f0b844407041b7326925a4d60370e57f81bc6bdb" => :mojave
sha256 "33040c78e42a9611b87dda596e8a346c028b2ad84d8a4ba5cf2a12800e693ab8" => :high_sierra
sha256 "ee6c8cdf2eddda983618f7de29bf3bcc7e81d8d9a7085a037d67cd7cdb25377a" => :sierra
sha256 "34086f8b3418d96c3ee5c2f50ad5ffc7ee839fd26b36d0e8911c364a8c82586e" => :el_capitan
sha256 "0706998cd1dc286030e20382ac69a96c744ec558784685f769aa4276966dcd12" => :yosemite
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV.prepend_create_path "PATH", buildpath/"bin"
carinapath = buildpath/"src/github.com/getcarina/carina"
carinapath.install Dir["{*,.git}"]
cd carinapath do
system "make", "get-deps"
system "make", "local", "VERSION=#{version}"
bin.install "carina"
prefix.install_metafiles
end
end
test do
system "#{bin}/carina", "--version"
end
end