cdrom.eclass: add EAPI guard

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-06-21 06:40:49 +01:00
parent 1f99a6cd27
commit fbf6afc71c

View File

@@ -4,6 +4,7 @@
# @ECLASS: cdrom.eclass
# @MAINTAINER:
# games@gentoo.org
# @SUPPORTED_EAPIS: 6 7
# @BLURB: Functions for CD-ROM handling
# @DESCRIPTION:
# Acquire CD(s) for those lovely CD-based emerges. Yes, this violates
@@ -14,6 +15,11 @@
# eclass will require RESTRICT="bindist" but the point still stands.
# The functions are generally called in src_unpack.
case ${EAPI:-0} in
[67]) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_CDROM_ECLASS} ]]; then
_CDROM_ECLASS=1