homebrew-core/Formula/carina.rb

36 lines
1 KiB
Ruby
Raw Normal View History

class Carina < Formula
desc "Work with Swarm clusters on Carina"
homepage "https://github.com/getcarina/carina"
url "https://github.com/getcarina/carina.git",
:tag => "v1.5.0",
:revision => "2d7f5c0afe28a3e9e794c99ce5024be283979e71"
head "https://github.com/getcarina/carina.git"
2015-10-27 23:23:46 +00:00
bottle do
cellar :any_skip_relocation
2016-09-21 07:43:19 +00:00
rebuild 1
sha256 "0ae150b4c1e75a87c5e8c245c3563dd3c9e2862019e8cee45e19282cdcfd43ec" => :sierra
sha256 "f7f1e834d7fd4e45c478132dacb1727690b7a85e13a83c41eb85dc5983f3374c" => :el_capitan
sha256 "332a4d4c2790de14eef2973b82f5576681b04d5f90731f9ad3a1897d8f20a2a2" => :yosemite
2015-10-27 23:23:46 +00:00
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
carinapath = buildpath/"src/github.com/getcarina/carina"
carinapath.install Dir["{*,.git}"]
cd carinapath do
system "make", "get-deps"
system "make", "carina", "VERSION=#{version}"
bin.install "carina"
end
end
test do
system "#{bin}/carina", "--version"
end
end