diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2019-07-06 13:13:03 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-07-08 09:28:39 +0200 |
commit | f8a5035a5db3f5d9e29bb5e2217e78d1eb081159 (patch) | |
tree | 88308b0eb5ebfd1d4b706cc6e2b5df19538c67d1 /app-office/moneydance/files | |
parent | app-backup/dar: Removed old. (diff) | |
download | gentoo-f8a5035a5db3f5d9e29bb5e2217e78d1eb081159.tar.gz gentoo-f8a5035a5db3f5d9e29bb5e2217e78d1eb081159.tar.bz2 gentoo-f8a5035a5db3f5d9e29bb5e2217e78d1eb081159.zip |
app-office/moneydance: bump to version 2019.3
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-office/moneydance/files')
-rw-r--r-- | app-office/moneydance/files/moneydance-bin | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-office/moneydance/files/moneydance-bin b/app-office/moneydance/files/moneydance-bin new file mode 100644 index 000000000000..1e8089e99bf0 --- /dev/null +++ b/app-office/moneydance/files/moneydance-bin @@ -0,0 +1,25 @@ +#!/bin/sh + +# Options +JAVA_OPTS="-client -Dawt.useSystemAAFontSettings=gasp -Dawt.useSystemAAFontSettings=on -Xmx2048m" +MONEYDANCE_LIBS="/usr/share/moneydance/lib" + +# Choose JAVA +set -- /opt/openjdk-bin-11.* /usr/lib*/openjdk-11 +while ! [ -d "${1}" ]; do + if [ ${#} -eq 1 ]; then + echo "Error: No JAVA 11 runtime found!" + exit 1 + fi + + shift +done +JAVA_HOME="${1}" + +# Set CLASSPATH +for MONEYDANCE_JAR in ${MONEYDANCE_LIBS}/*.jar; do + CLASSPATH=${CLASSPATH}:${MONEYDANCE_JAR} +done + +# Launch Moneydance +"${JAVA_HOME}"/bin/java -cp "${CLASSPATH}" ${JAVA_OPTS} Moneydance |