00cd4c1c1e
Closes Homebrew/homebrew#28627. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
34 lines
822 B
Ruby
34 lines
822 B
Ruby
require 'formula'
|
|
|
|
class Predictionio < Formula
|
|
homepage 'http://prediction.io/'
|
|
url 'http://download.prediction.io/PredictionIO-0.7.0.zip'
|
|
sha1 '1daf999a3aba00906419df3c2f292d8a749eb318'
|
|
|
|
depends_on 'mongodb'
|
|
depends_on 'hadoop'
|
|
|
|
def install
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
libexec.install Dir['*']
|
|
bin.write_exec_script Dir["#{libexec}/bin/*"]
|
|
|
|
mv "#{bin}/start-all.sh", "#{bin}/predictionio-start-all.sh"
|
|
mv "#{bin}/stop-all.sh", "#{bin}/predictionio-stop-all.sh"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Before use, you must generate the database and create a user. Run:
|
|
#{bin}/setup-vendors.sh
|
|
#{bin}/setup.sh
|
|
#{bin}/users
|
|
|
|
After that, PredictionIO is ready.
|
|
Start using:
|
|
predictionio-start-all.sh
|
|
Stop using:
|
|
predictionio-stop-all.sh
|
|
EOS
|
|
end
|
|
end
|