homebrew-core/Formula/convox.rb

27 lines
888 B
Ruby
Raw Normal View History

class Convox < Formula
desc "The convox AWS PaaS CLI tool"
homepage "https://convox.com/"
url "https://github.com/convox/rack/archive/20170306140228.tar.gz"
sha256 "7378d4712590f4de967012791bff6a291a4b2a5472ec88d17d7af5a1581d9af1"
2016-06-20 16:06:31 +00:00
bottle do
cellar :any_skip_relocation
2017-03-07 19:04:42 +00:00
sha256 "e91c7075a2052c78630ea02691cab5bd9a280c6e97b8cd9d77c66be1ad72030e" => :sierra
sha256 "878a76ce32dba3369ac26f6768c7e87a84c803961553f22df713a546f1961690" => :el_capitan
sha256 "f781935986b200de1762963d0a61034712517fcc8bd0bb33ad17465050f4fde3" => :yosemite
2016-06-20 16:06:31 +00:00
end
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/convox/rack").install Dir["*"]
2016-08-19 23:40:21 +00:00
system "go", "build", "-ldflags=-X main.Version=#{version}",
"-o", bin/"convox", "-v", "github.com/convox/rack/cmd/convox"
end
test do
2016-08-19 23:40:21 +00:00
system bin/"convox"
end
end