deisctl: use godep formula
This commit is contained in:
parent
706f0ad97e
commit
c00705b0f0
1 changed files with 1 additions and 10 deletions
|
@ -14,10 +14,7 @@ class Deisctl < Formula
|
|||
end
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
go_resource "github.com/tools/godep" do
|
||||
url "https://github.com/tools/godep.git", :revision => "66fa30a455532b64a7f70f8716a274c833bee3c6"
|
||||
end
|
||||
depends_on "godep" => :build
|
||||
|
||||
go_resource "github.com/docopt/docopt-go" do
|
||||
url "https://github.com/docopt/docopt-go.git", :revision => "854c423c810880e30b9fecdabb12d54f4a92f9bb"
|
||||
|
@ -37,17 +34,11 @@ class Deisctl < Formula
|
|||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
ENV.prepend_create_path "PATH", buildpath/"bin"
|
||||
|
||||
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 "src/github.com/tools/godep" do
|
||||
system "go", "install"
|
||||
end
|
||||
|
||||
cd "deisctl" do
|
||||
system "godep", "go", "build", "-a", "-ldflags", "-s", "-o", "dist/deisctl"
|
||||
bin.install "dist/deisctl"
|
||||
|
|
Loading…
Reference in a new issue