aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authordickeyxxx2014-09-13 19:15:31 -0700
committerMike McQuaid2014-09-18 11:27:54 +0100
commitae28c2974c2c4eb761bd26425a744685dc262938 (patch)
tree65863ea93d6adc53868802ce0916ec21bf8ad8c0 /Library/Formula
parentf94af1e24b7378def18455e3f81edb9850f8eb80 (diff)
downloadhomebrew-ae28c2974c2c4eb761bd26425a744685dc262938.tar.bz2
forego 0.12.0 (new formula)
Foreman written in Go.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/forego.rb41
1 files changed, 41 insertions, 0 deletions
diff --git a/Library/Formula/forego.rb b/Library/Formula/forego.rb
new file mode 100644
index 000000000..f959d5999
--- /dev/null
+++ b/Library/Formula/forego.rb
@@ -0,0 +1,41 @@
+require "formula"
+require "language/go"
+
+class Forego < Formula
+ homepage "https://github.com/ddollar/forego"
+ url "https://github.com/ddollar/forego/archive/v0.12.0.tar.gz"
+ sha1 "377a77cd522ccf00b274645920fc760f27b16ed4"
+
+ head "https://github.com/ddollar/forego.git"
+
+ depends_on "go" => :build
+
+ go_resource "github.com/kr/godep" do
+ url "https://github.com/kr/godep.git", :revision => "edcaa96f040b31f4186738decac57f88d6061b8d"
+ end
+
+ go_resource "github.com/kr/fs" do
+ url "https://github.com/kr/fs.git", :revision => "2788f0dbd16903de03cb8186e5c7d97b69ad387b"
+ end
+
+ go_resource "code.google.com/p/go.tools" do
+ url "https://code.google.com/p/go.tools/", :revision => "140fcaadc586", :using => :hg
+ end
+
+ def install
+ ENV["GOPATH"] = buildpath
+ Language::Go.stage_deps resources, buildpath/"src"
+
+ cd "src/github.com/kr/godep" do
+ system "go", "install"
+ end
+
+ system "./bin/godep", "go", "build", "-o", "forego"
+ bin.install "forego"
+ end
+
+ test do
+ (testpath/"Procfile").write("web: echo \"it works!\"")
+ assert `#{bin}/forego start` =~ /it works!/
+ end
+end