From 11d4eaf80a952a08f576bfa125ea401945c62751 Mon Sep 17 00:00:00 2001 From: commitay Date: Sat, 23 Dec 2017 08:17:03 +1000 Subject: [PATCH] pup: depend on gox at build time Closes #22020. Signed-off-by: ilovezfs --- Formula/pup.rb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Formula/pup.rb b/Formula/pup.rb index 60c598e660..c7bdc8722d 100644 --- a/Formula/pup.rb +++ b/Formula/pup.rb @@ -1,5 +1,3 @@ -require "language/go" - class Pup < Formula desc "Parse HTML at the command-line" homepage "https://github.com/EricChiang/pup" @@ -17,26 +15,13 @@ class Pup < Formula end depends_on "go" => :build - - go_resource "github.com/mitchellh/iochan" do - url "https://github.com/mitchellh/iochan.git", - :revision => "87b45ffd0e9581375c491fef3d32130bb15c5bd7" - end - - go_resource "github.com/mitchellh/gox" do - url "https://github.com/mitchellh/gox.git", - :revision => "6e9ee79eab7bb1b84155379b3f94ff9a87b344e4" - end + depends_on "gox" => :build def install ENV["GOPATH"] = buildpath dir = buildpath/"src/github.com/ericchiang/pup" dir.install buildpath.children - Language::Go.stage_deps resources, buildpath/"src" - ENV.prepend_create_path "PATH", buildpath/"bin" - cd("src/github.com/mitchellh/gox") { system "go", "install" } - cd dir do arch = MacOS.prefer_64_bit? ? "amd64" : "386" system "gox", "-arch", arch, "-os", "darwin", "./..."