2014-04-30 15:32:21 +00:00
|
|
|
class Bigdata < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Graph database supporting RDF data model, Sesame, and Blueprint APIs"
|
2015-12-18 19:03:47 +00:00
|
|
|
homepage "https://www.blazegraph.com/bigdata"
|
2015-12-29 14:13:49 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/bigdata/bigdata/1.5.3/bigdata-bundled.jar"
|
|
|
|
version "1.5.3"
|
|
|
|
sha256 "d72a490a7e86ad96a85e26f52977675ac0f0621b8b02866ce29410796d70d552"
|
2014-04-30 15:32:21 +00:00
|
|
|
|
2015-10-23 08:32:21 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :java => "1.7+"
|
2014-04-30 15:32:21 +00:00
|
|
|
|
2015-04-17 21:20:32 +00:00
|
|
|
def install
|
|
|
|
libexec.install "bigdata-bundled.jar"
|
|
|
|
bin.write_jar_script libexec/"bigdata-bundled.jar", "bigdata"
|
2014-04-30 15:32:21 +00:00
|
|
|
end
|
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
plist_options :startup => "true", :manual => "bigdata start"
|
2014-04-30 15:32:21 +00:00
|
|
|
|
|
|
|
def plist; <<-EOS.undent
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
|
|
|
|
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
|
|
|
<key>Label</key>
|
|
|
|
<string>#{plist_name}</string>
|
|
|
|
<key>Program</key>
|
2015-12-29 14:13:49 +00:00
|
|
|
<string>#{opt_bin}/bigdata</string>
|
2014-04-30 15:32:21 +00:00
|
|
|
<key>RunAtLoad</key>
|
|
|
|
<true/>
|
|
|
|
<key>WorkingDirectory</key>
|
|
|
|
<string>#{prefix}</string>
|
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2015-04-17 21:20:32 +00:00
|
|
|
test do
|
|
|
|
server = fork do
|
2015-07-21 06:14:42 +00:00
|
|
|
exec bin/"bigdata"
|
2015-04-17 21:20:32 +00:00
|
|
|
end
|
|
|
|
sleep 5
|
|
|
|
Process.kill("TERM", server)
|
|
|
|
File.exist? "bigdata.jnl"
|
|
|
|
File.exist? "rules.log"
|
|
|
|
end
|
2014-04-30 15:32:21 +00:00
|
|
|
end
|