blob: 617991258d04418b2baea6c4ba7a9a144a3ead0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  | 
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"
  bottle do
    sha1 "c562b5a600af346900a97ffba3941ec7bf143cc3" => :mavericks
    sha1 "f0e322874588bc5328ec5ab4880def47026960e4" => :mountain_lion
    sha1 "b7b9d259e0ed15757f30b2e44881266d9dd2a4de" => :lion
  end
  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
  |