39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
class Corectl < Formula
|
|
desc "CoreOS over OS X made very simple"
|
|
homepage "https://github.com/TheNewNormal/corectl"
|
|
url "https://github.com/TheNewNormal/corectl/archive/v0.5.6.tar.gz"
|
|
sha256 "90381c03ac240cf0437cd786c082c31bb2c81911f69fa4fcd223f5acd40d320a"
|
|
head "https://github.com/TheNewNormal/corectl.git", :branch => "golang"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "225d99f3eaaea3b7ca6ee4f67639371c9a8ccbc8848d3cb95fdfcfc272c8948c" => :el_capitan
|
|
sha256 "066adb95ece89b9682d74859bea15bf78a209a12d5c5b0787a6bf3b46f6aa236" => :yosemite
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
depends_on "godep" => :build
|
|
depends_on :macos => :yosemite
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
path = buildpath/"src/github.com/TheNewNormal/#{name}"
|
|
path.install Dir["*"]
|
|
|
|
args = []
|
|
args << "VERSION=#{version}" if build.stable?
|
|
|
|
cd path do
|
|
system "make", "corectl", *args
|
|
system "make", "documentation/man"
|
|
bin.install "corectl"
|
|
man1.install Dir["documentation/man/*.1"]
|
|
share.install "cloud-init", "profiles"
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_match(/#{version}/, shell_output("#{bin}/corectl version"))
|
|
end
|
|
end
|