mirror of
https://git.freebsd.org/ports.git
synced 2025-06-17 18:50:33 -04:00
- Fix run error of cypher-shell PR: 255103 Reported by: wen@ Approved by: maintainer(timeout, > 3 months)
30 lines
873 B
Text
30 lines
873 B
Text
--- bin/cypher-shell.orig 2021-04-13 07:34:22 UTC
|
|
+++ bin/cypher-shell
|
|
@@ -42,6 +42,8 @@ _find_java_cmd() {
|
|
detect_os() {
|
|
if uname -s | grep -q Darwin; then
|
|
DIST_OS="macosx"
|
|
+ elif uname -s | grep -q FreeBSD; then
|
|
+ DIST_OS="freebsd"
|
|
elif [[ -e /etc/gentoo-release ]]; then
|
|
DIST_OS="gentoo"
|
|
else
|
|
@@ -53,6 +55,9 @@ _find_java_home() {
|
|
[[ "${JAVA_HOME:-}" ]] && return
|
|
|
|
case "${DIST_OS}" in
|
|
+ "freebsd")
|
|
+ JAVA_HOME="%%JAVA_HOME%%"
|
|
+ ;;
|
|
"macosx")
|
|
JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
|
|
;;
|
|
@@ -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"
|
|
JARPATH="$(find "${APP_HOME}" -name "cypher-shell.jar" )"
|
|
fi
|
|
}
|