2014-02-27 09:02:02 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class SyncGateway < Formula
|
|
|
|
homepage "http://docs.couchbase.com/sync-gateway"
|
2014-12-03 22:44:40 +00:00
|
|
|
head "https://github.com/couchbase/sync_gateway.git"
|
2014-12-19 02:19:15 +00:00
|
|
|
url "https://github.com/couchbase/sync_gateway.git", :branch => "release/1.0.4"
|
|
|
|
version "1.0.4"
|
2014-02-27 09:02:02 +00:00
|
|
|
|
2014-08-30 12:44:31 +00:00
|
|
|
bottle do
|
2014-12-19 02:29:11 +00:00
|
|
|
sha1 "cd5eef55308a0cbbfbd92e774b86d47344abea7e" => :yosemite
|
|
|
|
sha1 "6b9a112f3ff48989aea5380e8b7bcbccf7a6b385" => :mavericks
|
|
|
|
sha1 "daff7035dd82ab3c9f44a521ab1ea99f93a10343" => :mountain_lion
|
2014-08-30 12:44:31 +00:00
|
|
|
end
|
|
|
|
|
2014-02-27 09:02:02 +00:00
|
|
|
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
|