nifi: depend on openjdk

Co-Authored-By: Alexander Bayandin <a.bayandin@gmail.com>

Closes #50448.

Signed-off-by: Alexander Bayandin <a.bayandin@gmail.com>
master
Markus Reiter 2020-02-04 11:06:36 +01:00 committed by Alexander Bayandin
parent f4280bc6a3
commit 8e18ea04ed
1 changed files with 7 additions and 6 deletions

View File

@ -1,20 +1,21 @@
class Nifi < Formula
desc "Easy to use, powerful, and reliable system to process and distribute data"
homepage "https://nifi.apache.org"
url "http://mirror.cc.columbia.edu/pub/software/apache/nifi/1.11.1/nifi-1.11.1-bin.tar.gz"
url "https://www.apache.org/dyn/closer.lua?path=nifi/1.11.1/nifi-1.11.1-bin.tar.gz"
mirror "https://archive.apache.org/dist/nifi/1.11.1/nifi-1.11.1-bin.tar.gz"
sha256 "b0b35a9db0e6c8c299ca174e668acf8389488976b1674f08771f9361d884c5f3"
revision 1
bottle :unneeded
depends_on :java => "1.8+"
depends_on "openjdk"
def install
libexec.install Dir["*"]
ENV["NIFI_HOME"] = libexec
bin.install libexec/"bin/nifi.sh" => "nifi"
bin.env_script_all_files libexec/"bin/", :NIFI_HOME => libexec
(bin/"nifi").write_env_script libexec/"bin/nifi.sh",
:NIFI_HOME => libexec,
:JAVA_HOME => Formula["openjdk"].opt_prefix
end
test do