require "formula" class Solr < Formula homepage "http://lucene.apache.org/solr/" url "http://www.apache.org/dyn/closer.cgi?path=lucene/solr/4.10.2/solr-4.10.2.tgz" sha1 "b913204d07212d7bb814afe4641992f22404a27d" def install libexec.install Dir["*"] bin.install "#{libexec}/bin/solr" share.install "#{libexec}/bin/solr.in.sh" prefix.install "#{libexec}/example" end plist_options :manual => "solr start" def plist; <<-EOS.undent Label #{plist_name} ProgramArguments #{opt_bin}/solr start -f ServiceDescription #{name} WorkingDirectory #{HOMEBREW_PREFIX} RunAtLoad EOS end end