2014-12-14 03:22:48 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Deisctl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Deis Control Utility"
|
2014-12-14 03:22:48 +00:00
|
|
|
homepage "http://deis.io/"
|
2015-10-16 17:12:14 +00:00
|
|
|
url "https://github.com/deis/deis/archive/v1.11.1.tar.gz"
|
|
|
|
sha256 "0d5434dbcfcbeaf07e071898ee1d2592cde21422c551a6c87e169474123f6d74"
|
2014-12-14 03:22:48 +00:00
|
|
|
|
2015-02-24 09:40:01 +00:00
|
|
|
bottle do
|
2015-09-28 15:49:06 +00:00
|
|
|
cellar :any_skip_relocation
|
2015-11-14 11:12:40 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "e29f688858937820a0ffed6acd8aeb59cf95b8d87fec95611b78154532e93c9f" => :el_capitan
|
|
|
|
sha256 "2c0c088d5c9ec80105c558380cb7ea89fa76a44547c495b0fd3e4197cf6e08e0" => :yosemite
|
|
|
|
sha256 "8308bb22e992270e0ca5a78ac2ec6cc9242508ee96731d249a5397160b3f0062" => :mavericks
|
2015-02-24 09:40:01 +00:00
|
|
|
end
|
|
|
|
|
2014-12-14 03:22:48 +00:00
|
|
|
depends_on "go" => :build
|
2015-11-14 10:25:34 +00:00
|
|
|
depends_on "godep" => :build
|
2014-12-14 03:22:48 +00:00
|
|
|
|
2015-08-16 20:10:59 +00:00
|
|
|
go_resource "github.com/docopt/docopt-go" do
|
|
|
|
url "https://github.com/docopt/docopt-go.git", :revision => "854c423c810880e30b9fecdabb12d54f4a92f9bb"
|
2014-12-14 03:22:48 +00:00
|
|
|
end
|
|
|
|
|
2015-08-16 20:10:59 +00:00
|
|
|
go_resource "github.com/coreos/go-etcd" do
|
|
|
|
url "https://github.com/coreos/go-etcd.git", :revision => "c904d7032a70da6551c43929f199244f6a45f4c1"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/coreos/fleet" do
|
|
|
|
url "https://github.com/coreos/fleet.git", :tag => "v0.9.2", :revision => "e0f7a2316dc6ae610979598c4efe127ac8ff1ae9"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/ugorji/go" do
|
|
|
|
url "https://github.com/ugorji/go.git", :revision => "821cda7e48749cacf7cad2c6ed01e96457ca7e9d"
|
2014-12-14 03:22:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
mkdir_p "#{buildpath}/deisctl/Godeps/_workspace/src/github.com/deis"
|
|
|
|
ln_s buildpath, "#{buildpath}/deisctl/Godeps/_workspace/src/github.com/deis/deis"
|
|
|
|
|
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
|
|
|
|
|
|
cd "deisctl" do
|
|
|
|
system "godep", "go", "build", "-a", "-ldflags", "-s", "-o", "dist/deisctl"
|
|
|
|
bin.install "dist/deisctl"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-08-16 20:10:59 +00:00
|
|
|
system bin/"deisctl", "help"
|
2014-12-14 03:22:48 +00:00
|
|
|
end
|
|
|
|
end
|