docker: use GIT_DIR and patch.

This commit is contained in:
Mike McQuaid 2014-02-13 20:16:44 +00:00
parent aaf8361822
commit 745d4bf224

View file

@ -15,15 +15,16 @@ class Docker < Formula
end
def patches
"https://github.com/dotcloud/docker/commit/6174ba.patch"
[
"https://github.com/dotcloud/docker/commit/6174ba.patch",
"https://github.com/dotcloud/docker/commit/f794fb.patch",
]
end
depends_on "go" => :build
def install
ENV["DOCKER_GITCOMMIT"] = downloader.cached_location.cd do
`git rev-parse HEAD`
end
ENV["GIT_DIR"] = downloader.cached_location/".git"
ENV["AUTO_GOPATH"] = "1"
inreplace "hack/make/dynbinary", "sha1sum", "shasum"