aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorprateekbaheti2014-10-14 15:36:57 +0530
committerMike McQuaid2014-12-22 11:44:51 +0000
commit0a05b12e1c0d9b11785cf28d45ea516762fa1f5d (patch)
tree0d3d2e642ad544fb41bec9bf9bfeb8c7fd3a7c5f /Library/Formula
parent7a4f9fc1569f8ce1c0eba3d6a4d15daafe9b2b8e (diff)
downloadhomebrew-0a05b12e1c0d9b11785cf28d45ea516762fa1f5d.tar.bz2
gauge 0.0.3 (new formula)
Closes #33168. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gauge.rb52
1 files changed, 52 insertions, 0 deletions
diff --git a/Library/Formula/gauge.rb b/Library/Formula/gauge.rb
new file mode 100644
index 000000000..ecd61adbd
--- /dev/null
+++ b/Library/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