nifi-registry: depend on openjdk (#63989)

master
Dustin Rodrigues 2020-11-02 17:42:53 -05:00 committed by GitHub
parent 134da22eed
commit 3c1102a434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@ class NifiRegistry < Formula
mirror "https://archive.apache.org/dist/nifi/nifi-registry/nifi-registry-0.8.0/nifi-registry-087.0-bin.tar.gz"
sha256 "db9f390eb4e1f99fb861c437be95729dfcb203f49de4b9cb3130a612a4ae288d"
license "Apache-2.0"
revision 1
livecheck do
url :stable
@ -12,12 +13,15 @@ class NifiRegistry < Formula
bottle :unneeded
depends_on "openjdk"
def install
libexec.install Dir["*"]
rm Dir[libexec/"bin/*.bat"]
bin.install libexec/"bin/nifi-registry.sh" => "nifi-registry"
bin.env_script_all_files libexec/"bin/", NIFI_REGISTRY_HOME: libexec
bin.env_script_all_files libexec/"bin/",
Language::Java.overridable_java_home_env.merge(NIFI_REGISTRY_HOME: libexec)
end
test do