diff options
| author | Adam Vandenberg | 2010-06-17 13:28:44 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-17 13:38:24 -0700 |
| commit | a7142688334f0a55bcbd9d1c548e384225ef83a5 (patch) | |
| tree | e630d03192cecf0d5ec997f3b11b4000d682e498 /Library/Formula/voldemort.rb | |
| parent | 1996d699c1a6f4b5f9df708c260084de2faa35c5 (diff) | |
| download | homebrew-a7142688334f0a55bcbd9d1c548e384225ef83a5.tar.bz2 | |
Added voldemort 0.81
Diffstat (limited to 'Library/Formula/voldemort.rb')
| -rw-r--r-- | Library/Formula/voldemort.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/voldemort.rb b/Library/Formula/voldemort.rb new file mode 100644 index 000000000..e17477436 --- /dev/null +++ b/Library/Formula/voldemort.rb @@ -0,0 +1,34 @@ +require 'formula' + +class Voldemort <Formula + url 'http://github.com/downloads/voldemort/voldemort/voldemort-0.81.tar.gz' + homepage 'http://project-voldemort.com/' + md5 '38da11626c6704f2bda17d6461cd2928' + + def install + system "ant" + libexec.install %w(bin lib dist contrib) + libexec.install "config" => "config-examples" + (libexec+"config").mkpath + + # Write shim scripts for all utilities + Dir["#{libexec}/bin/*.sh"].each do |p| + script = File.basename(p) + (bin+script).write <<-EOS +#!/bin/bash +#{p} $@ +EOS + end + 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 |
