8aaf7aedbe
Closes Homebrew/homebrew#30787. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
34 lines
986 B
Ruby
34 lines
986 B
Ruby
require "formula"
|
|
|
|
class Boot2docker < Formula
|
|
homepage "https://github.com/boot2docker/boot2docker-cli"
|
|
url "https://github.com/boot2docker/boot2docker-cli.git", :tag => "v1.1.1"
|
|
head "https://github.com/boot2docker/boot2docker-cli.git", :branch => "master"
|
|
|
|
bottle do
|
|
sha1 "e38bc75129f5a122f6d01bae3d41a13f6d814051" => :mavericks
|
|
sha1 "e92a3212b05a847cdffbcd8323936196d5b8c626" => :mountain_lion
|
|
sha1 "aeffb40d92ff6d1aed3c977700929e103b5ad2fb" => :lion
|
|
end
|
|
|
|
depends_on "docker" => :recommended
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
(buildpath + "src/github.com/boot2docker/boot2docker-cli").install Dir[buildpath/"*"]
|
|
|
|
cd "src/github.com/boot2docker/boot2docker-cli" do
|
|
ENV["GOPATH"] = buildpath
|
|
system "go", "get", "-d"
|
|
|
|
ENV["GIT_DIR"] = cached_download/".git"
|
|
system "make", "goinstall"
|
|
end
|
|
|
|
bin.install "bin/boot2docker-cli" => "boot2docker"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/boot2docker", "version"
|
|
end
|
|
end
|