homebrew-core/Formula/orientdb.rb

44 lines
1.5 KiB
Ruby
Raw Normal View History

require 'formula'
class Orientdb < Formula
homepage 'http://www.orientdb.org/index.htm'
url 'http://www.orientechnologies.com/download.php?email=unknown@unknown.com&file=orientdb-community-2.0.5.tar.gz&os=mac'
version '2.0.5'
sha1 '455e2a8fc20ace886a089fcf1d770145604aaa48'
2014-10-23 13:53:04 +00:00
2014-07-19 01:43:19 +00:00
bottle do
cellar :any
2015-03-13 04:21:35 +00:00
sha256 "e479fa8783e1846aeebc82689ff3b26b0a352bd8a2ca940da130df67ecaca1c1" => :yosemite
sha256 "699cb84a8e093238a4788ea4661c48df4f5fb748748532ba5835cd857f257fa9" => :mavericks
sha256 "c0058adb335b7e245e602973efe728bc4acbb91fd48c74681a13837c48ede560" => :mountain_lion
2014-07-19 01:43:19 +00:00
end
2014-03-14 15:03:25 +00:00
# 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