aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/arangodb.rb18
1 files changed, 16 insertions, 2 deletions
diff --git a/Library/Formula/arangodb.rb b/Library/Formula/arangodb.rb
index 1d774d223..4b752f7bb 100644
--- a/Library/Formula/arangodb.rb
+++ b/Library/Formula/arangodb.rb
@@ -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}