homebrew-core/Formula/apache-flink.rb
2016-05-12 21:02:19 +01:00

21 lines
745 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.0.3/flink-1.0.3-bin-hadoop26-scala_2.10.tgz"
version "1.0.3"
sha256 "7ace5440681d81c19b4ff191998e35a60dc8b2ce2421a61084f2821befd3b4a2"
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}"
assert_match /FINISHED/, pipe_output("#{libexec}/bin/start-scala-shell.sh local", "env.fromElements(1,2,3).print()\n", 1)
end
end