2015-10-27 07:05:57 +00:00
|
|
|
class Carina < Formula
|
|
|
|
desc "Work with Swarm clusters on Carina"
|
|
|
|
homepage "https://github.com/getcarina/carina"
|
|
|
|
url "https://github.com/getcarina/carina.git",
|
2016-01-18 20:26:53 +00:00
|
|
|
:tag => "v1.1.1",
|
|
|
|
:revision => "247d3a1bcb9fc1e0c41317ea8d28fc5331d096ec"
|
2015-10-27 07:05:57 +00:00
|
|
|
head "https://github.com/getcarina/carina.git"
|
|
|
|
|
2015-10-27 23:23:46 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-01-19 02:24:54 +00:00
|
|
|
sha256 "234dc9955c280a6c51429e09aa5174c1ebe1c68b3ddbc4bec6fce56fc0bb7631" => :el_capitan
|
|
|
|
sha256 "8061ece663fd56944df7d1af4fc785d7cd5ba814b51abc13c6e8096ee00f153e" => :yosemite
|
|
|
|
sha256 "a7078edd6c286b8109b3b7d6047ae2503374b7dde9c1140d3d19aa815e0cf07b" => :mavericks
|
2015-10-27 23:23:46 +00:00
|
|
|
end
|
|
|
|
|
2015-10-27 07:05:57 +00:00
|
|
|
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
|