2014-02-07 16:09:50 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Docker < Formula
|
|
|
|
homepage "http://docker.io"
|
|
|
|
url "https://github.com/dotcloud/docker.git", :tag => "v0.8.0"
|
|
|
|
sha1 "1e9362dab2ac2ecb4a1f193a7e72d060000438c3"
|
|
|
|
|
2014-02-09 14:32:00 +00:00
|
|
|
bottle do
|
2014-02-10 19:07:05 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "d2cdd9ed152a43cf1008a1025a9fefa5b9cb6ed3" => :mavericks
|
|
|
|
sha1 "809bc0bbceb5d8d690f8ac6230ebe2d4ffc5aa9c" => :mountain_lion
|
|
|
|
sha1 "cbef97454f2b063b0345d75c6642d09c9fdb2949" => :lion
|
2014-02-09 14:32:00 +00:00
|
|
|
end
|
|
|
|
|
2014-02-10 18:56:33 +00:00
|
|
|
def patches
|
|
|
|
"https://github.com/dotcloud/docker/commit/6174ba.patch"
|
|
|
|
end
|
|
|
|
|
2014-02-07 16:09:50 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["DOCKER_GITCOMMIT"] = downloader.cached_location.cd do
|
|
|
|
`git rev-parse HEAD`
|
|
|
|
end
|
2014-02-10 18:56:33 +00:00
|
|
|
ENV["AUTO_GOPATH"] = "1"
|
2014-02-07 16:09:50 +00:00
|
|
|
inreplace "hack/make/dynbinary", "sha1sum", "shasum"
|
|
|
|
|
|
|
|
system "hack/make.sh", "dynbinary"
|
|
|
|
bin.install "bundles/0.8.0/dynbinary/docker-0.8.0" => "docker"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/docker", "--version"
|
|
|
|
end
|
|
|
|
end
|