2015-03-29 10:45:58 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class DockerMachine < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Create Docker hosts locally and on cloud providers"
|
2015-03-29 10:45:58 +00:00
|
|
|
homepage "https://docs.docker.com/machine"
|
2016-01-13 09:43:25 +00:00
|
|
|
url "https://github.com/docker/machine.git",
|
2016-02-05 06:01:40 +00:00
|
|
|
:tag => "v0.6.0",
|
|
|
|
:revision => "e27fb87286cb8e7454183ce46a6e1e84b31965e9"
|
2016-01-17 15:03:30 +00:00
|
|
|
|
2015-04-17 04:33:05 +00:00
|
|
|
head "https://github.com/docker/machine.git"
|
2015-03-29 10:45:58 +00:00
|
|
|
|
2015-03-29 17:10:36 +00:00
|
|
|
bottle do
|
2015-09-21 13:04:04 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-02-05 17:18:18 +00:00
|
|
|
sha256 "d8f5419d5b9fdf3632e546190755d63df852fa89125b8bb68d932c3c30650286" => :el_capitan
|
|
|
|
sha256 "b5b2a08a5295290799e7d352cb177659a64823ccea5ddc3246c04ece2c16e8d1" => :yosemite
|
|
|
|
sha256 "ef3a096090e2abf7cae56f52b9d4f5aed14cc79ae534d4fd21ff5b11be159cd5" => :mavericks
|
2015-03-29 17:10:36 +00:00
|
|
|
end
|
|
|
|
|
2015-03-29 10:45:58 +00:00
|
|
|
depends_on "go" => :build
|
2015-10-27 21:25:30 +00:00
|
|
|
depends_on "automake" => :build
|
2015-06-22 16:28:51 +00:00
|
|
|
|
2015-03-29 10:45:58 +00:00
|
|
|
def install
|
2015-12-20 16:50:55 +00:00
|
|
|
ENV["GOBIN"] = bin
|
2015-03-29 10:45:58 +00:00
|
|
|
ENV["GOPATH"] = buildpath
|
2015-12-20 16:50:55 +00:00
|
|
|
ENV["GOHOME"] = buildpath
|
|
|
|
|
|
|
|
path = buildpath/"src/github.com/docker/machine"
|
|
|
|
path.install Dir["*"]
|
|
|
|
|
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
2015-03-29 10:45:58 +00:00
|
|
|
|
2015-12-20 16:50:55 +00:00
|
|
|
cd path do
|
|
|
|
system "make", "build"
|
|
|
|
bin.install Dir["bin/*"]
|
2015-12-22 16:12:05 +00:00
|
|
|
bash_completion.install Dir["contrib/completion/bash/*.bash"]
|
2015-12-20 16:50:55 +00:00
|
|
|
end
|
2015-03-29 10:45:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-02-05 06:01:40 +00:00
|
|
|
assert_match /#{version}/, shell_output(bin/"docker-machine --version")
|
2015-03-29 10:45:58 +00:00
|
|
|
end
|
|
|
|
end
|