2012-02-22 17:39:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Avocadodb < Formula
|
2012-03-01 16:45:59 +00:00
|
|
|
url "https://github.com/triAGENS/AvocadoDB/zipball/v0.2.2"
|
2012-02-22 17:39:26 +00:00
|
|
|
head "https://github.com/triAGENS/AvocadoDB.git"
|
|
|
|
|
|
|
|
homepage 'http://www.avocadodb.org/'
|
2012-03-01 16:45:59 +00:00
|
|
|
sha1 '497d175e703be57a0b4bd227c7dbd75b58631c3c'
|
2012-02-22 17:39:26 +00:00
|
|
|
|
|
|
|
depends_on 'libev'
|
|
|
|
depends_on 'v8'
|
2012-03-01 16:45:59 +00:00
|
|
|
depends_on 'boost' => :build
|
2012-02-22 17:39:26 +00:00
|
|
|
|
|
|
|
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
|
2012-03-01 16:45:59 +00:00
|
|
|
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:
|
2012-02-22 17:39:26 +00:00
|
|
|
|
|
|
|
https://github.com/triAGENS/AvocadoDB/issues
|
|
|
|
|
|
|
|
To start AvocadoDB, run:
|
|
|
|
avocado
|
|
|
|
|
|
|
|
To start AvocadoDB with an interactive (REPL) shell, run:
|
|
|
|
avocado --shell
|
|
|
|
EOS
|
|
|
|
end
|
2012-03-02 03:43:11 +00:00
|
|
|
end
|