diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-09-07 09:45:30 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-09-19 13:04:48 +0200 |
commit | 63183912631f6741a157c59629aa8bb700fb8874 (patch) | |
tree | 71adccc7aacfe913290955068b260c0a90ebde8c /eclass/java-pkg-simple.eclass | |
parent | sec-keys/openpgp-keys-apache-xalan-j: new package, add 20221029 (diff) | |
download | gentoo-63183912631f6741a157c59629aa8bb700fb8874.tar.gz gentoo-63183912631f6741a157c59629aa8bb700fb8874.tar.bz2 gentoo-63183912631f6741a157c59629aa8bb700fb8874.zip |
java-pkg-simple.eclass: respect SLOT="0" in JAVA_LAUNCHER_FILENAME
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'eclass/java-pkg-simple.eclass')
-rw-r--r-- | eclass/java-pkg-simple.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass index 77038c708256..14650ea7e8d3 100644 --- a/eclass/java-pkg-simple.eclass +++ b/eclass/java-pkg-simple.eclass @@ -162,7 +162,11 @@ fi # If ${JAVA_MAIN_CLASS} is set, we will create a launcher to # execute the jar, and ${JAVA_LAUNCHER_FILENAME} will be the # name of the script. -: "${JAVA_LAUNCHER_FILENAME:=${PN}-${SLOT}}" +if [[ ${SLOT} = 0 ]]; then + : "${JAVA_LAUNCHER_FILENAME:=${PN}}" +else + : "${JAVA_LAUNCHER_FILENAME:=${PN}-${SLOT}}" +fi # @ECLASS_VARIABLE: JAVA_TESTING_FRAMEWORKS # @DEFAULT_UNSET |