e7657fd5a3
Closes Homebrew/homebrew#45804. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
19 lines
643 B
Ruby
19 lines
643 B
Ruby
class ApacheDrill < Formula
|
|
desc "Schema-free SQL query engine for Hadoop and NoSQL"
|
|
homepage "https://drill.apache.org/download/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=drill/drill-1.2.0/apache-drill-1.2.0.tar.gz"
|
|
mirror "http://getdrill.org/drill/download/apache-drill-1.2.0.tar.gz"
|
|
sha256 "81e1b6e41efa9340ad45c18e6db6c5dcb14eef4fecc8959fc6ac328083e6182a"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
bin.write_exec_script Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
ENV["_JAVA_OPTIONS"] = "-Duser.home=#{testpath}"
|
|
pipe_output("#{bin}/sqlline -u jdbc:drill:zk=local", "!tables", 0)
|
|
end
|
|
end
|