2012-04-18 06:31:28 +00:00
|
|
|
class AwsCloudsearch < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Client for Amazon CloudSearch web service"
|
2015-04-15 21:53:11 +00:00
|
|
|
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+"
|
2012-04-18 06:31:28 +00:00
|
|
|
|
|
|
|
def install
|
2015-04-15 21:53:11 +00:00
|
|
|
inreplace "bin/cs-cmd", 'LIBDIR="${CS_HOME}/lib"', 'LIBDIR="${CS_HOME}/jars/lib"'
|
2015-04-16 07:16:02 +00:00
|
|
|
(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))
|
2012-04-18 06:31:28 +00:00
|
|
|
end
|
2015-04-15 21:53:11 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/cs-configure-from-batches", "-h"
|
|
|
|
end
|
2012-04-18 06:31:28 +00:00
|
|
|
end
|