docker: use GIT_DIR and patch.
This commit is contained in:
parent
aaf8361822
commit
745d4bf224
1 changed files with 5 additions and 4 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue