aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMichael Heuer2012-06-13 18:07:30 -0500
committerAdam Vandenberg2012-06-27 11:14:15 -0700
commitf68c36b21ed488b134a7e0fded10c3ea4a0a5fb2 (patch)
treead601d4a92fa003e12ecf4c2f139a160409800ea /Library/Formula
parentb3a0a433c8e8eaf67c99b0eccacf7315b53cfcc8 (diff)
downloadhomebrew-f68c36b21ed488b134a7e0fded10c3ea4a0a5fb2.tar.bz2
Voldemort 0.90.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/voldemort.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/voldemort.rb b/Library/Formula/voldemort.rb
new file mode 100644
index 000000000..dd6c3ed69
--- /dev/null
+++ b/Library/Formula/voldemort.rb
@@ -0,0 +1,33 @@
+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'
+
+ 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.undent
+ #!/bin/bash
+ exec #{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