homebrew-core/Formula/docker.rb

44 lines
1.1 KiB
Ruby
Raw Normal View History

require "formula"
class Docker < Formula
homepage "http://docker.io"
url "https://github.com/dotcloud/docker.git", :tag => "v0.8.0"
sha1 "1e9362dab2ac2ecb4a1f193a7e72d060000438c3"
2014-02-13 20:17:06 +00:00
option "without-completions", "Disable bash/zsh completions"
2014-02-09 14:32:00 +00:00
bottle do
revision 2
sha1 "6656fe911e1db382fbe704dbe9e0e68272f0ee01" => :mavericks
sha1 "d73586890467d00728db185cf0550479e4b94628" => :mountain_lion
sha1 "bd6595664d5384c4e1584864d96d409d475016ce" => :lion
2014-02-09 14:32:00 +00:00
end
def patches
2014-02-13 20:16:44 +00:00
[
"https://github.com/dotcloud/docker/commit/6174ba.patch",
"https://github.com/dotcloud/docker/commit/f794fb.patch",
"https://github.com/dotcloud/docker/commit/32535e.patch",
2014-02-13 20:16:44 +00:00
]
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"
2014-02-13 20:17:06 +00:00
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