forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker141.rb
33 lines (26 loc) · 1007 Bytes
/
docker141.rb
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
class Docker141 < Formula
homepage "https://www.docker.com/"
url "https://github.com/docker/docker.git", :tag => "v1.4.1"
bottle do
cellar :any
sha256 "20164f5f8f36a20032530b05cc5fe2eca53da8b9591a351da8e923410751bb89" => :yosemite
sha256 "8fab0f97f72dc1d27db2da12c4ba5893aec100bee0e10ef81f7597f81cac790a" => :mavericks
sha256 "0366d2587450b32d00401b5d6e166693a095d74265223d958cf509a2757761df" => :mountain_lion
end
option "without-completions", "Disable bash/zsh completions"
depends_on "go" => :build
def install
ENV["GIT_DIR"] = cached_download/".git"
ENV["AUTO_GOPATH"] = "1"
ENV["DOCKER_CLIENTONLY"] = "1"
system "hack/make.sh", "dynbinary"
bin.install "bundles/#{version}/dynbinary/docker-#{version}" => "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