aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMatt Reiferson2013-12-02 00:17:12 -0500
committerMike McQuaid2014-01-16 23:42:13 +0000
commitcc3d707f95b93da4a6c104943fb78aea25a1ce2e (patch)
tree377df62adcd9ba90e5a2e252960f2e43e0da00de /Library/Formula
parent3e9e6307837514c240872866581a100c7d13ba0f (diff)
downloadhomebrew-cc3d707f95b93da4a6c104943fb78aea25a1ce2e.tar.bz2
nsq 0.2.24
Closes #24859. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/nsq.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/nsq.rb b/Library/Formula/nsq.rb
new file mode 100644
index 000000000..cf9a44210
--- /dev/null
+++ b/Library/Formula/nsq.rb
@@ -0,0 +1,31 @@
+require "formula"
+
+class Nsq < Formula
+ homepage "http://bitly.github.io/nsq"
+ url "https://github.com/bitly/nsq/archive/v0.2.24.tar.gz"
+ sha1 "9f1dbaffd8c0a49715555b722df745d228bbb868"
+
+ depends_on "go" => :build
+ depends_on :hg # some package dependencies are mercurial repos
+
+ resource "godep" do
+ url "http://bitly-downloads.s3.amazonaws.com/nsq/godep.tar.gz"
+ sha1 "396a62055bb5b4eb4f58cffc64b2ac8deafbacac"
+ end
+
+ def install
+ (buildpath + "src/github.com/bitly/nsq").install "util"
+
+ # godep is only needed to *build* so don't install somewhere permanent
+ buildpath.install resource("godep")
+
+ ENV["GOPATH"] = `#{buildpath}/godep path`.strip
+ ENV.append_path "GOPATH", buildpath
+ system "make"
+ system "make", "DESTDIR=#{prefix}", "PREFIX=", "install"
+ end
+
+ test do
+ system "#{bin}/nsqd", "--version"
+ end
+end