2016-01-25 23:26:33 +00:00
|
|
|
class Dlite < Formula
|
|
|
|
desc "Provides a way to use docker on OS X without docker-machine"
|
|
|
|
homepage "https://github.com/nlf/dlite"
|
2016-04-14 05:14:54 +00:00
|
|
|
url "https://github.com/nlf/dlite/archive/1.1.5.tar.gz"
|
|
|
|
sha256 "cfbd99ef79f9657c2927cf5365ab707999a7b51eae759452354aff1a0200de3f"
|
2016-03-21 05:07:53 +00:00
|
|
|
head "https://github.com/nlf/dlite.git"
|
2016-01-25 23:26:33 +00:00
|
|
|
|
2016-03-09 06:22:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-29 02:09:21 +00:00
|
|
|
sha256 "8d7de9236c90172bc846a4a9c5ff1fbe0286c1616572c52e3bab2043476603a6" => :sierra
|
2016-04-14 05:35:11 +00:00
|
|
|
sha256 "cab7bd9704df6b1f162a7d258ba3807a9d00cef93395b9fe4b4837a635969692" => :el_capitan
|
|
|
|
sha256 "d1244ccccc75ab8747a86c01aceeb25fee219617d9d4a2c3a3c6cd0bad45c0ee" => :yosemite
|
2016-03-09 06:22:59 +00:00
|
|
|
end
|
|
|
|
|
2016-01-25 23:26:33 +00:00
|
|
|
# DLite depends on the Hypervisor framework which only works on
|
|
|
|
# OS X versions 10.10 (Yosemite) or newer
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :macos => :yosemite
|
2016-01-25 23:26:33 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
|
|
|
|
path = buildpath/"src/github.com/nlf/dlite"
|
|
|
|
path.install Dir["*"]
|
|
|
|
|
|
|
|
cd path do
|
|
|
|
system "make", "dlite"
|
|
|
|
bin.install "dlite"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
Installing and upgrading dlite with brew does not automatically
|
|
|
|
install or upgrade the dlite daemon and virtual machine.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
output = shell_output(bin/"dlite version")
|
|
|
|
assert_match version.to_s, output
|
|
|
|
end
|
|
|
|
end
|