rethinkdb: fix dependencies, simplify build options and add head
Closes Homebrew/homebrew#17478. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
07dbca77f2
commit
971c03aa54
1 changed files with 8 additions and 5 deletions
|
@ -5,18 +5,21 @@ class Rethinkdb < Formula
|
|||
url 'https://github.com/rethinkdb/rethinkdb/archive/v1.3.2.tar.gz'
|
||||
sha1 '8956087fb98f32fa5a320e696e28b239afe03ab4'
|
||||
|
||||
depends_on 'v8'
|
||||
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 LanguageModuleDependency.new(:ruby, 'ruby_protobuf', 'protobuf/compiler/compiler')
|
||||
depends_on 'handlebars' => :node if build.head?
|
||||
|
||||
def install
|
||||
system "cd src; make DEBUG=0 FORCEVERSION=1 RETHINKDB_VERSION=#{version} PREFIX=#{prefix} WEBRESDIR=#{share}/rethinkdb/web"
|
||||
cd "src" do
|
||||
system "make DEBUG=0 WEBRESDIR=#{share}/rethinkdb/web"
|
||||
end
|
||||
bin.install 'build/release/rethinkdb'
|
||||
|
||||
(share/'rethinkdb').mkpath
|
||||
share.install 'build/release/web' => 'rethinkdb'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue