aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/docker-machine.rb
diff options
context:
space:
mode:
authorVincent Lesierse2015-03-29 12:45:58 +0200
committerTim D. Smith2015-03-31 01:07:22 -0700
commitf86e3dbcdbc926d7349c1301ed87540760d10e6d (patch)
treed309e0ab0fc46f551106ae04b9da447053a6d515 /Library/Formula/docker-machine.rb
parent786be32b162ac3127fd1fe2a5f1ebfe7a386717c (diff)
downloadhomebrew-f86e3dbcdbc926d7349c1301ed87540760d10e6d.tar.bz2
docker-machine 0.1.0 (new formula)
Closes #38173. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library/Formula/docker-machine.rb')
-rw-r--r--Library/Formula/docker-machine.rb41
1 files changed, 41 insertions, 0 deletions
diff --git a/Library/Formula/docker-machine.rb b/Library/Formula/docker-machine.rb
new file mode 100644
index 000000000..87ebffc8b
--- /dev/null
+++ b/Library/Formula/docker-machine.rb
@@ -0,0 +1,41 @@
+require "language/go"
+
+class DockerMachine < Formula
+ homepage "https://docs.docker.com/machine"
+ url "https://github.com/docker/machine/archive/v0.1.0.tar.gz"
+ sha256 "832f1e60b4171f9590368fa5c51c1ed1adec32367d13250a0554552d0954ff36"
+
+ depends_on "go" => :build
+
+ go_resource "github.com/tools/godep" do
+ url "https://github.com/tools/godep.git", :revision => "58d90f262c13357d3203e67a33c6f7a9382f9223"
+ end
+
+ go_resource "github.com/kr/fs" do
+ url "https://github.com/kr/fs.git", :revision => "2788f0dbd16903de03cb8186e5c7d97b69ad387b"
+ end
+
+ go_resource "golang.org/x/tools" do
+ url "https://github.com/golang/tools.git", :revision => "473fd854f8276c0b22f17fb458aa8f1a0e2cf5f5"
+ end
+
+ go_resource "github.com/docker/machine" do
+ url "https://github.com/docker/machine.git", :revision => "eaff7635fc821d783eb6e996dbdad22dacdd058c"
+ end
+
+ def install
+ ENV["GOPATH"] = buildpath
+ Language::Go.stage_deps resources, buildpath/"src"
+
+ cd "src/github.com/tools/godep" do
+ system "go", "install"
+ end
+
+ system "./bin/godep", "go", "build", "-o", "docker-machine", "."
+ bin.install "docker-machine"
+ end
+
+ test do
+ system bin/"docker-machine", "ls"
+ end
+end