ArangoDB 1.3.3

Closes #22174.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Frank Celler authored and Adam Vandenberg committed 2013-08-30 10:13:20 -07:00
1 parent ca9bd17d68
commit d1db54e780
1 file changed
+15 -14
+15 -14
View File
@@ -2,14 +2,22 @@ require 'formula'
class Arangodb < Formula
homepage 'http://www.arangodb.org/'
url 'https://www.arangodb.org/repositories/archive/arangodb-1.3.2.tar.gz'
sha1 '00d59f4f61f6c94c6d6a0a0673949f4f27693633'
url 'https://www.arangodb.org/repositories/archive/arangodb-1.3.3.tar.gz'
sha1 'd642d7bdfd03e1c94341714ce087f80b17832296'
head "https://github.com/triAGENS/ArangoDB.git", :branch => 'unstable'
depends_on 'icu4c'
depends_on 'libev'
def suffix
if build.stable?
return ""
else
return "-" + (build.devel? ? version : "unstable")
end
end
def install
args = %W[
--disable-dependency-tracking
@@ -21,21 +29,14 @@ class Arangodb < Formula
--enable-mruby
--datadir=#{share}
--localstatedir=#{var}
--program-suffix=#{suffix}
]
if build.devel?
args << "--program-suffix=-#{version}"
end
if build.head?
args << "--program-suffix=-unstable"
end
system "./configure", *args
system "make install"
(var+'arangodb').mkpath
(var+'log/arangodb').mkpath
(var/'arangodb').mkpath
(var/'log/arangodb').mkpath
end
plist_options :manual => "#{HOMEBREW_PREFIX}/opt/arangodb/sbin/arangod"
@@ -55,10 +56,10 @@ class Arangodb < Formula
/usr/local/etc/arangodb/arangod.conf
Start ArangoDB server:
unix> /usr/local/sbin/arangod
unix> /usr/local/sbin/arangod#{suffix}
Start ArangoDB shell client (use empty password):
unix> /usr/local/bin/arangosh
unix> /usr/local/bin/arangosh#{suffix}
EOS
end