2014-10-14 10:06:57 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Gauge < Formula
|
2015-04-22 11:54:57 +00:00
|
|
|
homepage "http://getgauge.io"
|
2015-04-22 12:49:50 +00:00
|
|
|
url "https://github.com/getgauge/gauge/archive/v0.1.2.tar.gz"
|
|
|
|
sha1 "725183ae8086f4a9129120ed569d3404d7c250b0"
|
2014-10-14 10:06:57 +00:00
|
|
|
|
2014-12-21 20:18:47 +00:00
|
|
|
bottle do
|
2015-02-20 15:36:55 +00:00
|
|
|
cellar :any
|
2015-04-22 13:03:34 +00:00
|
|
|
sha256 "60bc7ec7588b91c368003a7d07fc8d3ffff1fd843aa987ef1b807bca0809ab20" => :yosemite
|
|
|
|
sha256 "c53964d8742291c8c20f024515b39820f898a504c7c9edb03c6e06bf14e2aa64" => :mavericks
|
|
|
|
sha256 "04bd1460dd73ac59487917602a9661f11aac03a44601de7fdd29747b7c42e50d" => :mountain_lion
|
2014-12-21 20:18:47 +00:00
|
|
|
end
|
|
|
|
|
2014-10-14 10:06:57 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
2015-02-13 18:35:47 +00:00
|
|
|
go_resource "github.com/golang/protobuf" do
|
|
|
|
url "https://github.com/golang/protobuf.git",
|
|
|
|
:revision => "7f07925444bb51fa4cf9dfe6f7661876f8852275"
|
2014-10-14 10:06:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/getgauge/common" do
|
|
|
|
url "https://github.com/getgauge/common.git",
|
2015-04-02 06:20:32 +00:00
|
|
|
:revision => "f81990f732c85813af305a8f0c862e3c21138f37"
|
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
|
|
|
|
|
|
|
|
go_resource "github.com/wsxiaoys/terminal" do
|
|
|
|
url "https://github.com/wsxiaoys/terminal.git",
|
|
|
|
:revision => "9dcaf1d63119a8ac00eef82270eaef08b6aa2328"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
gaugePath = buildpath/"src/github.com/getgauge"
|
|
|
|
mkdir_p gaugePath
|
|
|
|
ln_s buildpath, gaugePath/"gauge"
|
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
|
|
|
|
|
|
cd gaugePath/"gauge" do
|
|
|
|
system "go", "run", "build/make.go"
|
|
|
|
system "go", "run", "build/make.go", "--install", "--prefix", prefix
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "gauge", "--init", "java"
|
|
|
|
end
|
|
|
|
end
|