mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
java-virtuals-2.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -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
|
||||
@@ -7,10 +7,21 @@
|
||||
# @AUTHOR:
|
||||
# Original Author: Alistair John Bush <ali_bush@gentoo.org>
|
||||
# @BLURB: Java virtuals eclass
|
||||
# @SUPPORTED_EAPIS: 5 6
|
||||
# @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
|
||||
|
||||
Reference in New Issue
Block a user