homebrew-core/Formula/voldemort.rb

30 lines
741 B
Ruby
Raw Normal View History

require 'formula'
class Voldemort < Formula
homepage 'http://project-voldemort.com/'
url 'https://github.com/downloads/voldemort/voldemort/voldemort-0.90.1.tar.gz'
sha1 '8a8d33e3a5904f3aeea66bc0503fb12e449e0969'
2012-08-07 18:20:52 +00:00
skip_clean 'libexec/config'
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
# Write shim scripts for all utilities
2012-08-07 18:20:52 +00:00
bin.write_exec_script Dir["#{libexec}/bin/*.sh"]
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