arangodb 2.2.0

Closes Homebrew/homebrew#30895.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
Frank Celler 2014-07-12 20:47:14 +02:00 committed by Misty De Meo
parent f67b80e68e
commit def644f5f6

View file

@ -2,8 +2,8 @@ require 'formula'
class Arangodb < Formula
homepage 'http://www.arangodb.org/'
url 'https://github.com/triAGENS/ArangoDB/archive/v2.1.2.tar.gz'
sha1 '3f6cc8c7dc757f995c61effcd74523e0f5a60f98'
url 'https://www.arangodb.org/repositories/Source/ArangoDB-2.2.0.tar.gz'
sha1 '6c1886c606f73f9d3dfbc3d58293cc4f47a07491'
head "https://github.com/triAGENS/ArangoDB.git", :branch => 'unstable'
@ -15,6 +15,8 @@ class Arangodb < Formula
depends_on 'go' => :build
needs :cxx11
def suffix
if build.stable?
return ""
@ -24,6 +26,18 @@ class Arangodb < Formula
end
def install
# clang on 10.8 will still try to build against libstdc++,
# which fails because it doesn't have the C++0x features
# arangodb requires.
ENV.libcxx
# Bundled V8 tries to build with a 10.5 deployment target,
# which causes clang to error out b/c a 10.5 deployment target
# and -stdlib=libc++ are not valid together.
inreplace "3rdParty/V8/build/standalone.gypi",
"'mac_deployment_target%': '10.5',",
"'mac_deployment_target%': '#{MacOS.version}',"
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}