mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-08 17:21:39 +01:00
eclass/java-pkg-opt-2: Sync with Gentoo
It's from Gentoo commit 52cc2a46f4baf95b8fb4a17ac80a5ac976229cbe. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
6ae0791191
commit
0ecbe95a4a
@ -6,21 +6,21 @@
|
||||
# java@gentoo.org
|
||||
# @AUTHOR:
|
||||
# Thomas Matthijs <axxo@gentoo.org>
|
||||
# @SUPPORTED_EAPIS: 8
|
||||
# @SUPPORTED_EAPIS: 8 9
|
||||
# @PROVIDES: java-utils-2
|
||||
# @BLURB: Eclass for package with optional Java support
|
||||
# @DESCRIPTION:
|
||||
# Inherit this eclass instead of java-pkg-2 if you only need optional Java
|
||||
# support.
|
||||
|
||||
case ${EAPI} in
|
||||
8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ -z ${_JAVA_PKG_OPT_2_ECLASS} ]] ; then
|
||||
_JAVA_PKG_OPT_2_ECLASS=1
|
||||
|
||||
case ${EAPI} in
|
||||
8|9) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
inherit java-utils-2
|
||||
|
||||
# @ECLASS_VARIABLE: JAVA_PKG_OPT_USE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user