aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/avocadodb.rb
blob: 25e8f6c80e0ea3cc78af5db60c62e27a732f33f7 (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
require 'formula'

class Avocadodb < Formula
  url "https://github.com/triAGENS/AvocadoDB/zipball/v0.2.2"
  head "https://github.com/triAGENS/AvocadoDB.git"

  homepage 'http://www.avocadodb.org/'
  sha1 '497d175e703be57a0b4bd227c7dbd75b58631c3c'

  depends_on 'libev'
  depends_on 'v8'
  depends_on 'boost' => :build

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

    system "make install"

    (var+'avocado').mkpath
  end

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

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

    To start AvocadoDB, run:
        avocado

    To start AvocadoDB with an interactive (REPL) shell, run:
        avocado --shell
    EOS
  end
end