82 lines
2.6 KiB
Ruby
82 lines
2.6 KiB
Ruby
require "language/go"
|
|
|
|
class Gauge < Formula
|
|
desc "Test automation tool that supports executable documentation"
|
|
homepage "http://getgauge.io"
|
|
url "https://github.com/getgauge/gauge/archive/v0.1.5.tar.gz"
|
|
sha256 "0379ccca32bdba663120e7204f5a403a9f96fdd7d3c140a99e3c4010db8ce323"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "60e7613befdf759c84a0546505b68d4bd0c9daa4db10879bb78c96502389c869" => :yosemite
|
|
sha256 "9f2615f4893a0b7ecfd8350d3160e4144d166ada15ae31996c705a77b4f74f38" => :mavericks
|
|
sha256 "2ebb0c77e3d0c75d7ce5e8f7e8c33ef8d52a7448ec374dd8c083a490a6c59328" => :mountain_lion
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
go_resource "github.com/golang/protobuf" do
|
|
url "https://github.com/golang/protobuf.git",
|
|
:revision => "7f07925444bb51fa4cf9dfe6f7661876f8852275"
|
|
end
|
|
|
|
go_resource "github.com/getgauge/common" do
|
|
url "https://github.com/getgauge/common.git",
|
|
:revision => "16d1f84d7248590955440a4027cb062c4289a565"
|
|
end
|
|
|
|
go_resource "github.com/getgauge/mflag" do
|
|
url "https://github.com/getgauge/mflag.git",
|
|
:revision => "d64a28a7abc05602c9e6d9c5a1488ee69f9fcb83"
|
|
end
|
|
|
|
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
|
|
|
|
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
|
|
|
|
go_resource "gopkg.in/fsnotify.v1" do
|
|
url "https://gopkg.in/fsnotify.v1",
|
|
:revision => "96c060f6a6b7e0d6f75fddd10efeaca3e5d1bcb0",
|
|
:using => :git
|
|
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
|