homebrew-core/Formula/gauge.rb
Kashishm 8894d8970f gauge 0.1.0
Closes Homebrew/homebrew#38709.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-16 21:57:46 +08:00

75 lines
2.3 KiB
Ruby

require "language/go"
class Gauge < Formula
homepage "http://getgauge.io"
url "https://github.com/getgauge/gauge/archive/v0.1.0.tar.gz"
sha1 "2abd107530d4a4295fe6ccf5699f3188ce1f7a99"
bottle do
cellar :any
sha256 "9f61d4b138d35e7de1521126e3f5f76fddd0adbed8bfb78cbbc0744fd7c0174f" => :yosemite
sha256 "0bb87ecb1f6f61ecd026037c6b3898ddf4b202e094237d6b75a88a3450417f83" => :mavericks
sha256 "7aedc34492d35034285bdad7e474c77d3d6072a1b6f16071180c3422dbaf9909" => :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 => "f81990f732c85813af305a8f0c862e3c21138f37"
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
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