24 lines
604 B
Ruby
24 lines
604 B
Ruby
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.4.1/nifi-0.4.1-bin.tar.gz"
|
|
sha256 "cdd7a2ea0467bc3e5d987d6fc93965e0e1ef7b96de8f61459f620c04ec54ec80"
|
|
|
|
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
|