diff options
| author | Baptiste Fontaine | 2015-02-01 01:54:18 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-01 11:47:08 +0100 |
| commit | 549e4ee944c4bec081382d3fd6d3192e876904be (patch) | |
| tree | 77cbe162a911f3426e32bfb840f5a9d74b8624de /Library | |
| parent | d1fc7e17308117944ede2f2ca89b0ef74ae2223a (diff) | |
| download | homebrew-549e4ee944c4bec081382d3fd6d3192e876904be.tar.bz2 | |
voldemort 1.9.5
Closes #36425.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/voldemort.rb | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Library/Formula/voldemort.rb b/Library/Formula/voldemort.rb index ed882bf8e..7383822f2 100644 --- a/Library/Formula/voldemort.rb +++ b/Library/Formula/voldemort.rb @@ -1,15 +1,17 @@ -require 'formula' - class Voldemort < Formula - homepage 'http://project-voldemort.com/' - url 'https://github.com/voldemort/voldemort/archive/v1.4.0.tar.gz' - sha1 'f07b552d494b9b68d9c4e3561384bc932e7e7bd8' + homepage "http://project-voldemort.com/" + url "https://github.com/voldemort/voldemort/archive/release-1.9.5-cutoff.tar.gz" + sha1 "ac4db71aa4670054dadc80bbe09544192ddd0a6a" depends_on :ant => :build + depends_on :java => "1.7+" def install - system "ant" - libexec.install %w(bin lib dist contrib) + args = [] + # ant on ML and below is too old to support 1.8 + args << "-Dbuild.compiler=javac1.7" if MacOS.version < :mavericks + system "ant", *args + libexec.install %w[bin lib dist contrib] libexec.install "config" => "config-examples" (libexec/"config").mkpath @@ -26,4 +28,9 @@ class Voldemort < Formula or you can set VOL_CONF_DIR to a more reasonable path. EOS end + + test do + ENV["VOLDEMORT_HOME"] = libexec + system "#{bin}/vadmin.sh" + end end |
