aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormindrones2015-01-26 15:24:50 +0100
committerMike McQuaid2015-02-01 11:17:49 +0100
commit9a05a594a51c559837016a9db48af0e72d447e0b (patch)
tree555e3a1ad738df97870229d5f4c6738547379793
parent59b3abfed9cc1792bdcf0ea2681cf8f615051d83 (diff)
downloadhomebrew-9a05a594a51c559837016a9db48af0e72d447e0b.tar.bz2
neo4j 2.2.0-M03 (devel), --with-neo4j-shell-tools.
Closes #36230. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/neo4j.rb23
1 files changed, 20 insertions, 3 deletions
diff --git a/Library/Formula/neo4j.rb b/Library/Formula/neo4j.rb
index 81cc0a5b4..f56614891 100644
--- a/Library/Formula/neo4j.rb
+++ b/Library/Formula/neo4j.rb
@@ -6,10 +6,17 @@ class Neo4j < Formula
sha1 "6f790bb9dc50e50ba2409101f809e6b3a6cd709e"
version "2.1.6"
+ 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.1.zip"
+ sha1 "83011a6dcf1cb49ee609e973fdb61f32f765b224"
+ end
+
devel do
- url "http://dist.neo4j.org/neo4j-community-2.2.0-M01-unix.tar.gz"
- sha1 "ec31ebf7b928711b200a24797bc84a2fb99ffb6c"
- version "2.2.0-M01"
+ url "http://dist.neo4j.org/neo4j-community-2.2.0-M03-unix.tar.gz"
+ sha1 "9e8867753e0e4a1d82d90b7455e7383f352a6521"
+ version "2.2.0-M03"
end
def install
@@ -22,6 +29,16 @@ class Neo4j < Formula
# Symlink binaries
bin.install_symlink Dir["#{libexec}/bin/neo4j{,-shell}"]
+ bin.install_symlink libexec/"bin/neo4j-import" if build.devel?
+
+ # 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.1-SNAPSHOT.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"