diff options
author | Sam James <sam@gentoo.org> | 2021-06-20 23:14:17 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-20 23:14:17 +0200 |
commit | 7237db882e59a586b11246877514183c87755b19 (patch) | |
tree | d2e4c19ad7ea397a9b3b697d35dd6faee4de5d8d /eclass | |
parent | java-pkg-opt-2.eclass: [QA] add EAPI guard (diff) | |
download | gentoo-7237db882e59a586b11246877514183c87755b19.tar.gz gentoo-7237db882e59a586b11246877514183c87755b19.tar.bz2 gentoo-7237db882e59a586b11246877514183c87755b19.zip |
java-pkg-simple.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-pkg-simple.eclass | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass index ca03fea78cf4..afd2f92f5332 100644 --- a/eclass/java-pkg-simple.eclass +++ b/eclass/java-pkg-simple.eclass @@ -7,6 +7,7 @@ # @AUTHOR: # Java maintainers <java@gentoo.org> # @BLURB: Eclass for packaging Java software with ease. +# @SUPPORTED_EAPIS: 5 6 7 # @DESCRIPTION: # This class is intended to build pure Java packages from Java sources # without the use of any build instructions shipped with the sources. @@ -15,14 +16,22 @@ # addressed by an ebuild by putting corresponding files into the target # directory before calling the src_compile function of this eclass. +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +EXPORT_FUNCTIONS src_compile src_install src_test + +if [[ -z ${_JAVA_PKG_SIMPLE_ECLASS} ]] ; then +_JAVA_PKG_SIMPLE_ECLASS=1 + inherit java-utils-2 if ! has java-pkg-2 ${INHERITED}; then eerror "java-pkg-simple eclass can only be inherited AFTER java-pkg-2" fi -EXPORT_FUNCTIONS src_compile src_install src_test - # We are only interested in finding all java source files, wherever they may be. S="${WORKDIR}" @@ -479,3 +488,5 @@ java-pkg-simple_src_test() { esac done } + +fi |