RethinkDB 2.0.0

Closes Homebrew/homebrew#38643.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Etienne Laurin 2015-04-14 10:38:43 -07:00 committed by Mike McQuaid
parent 416e3ac6b9
commit 4d3993aa19

View file

@ -1,7 +1,7 @@
class Rethinkdb < Formula
homepage "http://www.rethinkdb.com/"
url "http://download.rethinkdb.com/dist/rethinkdb-1.16.3.tgz"
sha1 "87c58fd94393713ecf898b9e9d0db1ebd570f119"
url "http://download.rethinkdb.com/dist/rethinkdb-2.0.0-1.tgz"
sha1 "8eb3d5d1d5b4de62cb7dff8d53ed403ae7b9984e"
bottle do
sha256 "412fe590323b38e77e59cc4c0c1712ab917f0710653eeb4f86f7c6b144e02f1d" => :yosemite
@ -10,11 +10,9 @@ class Rethinkdb < Formula
end
depends_on :macos => :lion
# Embeds an older V8, whose gyp still requires the full Xcode
# Reported upstream: https://github.com/rethinkdb/rethinkdb/issues/2581
depends_on :xcode => :build
depends_on "boost" => :build
depends_on "openssl"
depends_on "icu4c"
fails_with :gcc do
build 5666 # GCC 4.2.1
@ -24,17 +22,10 @@ class Rethinkdb < Formula
def install
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"]
# support gcc with boost 1.56
# https://github.com/rethinkdb/rethinkdb/issues/3044#issuecomment-55471981
args << "CXXFLAGS=-DBOOST_VARIANT_DO_NOT_USE_VARIADIC_TEMPLATES"
system "./configure", *args
system "make"
system "make", "install-osx"