From 0cf37c1b809a7348eff18f8c91d6f09347c648cf Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 20 Sep 2024 01:48:45 +0800 Subject: [PATCH] neo4j: build an `:all` bottle The only differences between the bottles are `/usr/local` references inside comments in the completion scripts. Let's also install the shell completions since we're already modifying them. --- Formula/n/neo4j.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Formula/n/neo4j.rb b/Formula/n/neo4j.rb index 3c8ef5712cac..0be97db3b21b 100644 --- a/Formula/n/neo4j.rb +++ b/Formula/n/neo4j.rb @@ -36,8 +36,13 @@ def install # Install jars in libexec to avoid conflicts libexec.install Dir["*"] + bash_completion.install (libexec/"bin/completion").children + # Ensure uniform bottles by replacing comments that reference `/usr/local`. + inreplace bash_completion.children, "/usr/local", HOMEBREW_PREFIX + rm_r libexec/"bin/completion" + # Symlink binaries - bin.install Dir["#{libexec}/bin/neo4j{,-shell,-import,-shared.sh,-admin}"] + bin.install libexec.glob("bin/neo4j*") bin.env_script_all_files(libexec/"bin", env) # Adjust UDC props