homebrew-core/Formula/aws-cloudsearch.rb
2015-06-05 14:47:57 +01:00

21 lines
791 B
Ruby

class AwsCloudsearch < Formula
desc "Client for Amazon CloudSearch web service"
homepage "https://aws.amazon.com/developertools/9054800585729911"
url "https://s3.amazonaws.com/amazon-cloudsearch-data/cloud-search-tools-v2-2.0.1.0-2014.10.27.tar.gz"
version "2.0.1.0-2014.10.27"
sha256 "882a6442172957b27c0b3cd1f271531112092d4d227b528ce912b2e7ea886d51"
depends_on :java => "1.7+"
def install
inreplace "bin/cs-cmd", 'LIBDIR="${CS_HOME}/lib"', 'LIBDIR="${CS_HOME}/jars/lib"'
(libexec/"jars").install "lib"
libexec.install %w[conf help third-party]
bin.install Dir["bin/*"]
bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env("1.7+").merge(:CS_HOME => libexec))
end
test do
system "#{bin}/cs-configure-from-batches", "-h"
end
end