51afdbd949
Closes Homebrew/homebrew#40545. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
47 lines
1.6 KiB
Ruby
47 lines
1.6 KiB
Ruby
class Neo4j < Formula
|
|
desc "Robust (fully ACID) transactional property graph database"
|
|
homepage "http://neo4j.org"
|
|
url "http://dist.neo4j.org/neo4j-community-2.2.2-unix.tar.gz"
|
|
version "2.2.2"
|
|
sha256 "18d6d88c61d9077340adf774359bd1d8f458f68ec51bcf96deb3f00894db1ded"
|
|
|
|
devel do
|
|
url "http://dist.neo4j.org/neo4j-community-2.3.0-M02-unix.tar.gz"
|
|
sha256 "54047565659e1230c7a196ff696765e042da5679cf287966efad9e36a8f07046"
|
|
version "2.3.0-M02"
|
|
end
|
|
|
|
option "with-neo4j-shell-tools", "Add neo4j-shell-tools to the standard neo4j-shell"
|
|
|
|
resource "neo4j-shell-tools" do
|
|
url "http://dist.neo4j.org/jexp/shell/neo4j-shell-tools_2.2.zip"
|
|
sha256 "a84bd306754701c1748a26dcf207c136c9859f60cdd60e003771f0df0a83fb00"
|
|
end
|
|
|
|
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}"]
|
|
|
|
# Eventually, install neo4j-shell-tools
|
|
# omiting "opencsv-2.3.jar" because it already comes with neo4j (see libexec/lib)
|
|
if build.with? "neo4j-shell-tools"
|
|
resource("neo4j-shell-tools").stage {
|
|
(libexec/"lib").install "geoff-0.5.0.jar", "import-tools-2.2.jar", "mapdb-0.9.3.jar"
|
|
}
|
|
end
|
|
|
|
# Adjust UDC props
|
|
open("#{libexec}/conf/neo4j-wrapper.conf", "a") { |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
|