diff options
author | Harald Judt <h.judt@gmx.at> | 2020-06-02 21:07:51 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-07-29 10:29:34 +0300 |
commit | 973f85b4c8d1e415d8551485fc81b9f8fdea6896 (patch) | |
tree | f7d3086eb1ed4ea80bf12ff499dfc3890e55efa2 /media-tv/tvbrowser-bin/files | |
parent | profiles/package.mask: add sci-biology/bowtie (diff) | |
download | gentoo-973f85b4c8d1e415d8551485fc81b9f8fdea6896.tar.gz gentoo-973f85b4c8d1e415d8551485fc81b9f8fdea6896.tar.bz2 gentoo-973f85b4c8d1e415d8551485fc81b9f8fdea6896.zip |
media-tv/tvbrowser-bin: Bump version to 4.2.1 (bug #696754)
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Harald Judt <h.judt@gmx.at>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-tv/tvbrowser-bin/files')
-rw-r--r-- | media-tv/tvbrowser-bin/files/tvbrowser | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/media-tv/tvbrowser-bin/files/tvbrowser b/media-tv/tvbrowser-bin/files/tvbrowser new file mode 100644 index 000000000000..5222bd3b8147 --- /dev/null +++ b/media-tv/tvbrowser-bin/files/tvbrowser @@ -0,0 +1,28 @@ +#!/bin/bash + +# These variables are induced by the ebuild during the build process +P= +JAVA_SLOT= + +POSSIBLE_JAVA_PROGRAM_DIRS=( + /usr/lib*/openjdk-${JAVA_SLOT} + /opt/openjdk-bin-${JAVA_SLOT} + /opt/openjdk-jre-bin-${JAVA_SLOT} +) + +for POSSIBLE_DIR in ${POSSIBLE_JAVA_PROGRAM_DIRS[@]}; do + if [[ -x ${POSSIBLE_DIR}/bin/java ]]; then + export JAVA_PROGRAM_DIR="${POSSIBLE_DIR}/bin/" + break + fi +done + +if [ -z "$JAVA_PROGRAM_DIR" ]; then + echo "Could not find a suitable Java ${JAVA_SLOT} installation!" + exit 1 +fi + +cd "/opt/${P}" +echo ${JAVA_PROGRAM_DIR}java -Xms16m -Xmx1G --module-path="lib:tvbrowser.jar" -Djava.library.path="./" -splash:imgs/splash.png -Dpropertiesfile=linux.properties -m tvbrowser/tvbrowser.TVBrowser "$@" +${JAVA_PROGRAM_DIR}java -Xms16m -Xmx1G --module-path="lib:tvbrowser.jar" -Djava.library.path="./" -splash:imgs/splash.png -Dpropertiesfile=linux.properties -m tvbrowser/tvbrowser.TVBrowser "$@" + |