From 759347a224914d093d46123a7ee33f74d10f75b4 Mon Sep 17 00:00:00 2001 From: David Dollar Date: Fri, 22 Feb 2019 12:32:37 -0500 Subject: [PATCH] convox: include packr Closes #37172. Signed-off-by: FX Coudert --- Formula/convox.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Formula/convox.rb b/Formula/convox.rb index d65072e9ae..4c5ef0fd53 100644 --- a/Formula/convox.rb +++ b/Formula/convox.rb @@ -3,6 +3,7 @@ class Convox < Formula homepage "https://convox.com/" url "https://github.com/convox/rack/archive/20190219181019.tar.gz" sha256 "55a96bc9a0c3fa07e717b33b32b8c3bc1eb61bfa31fb656d0763932ec9225fed" + revision 1 bottle do cellar :any_skip_relocation @@ -13,9 +14,21 @@ class Convox < Formula depends_on "go" => :build + resource "packr" do + url "https://github.com/gobuffalo/packr/archive/v2.0.1.tar.gz" + sha256 "cc0488e99faeda4cf56631666175335e1cce021746972ce84b8a3083aa88622f" + end + def install ENV["GOPATH"] = buildpath + (buildpath/"src/github.com/convox/rack").install Dir["*"] + + resource("packr").stage { system "go", "install", "./packr" } + cd buildpath/"src/github.com/convox/rack" do + system buildpath/"bin/packr" + end + system "go", "build", "-ldflags=-X main.version=#{version}", "-o", bin/"convox", "-v", "github.com/convox/rack/cmd/convox" prefix.install_metafiles