docker@1.71: import from homebrew/versions.

This commit is contained in:
Mike McQuaid 2017-03-10 18:50:23 +00:00
parent 87ba2f38f1
commit c9e51601ba

30
Formula/docker@1.71.rb Normal file
View file

@ -0,0 +1,30 @@
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