2014-02-09 14:41:19 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Boot2docker < Formula
|
2014-06-19 10:38:23 +00:00
|
|
|
homepage "https://github.com/boot2docker/boot2docker-cli"
|
2014-07-25 03:54:20 +00:00
|
|
|
# Boot2docker and docker are generally updated at the same time.
|
|
|
|
# Please update the version of docker too
|
2014-10-16 19:30:37 +00:00
|
|
|
url "https://github.com/boot2docker/boot2docker-cli.git", :tag => "v1.3.0"
|
2014-06-19 10:38:23 +00:00
|
|
|
head "https://github.com/boot2docker/boot2docker-cli.git", :branch => "master"
|
|
|
|
|
|
|
|
bottle do
|
2014-10-16 20:33:49 +00:00
|
|
|
revision 2
|
|
|
|
sha1 "891132f91b6af4cba058c92cecd41287d2e1fc6d" => :mavericks
|
|
|
|
sha1 "ec3342d2c6378aa6725eed021fd6cc801da79d31" => :mountain_lion
|
|
|
|
sha1 "5c651fe2047ea0cd0512722d278631d39b6a19f8" => :lion
|
2014-06-19 10:38:23 +00:00
|
|
|
end
|
2014-02-20 11:01:22 +00:00
|
|
|
|
2014-02-11 17:30:16 +00:00
|
|
|
depends_on "docker" => :recommended
|
2014-06-19 10:38:23 +00:00
|
|
|
depends_on "go" => :build
|
2014-02-09 14:41:19 +00:00
|
|
|
|
|
|
|
def install
|
2014-06-19 10:38:23 +00:00
|
|
|
(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"
|
2014-02-09 14:41:19 +00:00
|
|
|
end
|
|
|
|
end
|