2015-02-28 18:32:39 +00:00
|
|
|
class Rexster < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Graph server exposing Blueprints graph via REST"
|
2015-02-28 18:32:39 +00:00
|
|
|
homepage "http://rexster.tinkerpop.com/"
|
|
|
|
url "http://tinkerpop.com/downloads/rexster/rexster-server-2.6.0.zip"
|
|
|
|
sha256 "e0cfeb9d8dc6be6f472a17eee06618cb1a41f6a981c15c465786a23bbdb2b149"
|
|
|
|
|
|
|
|
depends_on :java
|
|
|
|
|
|
|
|
def install
|
|
|
|
rm_rf Dir["bin/*.bat"]
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
|
|
|
|
inreplace "#{libexec}/bin/rexster.sh", "exec $JAVA", "cd #{libexec}\nexec $JAVA"
|
|
|
|
(bin/"rexster.sh").write_env_script libexec/"bin/rexster.sh", Language::Java.java_home_env
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match(/Rexster version \[#{version}\]/, pipe_output("#{bin}/rexster.sh -v"))
|
|
|
|
end
|
|
|
|
end
|