class Nifi < Formula desc "Easy to use, powerful, and reliable system to process and distribute data." homepage "https://nifi.apache.org" url "https://www.apache.org/dyn/closer.cgi?path=/nifi/0.5.1/nifi-0.5.1-bin.tar.gz" sha256 "783b753968bfa6e489cd82b4c5a08d82c9ff4205768dd3b06bc67c06288431f3" bottle :unneeded depends_on :java => "1.7+" 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 end test do system bin/"nifi", "status" end end