7b567bf4d3
Closes Homebrew/homebrew#45208. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
26 lines
808 B
Ruby
26 lines
808 B
Ruby
class Neo4j < Formula
|
|
desc "Robust (fully ACID) transactional property graph database"
|
|
homepage "http://neo4j.com"
|
|
url "http://dist.neo4j.org/neo4j-community-2.3.0-unix.tar.gz"
|
|
version "2.3.0"
|
|
sha256 "88fee93884700dae6a1f870dd84b3da9d094db33d57db1c88904954ef2cb4830"
|
|
|
|
def install
|
|
# Remove windows files
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
# Install jars in libexec to avoid conflicts
|
|
libexec.install Dir["*"]
|
|
|
|
# Symlink binaries
|
|
bin.install_symlink Dir["#{libexec}/bin/neo4j{,-shell,-import}"]
|
|
|
|
# Adjust UDC props
|
|
open("#{libexec}/conf/neo4j-wrapper.conf", "a") do |f|
|
|
f.puts "wrapper.java.additional.4=-Dneo4j.ext.udc.source=homebrew"
|
|
|
|
# suppress the empty, focus-stealing java gui
|
|
f.puts "wrapper.java.additional=-Djava.awt.headless=true"
|
|
end
|
|
end
|
|
end
|