blob: 2e6e12c0bb19b5da2df5712d878b328f7c4842b7 (
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
|
require 'formula'
class Rethinkdb < Formula
homepage 'http://www.rethinkdb.com/'
url 'https://github.com/rethinkdb/rethinkdb/archive/v1.3.2.tar.gz'
sha1 '8956087fb98f32fa5a320e696e28b239afe03ab4'
head 'https://github.com/rethinkdb/rethinkdb.git'
depends_on 'node' => :build
depends_on 'protobuf' => :build
depends_on 'boost' => :build
depends_on 'v8'
depends_on 'less' => :node
depends_on 'coffee-script' => :node
depends_on 'handlebars' => :node if build.head?
def install
cd "src" do
system "make DEBUG=0 WEBRESDIR=#{share}/rethinkdb/web"
end
bin.install 'build/release/rethinkdb'
(share/'rethinkdb').install 'build/release/web'
end
end
|