aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/arangodb.rb
blob: 648d77d1ad0f626abfe0a865f74f35d37cbcfee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'formula'

class Arangodb < Formula
  homepage 'http://www.arangodb.org/'
  url "https://github.com/triAGENS/ArangoDB/zipball/v0.5.0"
  sha1 'a3b49fe19bc15e52b5d2a47ee083cc76cb80bbd8'

  head "https://github.com/triAGENS/ArangoDB.git"

  depends_on 'libev'
  depends_on 'v8'

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--disable-relative",
                          "--disable-all-in-one",
                          "--enable-mruby",
                          "--disable-debug",
                          "--disable-dependency-tracking",
                          "--datadir=#{share}",
                          "--localstatedir=#{var}"

    system "make install"

    (var+'arango').mkpath
  end

  def caveats; <<-EOS.undent
    Please note that this is a very early version if ArangoDB. There will be
    bugs and the ArangoDB team would really appreciate it if you report them:

      https://github.com/triAGENS/ArangoDB/issues

    To start the ArangoDB server, run:
        /usr/local/sbin/arangod

    To start the ArangoDB shell, run:
        arangosh
    EOS
  end
end