aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorPhilipp Fehre2014-02-27 10:02:02 +0100
committerMike McQuaid2014-08-30 17:21:53 +0100
commitdb2c8ce8025cb29dbbd13dfec32cdde1ad4947f2 (patch)
tree9d542e856c61662d36f1895a2fec42cd3199315e /Library
parent93805d257c1ac3e35614b977477d8b725f80b276 (diff)
downloadhomebrew-db2c8ce8025cb29dbbd13dfec32cdde1ad4947f2.tar.bz2
sync_gateway 1.0.2 (new formula)
sync_gateway provides the syncing backend for couchbase mobile and is used together with couchbase-lite-ios or android to develop syncing apps for iOS or android. Since the project itself is named sync_gateway I kept the name for the formula as well.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sync_gateway.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/sync_gateway.rb b/Library/Formula/sync_gateway.rb
new file mode 100644
index 000000000..3ea08ad59
--- /dev/null
+++ b/Library/Formula/sync_gateway.rb
@@ -0,0 +1,22 @@
+require "formula"
+
+class SyncGateway < Formula
+ homepage "http://docs.couchbase.com/sync-gateway"
+ head "https://github.com/couchbase/sync_gateway.git", :branch => "master"
+ url "https://github.com/couchbase/sync_gateway.git", :branch => "release/1.0.2"
+ version "1.0.2"
+
+ depends_on "go" => :build
+
+ def install
+ system "make", "buildit"
+ bin.install "bin/sync_gateway"
+ end
+
+ test do
+ pid = fork { exec "#{bin}/sync_gateway" }
+ sleep 1
+ Process.kill("SIGINT", pid)
+ Process.wait(pid)
+ end
+end