diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-07-04 12:07:49 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-07-06 09:03:18 +0200 |
commit | 4457e74e96d2e956b1b76856b2b238cd356c8312 (patch) | |
tree | d5253c2dea294cf4cc9b6bac902b1d721b339cdc /eclass/java-pkg-simple.eclass | |
parent | media-libs/openjpeg: Stabilize 2.5.0-r2 hppa, #856304 (diff) | |
download | gentoo-4457e74e96d2e956b1b76856b2b238cd356c8312.tar.gz gentoo-4457e74e96d2e956b1b76856b2b238cd356c8312.tar.bz2 gentoo-4457e74e96d2e956b1b76856b2b238cd356c8312.zip |
java-pkg-simple.eclass: invoke einstalldocs
On EAPI 6, or newer, invoke einstalldocs in
java-pkg-simple_src_install.
Closes: https://bugs.gentoo.org/789582
Closes: https://github.com/gentoo/gentoo/pull/26216
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'eclass/java-pkg-simple.eclass')
-rw-r--r-- | eclass/java-pkg-simple.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass index 47499c7870a9..1e101a828c40 100644 --- a/eclass/java-pkg-simple.eclass +++ b/eclass/java-pkg-simple.eclass @@ -424,7 +424,7 @@ java-pkg-simple_src_compile() { # @DESCRIPTION: # src_install for simple single jar java packages. Simply installs # ${JAVA_JAR_FILENAME}. It will also install a launcher if -# ${JAVA_MAIN_CLASS} is set. +# ${JAVA_MAIN_CLASS} is set. Also invokes einstalldocs. java-pkg-simple_src_install() { local sources=sources.lst classes=target/classes apidoc=target/api @@ -455,6 +455,12 @@ java-pkg-simple_src_install() { fi java-pkg_dosrc ${srcdirs} fi + + if [[ ${EAPI} == 5 ]]; then + # einstalldocs is only available on EAPI >= 6. + return + fi + einstalldocs } # @FUNCTION: java-pkg-simple_src_test |