gor 0.16.0
Closes #12214. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
b4b3064ea7
commit
15bfef388a
1 changed files with 55 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
|||
require "language/go"
|
||||
|
||||
class Gor < Formula
|
||||
desc "Real-time HTTP traffic replay tool written in Go"
|
||||
homepage "https://gortool.com"
|
||||
url "https://github.com/buger/gor.git",
|
||||
:tag => "v0.15.1",
|
||||
:revision => "967c380dc3ca1a96c6cbabd6296b0656a6546016"
|
||||
:tag => "v0.16.0",
|
||||
:revision => "dcc7af4c09d8dcc36e6d0246bf4167390e3eca4f"
|
||||
head "https://github.com/buger/gor.git"
|
||||
|
||||
bottle do
|
||||
|
@ -16,9 +18,60 @@ class Gor < Formula
|
|||
|
||||
depends_on "go" => :build
|
||||
|
||||
go_resource "github.com/Shopify/sarama" do
|
||||
url "https://github.com/Shopify/sarama.git",
|
||||
:revision => "d4ece5d05a86b2b64248f4943f872bea961ec835"
|
||||
end
|
||||
|
||||
go_resource "github.com/davecgh/go-spew" do
|
||||
url "https://github.com/davecgh/go-spew.git",
|
||||
:revision => "346938d642f2ec3594ed81d874461961cd0faa76"
|
||||
end
|
||||
|
||||
go_resource "github.com/eapache/go-resiliency" do
|
||||
url "https://github.com/eapache/go-resiliency.git",
|
||||
:revision => "b86b1ec0dd4209a588dc1285cdd471e73525c0b3"
|
||||
end
|
||||
|
||||
go_resource "github.com/eapache/go-xerial-snappy" do
|
||||
url "https://github.com/eapache/go-xerial-snappy.git",
|
||||
:revision => "bb955e01b9346ac19dc29eb16586c90ded99a98c"
|
||||
end
|
||||
|
||||
go_resource "github.com/eapache/queue" do
|
||||
url "https://github.com/eapache/queue.git",
|
||||
:revision => "44cc805cf13205b55f69e14bcb69867d1ae92f98"
|
||||
end
|
||||
|
||||
go_resource "github.com/golang/snappy" do
|
||||
url "https://github.com/golang/snappy.git",
|
||||
:revision => "553a641470496b2327abcac10b36396bd98e45c9"
|
||||
end
|
||||
|
||||
go_resource "github.com/klauspost/crc32" do
|
||||
url "https://github.com/klauspost/crc32.git",
|
||||
:revision => "1bab8b35b6bb565f92cbc97939610af9369f942a"
|
||||
end
|
||||
|
||||
go_resource "github.com/pierrec/lz4" do
|
||||
url "https://github.com/pierrec/lz4.git",
|
||||
:revision => "f5b77fd73d83122495309c0f459b810f83cc291f"
|
||||
end
|
||||
|
||||
go_resource "github.com/pierrec/xxHash" do
|
||||
url "https://github.com/pierrec/xxHash.git",
|
||||
:revision => "5a004441f897722c627870a981d02b29924215fa"
|
||||
end
|
||||
|
||||
go_resource "github.com/rcrowley/go-metrics" do
|
||||
url "https://github.com/rcrowley/go-metrics.git",
|
||||
:revision => "1f30fe9094a513ce4c700b9a54458bbb0c96996c"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
(buildpath/"src/github.com/buger/gor").install buildpath.children
|
||||
Language::Go.stage_deps resources, buildpath/"src"
|
||||
cd "src/github.com/buger/gor" do
|
||||
system "go", "build", "-o", bin/"gor", "-ldflags", "-X main.VERSION=#{version}"
|
||||
prefix.install_metafiles
|
||||
|
|
Loading…
Reference in a new issue