summaryrefslogtreecommitdiff
path: root/eclass/java-virtuals-2.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-21 17:32:00 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-21 17:32:00 +0100
commit61f10f985e19dfe20a4d9552902625edd5b6eabb (patch)
tree50db31971b38c4e0358253ef5005058a46fc773e /eclass/java-virtuals-2.eclass
parent34dea8e38f88007799629d0a56b12dec480b1d21 (diff)
gentoo resync : 21.06.2021
Diffstat (limited to 'eclass/java-virtuals-2.eclass')
-rw-r--r--eclass/java-virtuals-2.eclass17
1 files changed, 14 insertions, 3 deletions
diff --git a/eclass/java-virtuals-2.eclass b/eclass/java-virtuals-2.eclass
index 987ff448364e..27ed9157da5b 100644
--- a/eclass/java-virtuals-2.eclass
+++ b/eclass/java-virtuals-2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: java-virtuals-2.eclass
@@ -6,11 +6,22 @@
# java@gentoo.org
# @AUTHOR:
# Original Author: Alistair John Bush <ali_bush@gentoo.org>
+# @SUPPORTED_EAPIS: 5 6
# @BLURB: Java virtuals eclass
# @DESCRIPTION:
# To provide a default (and only) src_install function for ebuilds in the
# java-virtuals category.
+case ${EAPI:-0} in
+ [56]) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
+EXPORT_FUNCTIONS src_install
+
+if [[ -z ${_JAVA_VIRTUALS_2_ECLASS} ]] ; then
+_JAVA_VIRTUALS_2_ECLASS=1
+
inherit java-utils-2
DEPEND=">=dev-java/java-config-2.2.0-r3"
@@ -18,8 +29,6 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}"
-EXPORT_FUNCTIONS src_install
-
# @FUNCTION: java-virtuals-2_src_install
# @DESCRIPTION:
# default src_install
@@ -52,3 +61,5 @@ java-virtuals-2_do_write() {
echo "MULTI_PROVIDER=\"${JAVA_VIRTUAL_MULTI=FALSE}\""
} > "${JAVA_PKG_VIRTUAL_PROVIDER}"
}
+
+fi