blob: 07d77d2907549015fb6f8345e34d91d53dfda5ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
require "formula"
class Docker < Formula
homepage "http://docker.io"
url "https://github.com/dotcloud/docker.git", :tag => "v0.8.0"
sha1 "1e9362dab2ac2ecb4a1f193a7e72d060000438c3"
option "without-completions", "Disable bash/zsh completions"
bottle do
revision 2
sha1 "6656fe911e1db382fbe704dbe9e0e68272f0ee01" => :mavericks
sha1 "d73586890467d00728db185cf0550479e4b94628" => :mountain_lion
sha1 "bd6595664d5384c4e1584864d96d409d475016ce" => :lion
end
def patches
[
"https://github.com/dotcloud/docker/commit/6174ba.patch",
"https://github.com/dotcloud/docker/commit/f794fb.patch",
"https://github.com/dotcloud/docker/commit/32535e.patch",
]
end
depends_on "go" => :build
def install
ENV["GIT_DIR"] = cached_download/".git"
ENV["AUTO_GOPATH"] = "1"
system "hack/make.sh", "dynbinary"
bin.install "bundles/0.8.0/dynbinary/docker-0.8.0" => "docker"
if build.with? "completions"
bash_completion.install "contrib/completion/bash/docker"
zsh_completion.install "contrib/completion/zsh/_docker"
end
end
test do
system "#{bin}/docker", "--version"
end
end
|