2012-02-22 17:39:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Avocadodb < Formula
|
|
|
|
homepage 'http://www.avocadodb.org/'
|
2012-04-11 08:32:43 +00:00
|
|
|
url "https://github.com/triAGENS/AvocadoDB/zipball/v0.3.9"
|
|
|
|
sha1 '95ac8035b709d3c5849dabe2f5cf8475142d9b48'
|
|
|
|
|
2012-04-01 21:40:47 +00:00
|
|
|
head "https://github.com/triAGENS/AvocadoDB.git"
|
2012-02-22 17:39:26 +00:00
|
|
|
|
|
|
|
depends_on 'libev'
|
|
|
|
depends_on 'v8'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2012-04-01 21:40:47 +00:00
|
|
|
"--disable-relative",
|
2012-02-22 17:39:26 +00:00
|
|
|
"--disable-all-in-one",
|
2012-04-11 08:32:43 +00:00
|
|
|
"--disable-debug",
|
2012-02-22 17:39:26 +00:00
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--datadir=#{share}",
|
|
|
|
"--localstatedir=#{var}"
|
|
|
|
|
|
|
|
system "make install"
|
|
|
|
|
|
|
|
(var+'avocado').mkpath
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2012-04-01 21:40:47 +00:00
|
|
|
Please note that this is a very early version if AvocadoDB. There will be
|
|
|
|
bugs and the AvocadoDB team would really appreciate it if you report them:
|
2012-02-22 17:39:26 +00:00
|
|
|
|
|
|
|
https://github.com/triAGENS/AvocadoDB/issues
|
|
|
|
|
2012-04-01 21:40:47 +00:00
|
|
|
To start the AvocadoDB server, run:
|
2012-02-22 17:39:26 +00:00
|
|
|
avocado
|
|
|
|
|
2012-04-01 21:40:47 +00:00
|
|
|
To start the AvocadoDB shell, run:
|
|
|
|
avocsh
|
2012-02-22 17:39:26 +00:00
|
|
|
EOS
|
|
|
|
end
|
2012-03-02 03:43:11 +00:00
|
|
|
end
|