diff options
author | Sam James <sam@gentoo.org> | 2021-06-20 23:14:08 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-20 23:14:08 +0200 |
commit | 3aa0f2ef95d04aafa0ab5a6ae0328e1e00efcc9c (patch) | |
tree | ee4b10f0399b56f8e44d7cfcca4c385b676cfc54 /eclass/java-osgi.eclass | |
parent | java-ant-2.eclass: [QA] add EAPI guard (diff) | |
download | gentoo-3aa0f2ef95d04aafa0ab5a6ae0328e1e00efcc9c.tar.gz gentoo-3aa0f2ef95d04aafa0ab5a6ae0328e1e00efcc9c.tar.bz2 gentoo-3aa0f2ef95d04aafa0ab5a6ae0328e1e00efcc9c.zip |
java-osgi.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/java-osgi.eclass')
-rw-r--r-- | eclass/java-osgi.eclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/java-osgi.eclass b/eclass/java-osgi.eclass index f9a77b8490fa..69f8f90d0ae3 100644 --- a/eclass/java-osgi.eclass +++ b/eclass/java-osgi.eclass @@ -7,12 +7,21 @@ # @AUTHOR: # Java maintainers <java@gentoo.org> # @BLURB: Java OSGi eclass +# @SUPPORTED_EAPIS: 5 6 7 # @DESCRIPTION: # This eclass provides functionality which is used by packages that need to be # OSGi compliant. This means that the generated jars will have special headers # in their manifests. Currently this is used only by Eclipse-3.3 - later we # could extend this so that Gentoo Java system would be fully OSGi compliant. +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +if [[ -z ${_JAVA_OSGI_ECLASS} ]] ; then +_JAVA_OSGI_ECLASS=1 + inherit java-utils-2 # @ECLASS-VARIABLE: _OSGI_T @@ -275,3 +284,5 @@ java-osgi_dojar-fromfile() { _java-osgi_makejar-fromfile "$@" "${versionRewriting}" java-pkg_dojar "${_OSGI_T}/osgi/${jarName}" } + +fi |