f5463e6280
Add "www" to the homepage URL as the domain without www is not configured properly. Closes Homebrew/homebrew#36674. Signed-off-by: Brett Koonce <koonce@gmail.com>
36 lines
981 B
Ruby
36 lines
981 B
Ruby
class Voldemort < Formula
|
|
homepage "http://www.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
|
|
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
|
|
|
|
# Write shim scripts for all utilities
|
|
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
|
|
|
|
test do
|
|
ENV["VOLDEMORT_HOME"] = libexec
|
|
system "#{bin}/vadmin.sh"
|
|
end
|
|
end
|