Skip to content

Commit

Permalink
neo4j: build an :all bottle
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
carlocab committed Sep 19, 2024
1 parent f251f2a commit 0cf37c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Formula/n/neo4j.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cf37c1

Please sign in to comment.