homebrew-core/Formula/rancher-compose.rb
2015-12-16 09:39:29 +01:00

26 lines
1 KiB
Ruby

class RancherCompose < Formula
desc "Docker compose compatible client to deploy to Rancher"
homepage "https://github.com/rancher/rancher-compose"
url "https://github.com/rancher/rancher-compose/archive/v0.6.2.tar.gz"
sha256 "c4df1cb0a669e6825035ca9a26da04b723531656ef1ec3e076c1bbd2bb80fe97"
bottle do
cellar :any_skip_relocation
sha256 "777f575af6c57321ff330778d726f5ee962faffded23c4cdbdb172b52c58a2d6" => :el_capitan
sha256 "21038072075c7fc9c30e139d9cacbb61109a3636b49ca7abf68d76f5ca12aaed" => :yosemite
sha256 "f52a0fd8601804b90ab50cc30243f5a1a73897ab776dd625de0bb9e2c0b043c7" => :mavericks
end
depends_on "go" => :build
def install
ENV["GOPATH"] = "#{buildpath}:#{buildpath}/Godeps/_workspace"
mkdir_p "#{buildpath}/src/github.com/rancher"
ln_s buildpath, "#{buildpath}/src/github.com/rancher/rancher-compose"
system "go", "build", "-ldflags", "-w -X github.com/rancher/rancher-compose/version.VERSION #{version}", "-o", "#{bin}/rancher-compose"
end
test do
system "#{bin}/rancher-compose", "help"
end
end