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-05-09 16:09:45 +00:00
|
|
|
:tag => "v1.4.0",
|
|
|
|
:revision => "f63790db44677584dc2639f42c7527626039f490"
|
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-05-09 16:19:02 +00:00
|
|
|
sha256 "f5355dc0fc7e0d647d8ed7a6310d9407f96646c47dde1c78e5530e4501f5a1ce" => :el_capitan
|
|
|
|
sha256 "92e9e6b093d76ef440fb5b258c38c4a590dfbc47fb2536601df077c26b856bd3" => :yosemite
|
|
|
|
sha256 "13bd8c316df9c401f76893ab397c7681489bd81667c2861edde1f17d93d8c378" => :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
|