blob: 3075107dfda7ea5dea23561adb1f8ec5714c5172 (
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"
url "https://github.com/couchbase/sync_gateway.git", :branch => "release/1.0.4"
version "1.0.4"
bottle do
sha1 "cd5eef55308a0cbbfbd92e774b86d47344abea7e" => :yosemite
sha1 "6b9a112f3ff48989aea5380e8b7bcbccf7a6b385" => :mavericks
sha1 "daff7035dd82ab3c9f44a521ab1ea99f93a10343" => :mountain_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
|