homebrew-core/Formula/docker@1.71.rb
2017-03-12 20:05:33 +00:00

30 lines
796 B
Ruby

class DockerAT171 < Formula
desc "The Docker framework for containers"
homepage "https://www.docker.com/"
url "https://github.com/docker/docker.git",
:tag => "v1.7.1",
:revision => "786b29d4db80a6175e72b47a794ee044918ba734"
keg_only :versioned_formula
option "without-completions", "Disable bash/zsh completions"
depends_on "go" => :build
def install
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