diff --git a/Formula/rethinkdb.rb b/Formula/rethinkdb.rb index 730ae5f514..24f2b1ece1 100644 --- a/Formula/rethinkdb.rb +++ b/Formula/rethinkdb.rb @@ -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"