diff options
| author | Welton Rodrigo | 2014-02-07 14:09:50 -0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-09 14:34:50 +0000 |
| commit | ce1e5ced9f2eb6fdb738fd065a567441b62e5e8e (patch) | |
| tree | ebbff78bd8df664eeff783318f141590930640b7 /Library | |
| parent | d8076311bc5d1956cd585309401bbf7601294ee6 (diff) | |
| download | homebrew-ce1e5ced9f2eb6fdb738fd065a567441b62e5e8e.tar.bz2 | |
docker 0.8.0 (new formula)
Closes #26488.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/docker.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/docker.rb b/Library/Formula/docker.rb new file mode 100644 index 000000000..b4b56e15b --- /dev/null +++ b/Library/Formula/docker.rb @@ -0,0 +1,27 @@ +require "formula" + +class Docker < Formula + homepage "http://docker.io" + url "https://github.com/dotcloud/docker.git", :tag => "v0.8.0" + sha1 "1e9362dab2ac2ecb4a1f193a7e72d060000438c3" + + depends_on "go" => :build + + def install + ENV["DOCKER_GITCOMMIT"] = downloader.cached_location.cd do + `git rev-parse HEAD` + end + ENV["GOPATH"] = "#{buildpath}/vendor" + (buildpath/"vendor/src/github.com/dotcloud").mkpath + ln_s buildpath, "vendor/src/github.com/dotcloud/docker" + inreplace "hack/make/dynbinary", "sha1sum", "shasum" + + system "hack/make.sh", "dynbinary" + bin.install "bundles/0.8.0/dynbinary/docker-0.8.0" => "docker" + bin.install "bundles/0.8.0/dynbinary/dockerinit-0.8.0" => "dockerinit" + end + + test do + system "#{bin}/docker", "--version" + end +end |
