From cf67cb13aa2909d240093085de684aaa89cb309e Mon Sep 17 00:00:00 2001 From: prateekbaheti Date: Tue, 14 Oct 2014 15:36:57 +0530 Subject: [PATCH] gauge 0.0.3 (new formula) Closes Homebrew/homebrew#33168. Signed-off-by: Mike McQuaid --- Formula/gauge.rb | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Formula/gauge.rb diff --git a/Formula/gauge.rb b/Formula/gauge.rb new file mode 100644 index 0000000000..ecd61adbd1 --- /dev/null +++ b/Formula/gauge.rb @@ -0,0 +1,52 @@ +require "language/go" + +class Gauge < Formula + homepage "http://getgauge.io" + url "https://github.com/getgauge/gauge/archive/v0.0.3.tar.gz" + sha1 "5cb64ce8d803c739c3e21513b334e0d2216cc68a" + + depends_on "go" => :build + + go_resource "code.google.com/p/goprotobuf" do + url "https://code.google.com/p/goprotobuf", + :revision => "725eb0907b649c438e0e8f1601648597141fb66c", + :using => :hg + end + + go_resource "github.com/getgauge/common" do + url "https://github.com/getgauge/common.git", + :revision => "4c20d2d8fc5c4c447a6110f4f888f72c3d66f84c" + end + + go_resource "github.com/getgauge/mflag" do + url "https://github.com/getgauge/mflag.git", + :revision => "d64a28a7abc05602c9e6d9c5a1488ee69f9fcb83" + 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