class Docker < Formula desc "Pack, ship and run any application as a lightweight container" homepage "https://www.docker.com/" url "https://github.com/docker/docker.git", :tag => "v1.10.2", :revision => "c3959b140f33c115c50710d2944dbf7e211bacd0" head "https://github.com/docker/docker.git" bottle do cellar :any_skip_relocation sha256 "2f1b2fbc2639981f2057c27341b4e9675e078d27501817039b0e16fb063fc91e" => :el_capitan sha256 "c2ef1f6df5d0847eb86dcf67d0247da6befd22f50b4e2f7516c94bb940f54707" => :yosemite sha256 "0da0a3ffdd26ebe62843fee986048253024e60d2122b325dc50242cb638a2836" => :mavericks end option "with-experimental", "Enable experimental features" option "without-completions", "Disable bash/zsh completions" depends_on "go" => :build def install ENV["AUTO_GOPATH"] = "1" ENV["DOCKER_CLIENTONLY"] = "1" ENV["DOCKER_EXPERIMENTAL"] = "1" if build.with? "experimental" system "hack/make.sh", "dynbinary" build_version = build.head? ? File.read("VERSION").chomp : version bin.install "bundles/#{build_version}/dynbinary/docker-#{build_version}" => "docker" if build.with? "completions" bash_completion.install "contrib/completion/bash/docker" fish_completion.install "contrib/completion/fish/docker.fish" zsh_completion.install "contrib/completion/zsh/_docker" end end test do system "#{bin}/docker", "--version" end end