diff options
Diffstat (limited to 'databases/neo4j/files/patch-bin_cypher-shell')
-rw-r--r-- | databases/neo4j/files/patch-bin_cypher-shell | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/databases/neo4j/files/patch-bin_cypher-shell b/databases/neo4j/files/patch-bin_cypher-shell index 5bddc5b4d441..f68f5191ac8c 100644 --- a/databases/neo4j/files/patch-bin_cypher-shell +++ b/databases/neo4j/files/patch-bin_cypher-shell @@ -1,34 +1,30 @@ ---- bin/cypher-shell.orig 2018-02-07 19:48:06 UTC +--- bin/cypher-shell.orig 2021-04-13 07:34:22 UTC +++ bin/cypher-shell -@@ -41,7 +41,9 @@ _find_java_cmd() { +@@ -42,6 +42,8 @@ _find_java_cmd() { detect_os() { if uname -s | grep -q Darwin; then DIST_OS="macosx" -- elif [[ -e /etc/gentoo-release ]]; then + elif uname -s | grep -q FreeBSD; then + DIST_OS="freebsd" -+ elif [[ -e /etc/gentoo-release ]]; then + elif [[ -e /etc/gentoo-release ]]; then DIST_OS="gentoo" else - DIST_OS="other" -@@ -52,7 +54,10 @@ _find_java_home() { +@@ -53,6 +55,9 @@ _find_java_home() { [[ "${JAVA_HOME:-}" ]] && return - + case "${DIST_OS}" in -- "macosx") + "freebsd") + JAVA_HOME="%%JAVA_HOME%%" + ;; -+ "macosx") + "macosx") JAVA_HOME="$(/usr/libexec/java_home -v 1.8)" ;; - "gentoo") -@@ -72,7 +77,7 @@ build_classpath() { - +@@ -73,7 +78,7 @@ build_classpath() { + # Then try installation directory (prefix/bin and prefix/share/cypher-shell/lib) if [[ -z "${JARPATH}" ]]; then - APP_HOME="${APP_HOME}/../share/cypher-shell" -+ APP_HOME="${APP_HOME}/../neo4j/lib" - JARPATH="$(find "${APP_HOME}" -name "cypher-shell-all.jar" )" ++ APP_HOME="${APP_HOME}/../neo4j" + JARPATH="$(find "${APP_HOME}" -name "cypher-shell.jar" )" fi } |