1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
class Boot2docker < Formula
homepage "https://github.com/boot2docker/boot2docker-cli"
# Boot2docker and docker are generally updated at the same time.
# Please update the version of docker too
url "https://github.com/boot2docker/boot2docker-cli.git", :tag => "v1.5.0"
head "https://github.com/boot2docker/boot2docker-cli.git"
bottle do
sha1 "9edfe7c2b3e6af2ab1fae03db849620a5eede333" => :yosemite
sha1 "6fb28f39d6885f3fdcf71fde8637ec0e37c97084" => :mavericks
sha1 "135046284eeae147622da8961508e18dd3578ae5" => :mountain_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"
system "make", "goinstall"
end
bin.install "bin/boot2docker-cli" => "boot2docker"
end
def plist; <<-EOS.undent