2014-10-14 10:06:57 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Gauge < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Test automation tool that supports executable documentation"
|
|
|
|
homepage "http://getgauge.io"
|
2016-04-01 10:29:36 +00:00
|
|
|
url "https://github.com/getgauge/gauge/archive/v0.4.0.tar.gz"
|
|
|
|
sha256 "510dddbf70eb041aee460c6fc93e71542d06c45bf246f7d689ae44a445f57bbb"
|
2016-01-21 13:45:11 +00:00
|
|
|
head "https://github.com/getgauge/gauge.git"
|
2015-12-09 10:44:05 +00:00
|
|
|
|
2014-12-21 20:18:47 +00:00
|
|
|
bottle do
|
2015-09-18 13:01:28 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-02-11 07:35:36 +00:00
|
|
|
sha256 "a49f272891725f85573f70c87ce11dedd2bbe9b868e1c27c9ae9213f9074cbfc" => :el_capitan
|
|
|
|
sha256 "35ad85d7b6aeec27adad5b3aa5ea745c9bfd597c912513089a5665fee926e5e7" => :yosemite
|
|
|
|
sha256 "35d4318b170ddf1659101a525d5b0e91ac04510584432be7f5d3dd20a18188fa" => :mavericks
|
2014-12-21 20:18:47 +00:00
|
|
|
end
|
|
|
|
|
2016-01-21 13:45:11 +00:00
|
|
|
depends_on "go" => :build
|
2015-12-09 10:44:05 +00:00
|
|
|
|
2016-01-21 13:45:11 +00:00
|
|
|
go_resource "github.com/getgauge/common" do
|
|
|
|
url "https://github.com/getgauge/common.git",
|
2016-04-01 10:29:36 +00:00
|
|
|
:revision => "702bc5040f898e4782ea5e61e85f034845474570"
|
2015-12-09 10:44:05 +00:00
|
|
|
end
|
|
|
|
|
2016-01-15 10:29:54 +00:00
|
|
|
go_resource "github.com/daviddengcn/go-colortext" do
|
|
|
|
url "https://github.com/daviddengcn/go-colortext.git",
|
|
|
|
:revision => "3b18c8575a432453d41fdafb340099fff5bba2f7"
|
|
|
|
end
|
|
|
|
|
2015-02-13 18:35:47 +00:00
|
|
|
go_resource "github.com/golang/protobuf" do
|
|
|
|
url "https://github.com/golang/protobuf.git",
|
2016-04-01 10:29:36 +00:00
|
|
|
:revision => "552c7b9542c194800fd493123b3798ef0a832032"
|
2016-01-15 10:29:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/mattn/go-isatty" do
|
|
|
|
url "https://github.com/mattn/go-isatty.git",
|
|
|
|
:revision => "56b76bdf51f7708750eac80fa38b952bb9f32639"
|
2014-10-14 10:06:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/getgauge/mflag" do
|
|
|
|
url "https://github.com/getgauge/mflag.git",
|
|
|
|
:revision => "d64a28a7abc05602c9e6d9c5a1488ee69f9fcb83"
|
|
|
|
end
|
|
|
|
|
2015-02-13 18:35:47 +00:00
|
|
|
go_resource "github.com/op/go-logging" do
|
|
|
|
url "https://github.com/op/go-logging.git",
|
|
|
|
:revision => "fb0230561a6ba1cab17beb95f1faedc16584fdb8"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "golang.org/x/tools" do
|
|
|
|
url "https://go.googlesource.com/tools",
|
|
|
|
:revision => "2ef5a0d23bc4e07573bb094b97e96c9cd9844fca",
|
|
|
|
:using => :git
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "gopkg.in/natefinch/lumberjack.v2" do
|
|
|
|
url "https://gopkg.in/natefinch/lumberjack.v2",
|
|
|
|
:revision => "d28785c2f27cd682d872df46ccd8232843629f54",
|
|
|
|
:using =>:git
|
|
|
|
end
|
|
|
|
|
2014-10-14 10:06:57 +00:00
|
|
|
go_resource "github.com/dmotylev/goproperties" do
|
|
|
|
url "https://github.com/dmotylev/goproperties.git",
|
|
|
|
:revision => "7cbffbaada472bc302cbaca51c1d5ed2682eb509"
|
|
|
|
end
|
|
|
|
|
2016-01-15 10:29:54 +00:00
|
|
|
go_resource "github.com/apoorvam/goterminal" do
|
|
|
|
url "https://github.com/apoorvam/goterminal.git",
|
|
|
|
:revision => "4d296b6c70d14de84a3ddbddb11a2fba3babd5e6"
|
2014-10-14 10:06:57 +00:00
|
|
|
end
|
|
|
|
|
2015-05-08 09:42:42 +00:00
|
|
|
go_resource "gopkg.in/fsnotify.v1" do
|
|
|
|
url "https://gopkg.in/fsnotify.v1",
|
|
|
|
:revision => "96c060f6a6b7e0d6f75fddd10efeaca3e5d1bcb0",
|
|
|
|
:using => :git
|
|
|
|
end
|
|
|
|
|
2016-04-01 10:29:36 +00:00
|
|
|
go_resource "golang.org/x/net/" do
|
|
|
|
url "https://github.com/golang/net.git",
|
|
|
|
:revision => "4599ae7937fce9b670ce32b8ad32bbb7ae726b3e"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "google.golang.org/grpc" do
|
|
|
|
url "https://github.com/grpc/grpc-go.git",
|
|
|
|
:revision => "89f694edb447e224bd0ffff7a03f9161ce486482"
|
|
|
|
end
|
|
|
|
|
2014-10-14 10:06:57 +00:00
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2015-12-09 10:44:05 +00:00
|
|
|
gauge_path = buildpath/"src/github.com/getgauge"
|
|
|
|
mkdir_p gauge_path
|
|
|
|
ln_s buildpath, gauge_path/"gauge"
|
2014-10-14 10:06:57 +00:00
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
|
|
|
2015-12-09 10:44:05 +00:00
|
|
|
cd gauge_path/"gauge" do
|
2014-10-14 10:06:57 +00:00
|
|
|
system "go", "run", "build/make.go"
|
|
|
|
system "go", "run", "build/make.go", "--install", "--prefix", prefix
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2015-10-12 15:10:02 +00:00
|
|
|
system bin/"gauge", "-v"
|
2014-10-14 10:06:57 +00:00
|
|
|
end
|
|
|
|
end
|