class Bigdata < Formula desc "Graph database supporting RDF data model, Sesame, and Blueprint APIs" homepage "https://www.blazegraph.com/bigdata" url "https://downloads.sourceforge.net/project/bigdata/bigdata/1.5.1/bigdata-bundled.jar" version "1.5.1" sha256 "092ecfb1293de27ef40c02795a34ac410e30d175623a342b27271952f01c1f1a" bottle :unneeded depends_on :java => "1.7+" def install libexec.install "bigdata-bundled.jar" bin.write_jar_script libexec/"bigdata-bundled.jar", "bigdata" end plist_options :startup => "true", :manual => "bigdata start" def plist; <<-EOS.undent Label #{plist_name} Program #{bin}/bigdata RunAtLoad WorkingDirectory #{prefix} EOS end test do server = fork do exec bin/"bigdata" end sleep 5 Process.kill("TERM", server) File.exist? "bigdata.jnl" File.exist? "rules.log" end end