homebrew-core/Formula/apache-flink.rb
ilovezfs c29e13158b apache-flink 1.1.3
Closes #5897.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-10-15 07:55:32 -07:00

23 lines
784 B
Ruby

class ApacheFlink < Formula
desc "Scalable batch and stream data processing"
homepage "https://flink.apache.org/"
url "https://www.apache.org/dyn/closer.lua?path=flink/flink-1.1.3/flink-1.1.3-bin-hadoop27-scala_2.11.tgz"
version "1.1.3"
sha256 "2d26c0cdb5cd8294721b98bd8caec85e3c7f4269e9517e82ade79b86478b6035"
head "https://github.com/apache/flink.git"
bottle :unneeded
def install
rm_f Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.write_exec_script Dir["#{libexec}/bin/flink"]
end
test do
ENV["_JAVA_OPTIONS"] = "-Djava.io.tmpdir=#{testpath} -Duser.home=#{testpath}"
input = "benv.fromElements(1,2,3).print()\n"
output = pipe_output("#{libexec}/bin/start-scala-shell.sh local", input, 1)
assert_match "FINISHED", output
end
end