From 65d9826dff6a4df706f40f158af6d4b3a7696a7b Mon Sep 17 00:00:00 2001 From: Philipp Fehre Date: Thu, 27 Feb 2014 10:02:02 +0100 Subject: [PATCH] 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. --- Formula/sync_gateway.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Formula/sync_gateway.rb diff --git a/Formula/sync_gateway.rb b/Formula/sync_gateway.rb new file mode 100644 index 00000000000..3ea08ad5998 --- /dev/null +++ b/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