aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/boot2docker.rb
diff options
context:
space:
mode:
authorMarkus Hubig2014-06-19 12:38:23 +0200
committerMike McQuaid2014-06-19 14:58:54 +0100
commit8ff94a6ee44291a16311ce0ceadef2b650d5d6c8 (patch)
tree49ad9f2823e735576df806952396e5bd31bb822c /Library/Formula/boot2docker.rb
parent3dcf8b5d50e3d893941c0b7cd35a0098081c50cb (diff)
downloadhomebrew-8ff94a6ee44291a16311ce0ceadef2b650d5d6c8.tar.bz2
boot2docker 1.0.0
Updates the boot2docker formula to version 1.0.0. This is the new, Go based, boot2docker management utility. It's the official successor of the old shell based version!
Diffstat (limited to 'Library/Formula/boot2docker.rb')
-rw-r--r--Library/Formula/boot2docker.rb27
1 files changed, 22 insertions, 5 deletions
diff --git a/Library/Formula/boot2docker.rb b/Library/Formula/boot2docker.rb
index af06f781b..e6c4cc0f7 100644
--- a/Library/Formula/boot2docker.rb
+++ b/Library/Formula/boot2docker.rb
@@ -1,14 +1,31 @@
require "formula"
class Boot2docker < Formula
- homepage "https://github.com/boot2docker/boot2docker"
- head "https://github.com/boot2docker/boot2docker.git"
- url 'https://github.com/boot2docker/boot2docker/archive/v0.9.1.tar.gz'
- sha1 '543cf1a2d1e29e0cbd34874da4ae966fcbc8d1de'
+ homepage "https://github.com/boot2docker/boot2docker-cli"
+ url "https://github.com/boot2docker/boot2docker-cli.git", :tag => "v1.0.0"
+ head "https://github.com/boot2docker/boot2docker-cli.git", :branch => "master"
+
+ bottle do
+ end
depends_on "docker" => :recommended
+ depends_on "go" => :build
def install
- bin.install "boot2docker"
+ (buildpath + "src/github.com/boot2docker/boot2docker-cli").install Dir[buildpath/"*"]
+
+ cd "src/github.com/boot2docker/boot2docker-cli" do
+ ENV["GOPATH"] = buildpath
+ system "go", "get", "-d"
+
+ ENV["GIT_DIR"] = cached_download/".git"
+ system "make", "goinstall"
+ end
+
+ bin.install "bin/boot2docker-cli" => "boot2docker"
+ end
+
+ test do
+ system "#{bin}/boot2docker", "version"
end
end