d3d2316ec8
Closes Homebrew/homebrew#31883. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
43 lines
1.4 KiB
Ruby
43 lines
1.4 KiB
Ruby
require 'formula'
|
|
|
|
class Orientdb < Formula
|
|
homepage 'http://www.orientdb.org/index.htm'
|
|
url 'http://www.orientdb.org/portal/function/portal/download/unknown@unknown.com/-/-/-/-/-/orientdb-community-1.7.8.tar.gz/false/false/mac'
|
|
version '1.7.8'
|
|
sha1 'f4045b41c9b668125015f2be27edc5a79c99f5f6'
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "280b465e85266afeb75da58c5be4380f88217f5e" => :mavericks
|
|
sha1 "ac9e43a295e7b3ed5d6895f4674c7b65b82d1fd7" => :mountain_lion
|
|
sha1 "031e775330f87520f09c4d2f7f4ad06e9e514226" => :lion
|
|
end
|
|
|
|
# Fixing OrientDB init scripts
|
|
patch do
|
|
url "https://gist.githubusercontent.com/maggiolo00/84835e0b82a94fe9970a/raw/1ed577806db4411fd8b24cd90e516580218b2d53/orientdbsh"
|
|
sha1 "280284f3a8b6e280e46078b746f8250aa5648979"
|
|
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
|
|
end
|