0e60fa258e
Closes Homebrew/homebrew#48238. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
34 lines
1,018 B
Ruby
34 lines
1,018 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.2-unix.tar.gz"
|
|
version "2.3.2"
|
|
sha256 "37e24d95c914c54d5cbbe99473d4beef89da78adb2db04eb87258a489225932a"
|
|
|
|
devel do
|
|
url "http://dist.neo4j.org/neo4j-community-3.0.0-M02-unix.tar.gz"
|
|
sha256 "2a20f420e94fe4189363ce8ab327c0e5e054df3fc74a0249e9e2c7fe0455a0d6"
|
|
version "3.0.0-M02"
|
|
end
|
|
|
|
bottle :unneeded
|
|
|
|
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
|