diff options
| author | Max Riveiro | 2012-01-19 21:09:05 +0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-27 14:51:03 -0700 |
| commit | 8ca066a542c4678d3da39a7a3ec1b368e588a0fe (patch) | |
| tree | 34bb274afd7e85d0be6dd98ca5c9f833fa94d9cb /Library | |
| parent | 8d4a246e9b368eddbf095caba51bc1a3cfa88e8a (diff) | |
| download | homebrew-8ca066a542c4678d3da39a7a3ec1b368e588a0fe.tar.bz2 | |
OrientDB 1.2.0
Closes #9676.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/orientdb.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/orientdb.rb b/Library/Formula/orientdb.rb new file mode 100644 index 000000000..9c8dfe4fb --- /dev/null +++ b/Library/Formula/orientdb.rb @@ -0,0 +1,40 @@ +require 'formula' + +class Orientdb < Formula + homepage 'http://www.orientdb.org/index.htm' + url 'http://orient.googlecode.com/files/orientdb-graphed-1.2.0.zip' + sha1 '7b6dc5740510f15150ee5eb457b717ecec468f7e' + + def patches + # Fixing OrientDB init scripts + "https://raw.github.com/gist/3965837/b464748b1759117ac5fb2039f54d5a5fd204f0b8/homebrew.patch" + end + + def install + rm_rf Dir['{bin,benchmarks}/*.{bat,exe}'] + + inreplace %W[bin/orientdb.sh bin/console.sh bin/gremlin.sh], + '"YOUR_ORIENTDB_INSTALLATION_PATH"', libexec + + chmod 0755, Dir["bin/*"] + libexec.install Dir['*'] + + mkpath "#{libexec}/log" + touch "#{libexec}/log/orientdb.err" + touch "#{libexec}/log/orientdb.log" + + bin.install_symlink "#{libexec}/bin/orientdb.sh" => 'orientdb' + bin.install_symlink "#{libexec}/bin/console.sh" => 'orientdb-console' + bin.install_symlink "#{libexec}/bin/gremlin.sh" => 'orientdb-gremlin' + end + + def caveats + "Use `orientdb <start | stop | status>`, `orientdb-console` and `orientdb-gremlin`." + end + + def test + system "orientdb start" + system "orientdb status | grep PID" + system "orientdb stop" + end +end |
