From 3aa0f2ef95d04aafa0ab5a6ae0328e1e00efcc9c Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 20 Jun 2021 23:14:08 +0200 Subject: java-osgi.eclass: [QA] add EAPI guard Signed-off-by: Sam James Signed-off-by: David Seifert --- eclass/java-osgi.eclass | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'eclass/java-osgi.eclass') 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 # @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 -- cgit v1.2.3