2012-06-13 23:07:30 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Voldemort < Formula
|
|
|
|
homepage 'http://project-voldemort.com/'
|
2013-08-18 00:00:21 +00:00
|
|
|
url 'https://github.com/voldemort/voldemort/archive/v1.4.0.tar.gz'
|
|
|
|
sha1 'f07b552d494b9b68d9c4e3561384bc932e7e7bd8'
|
2012-06-13 23:07:30 +00:00
|
|
|
|
2012-08-07 18:20:52 +00:00
|
|
|
skip_clean 'libexec/config'
|
|
|
|
|
2012-06-13 23:07:30 +00:00
|
|
|
def install
|
|
|
|
system "ant"
|
|
|
|
libexec.install %w(bin lib dist contrib)
|
|
|
|
libexec.install "config" => "config-examples"
|
2012-08-07 18:20:52 +00:00
|
|
|
(libexec/"config").mkpath
|
2012-06-13 23:07:30 +00:00
|
|
|
|
|
|
|
# Write shim scripts for all utilities
|
2012-08-07 18:20:52 +00:00
|
|
|
bin.write_exec_script Dir["#{libexec}/bin/*.sh"]
|
2012-06-13 23:07:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You will need to set VOLDEMORT_HOME to:
|
|
|
|
#{libexec}
|
|
|
|
|
|
|
|
Config files should be placed in:
|
|
|
|
#{libexec}/config
|
|
|
|
or you can set VOL_CONF_DIR to a more reasonable path.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|