RethinkDB 1.11.2

Closes Homebrew/homebrew#25007.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Etienne Laurin 2013-12-06 14:09:35 -08:00 committed by Adam Vandenberg
parent b695d4c6cd
commit 930162206f
1 changed files with 11 additions and 5 deletions

View File

@ -2,12 +2,11 @@ require 'formula'
class Rethinkdb < Formula
homepage 'http://www.rethinkdb.com/'
url 'http://download.rethinkdb.com/dist/rethinkdb-1.11.1.tgz'
sha1 'f111aa2ffcd353283ae9c3bbba8a8cbf8348621e'
url 'http://download.rethinkdb.com/dist/rethinkdb-1.11.2.tgz'
sha1 '06edac5fa1daa5e611faabfac2b77edbe82d9934'
depends_on :macos => :lion
depends_on 'boost' => :build
depends_on 'protobuf' if MacOS.version >= :mavericks
fails_with :gcc do
build 5666 # GCC 4.2.1
@ -15,8 +14,15 @@ class Rethinkdb < Formula
end
def install
args = ["--prefix=#{prefix}", "--fetch", "v8"]
args += ["--fetch", "protobuf"] unless MacOS.version >= :mavericks
args = ["--prefix=#{prefix}"]
# brew's v8 is too recent. rethinkdb uses an older v8 API
args += ["--fetch", "v8"]
# rethinkdb requires that protobuf be linked against libc++
# but brew's protobuf is sometimes linked against libstdc++
args += ["--fetch", "protobuf"]
system "./configure", *args
system "make"
system "make install-osx"