Skip to content

Commit

Permalink
docker: update packaging based on upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Feb 10, 2014
1 parent 05a1a9a commit 0558b76
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Formula/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ class Docker < Formula
sha1 "3f054cc6e3f55cf3a14e466d19dde0adc2889dcf" => :lion
end

def patches
"https://github.com/dotcloud/docker/commit/6174ba.patch"
end

depends_on "go" => :build

def install
ENV["DOCKER_GITCOMMIT"] = downloader.cached_location.cd do
`git rev-parse HEAD`
end
ENV["GOPATH"] = "#{buildpath}/vendor"
(buildpath/"vendor/src/github.com/dotcloud").mkpath
ln_s buildpath, "vendor/src/github.com/dotcloud/docker"
ENV["AUTO_GOPATH"] = "1"
inreplace "hack/make/dynbinary", "sha1sum", "shasum"

system "hack/make.sh", "dynbinary"
bin.install "bundles/0.8.0/dynbinary/docker-0.8.0" => "docker"
bin.install "bundles/0.8.0/dynbinary/dockerinit-0.8.0" => "dockerinit"
end

test do
Expand Down

0 comments on commit 0558b76

Please sign in to comment.