Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 21 Jun 2021 05:41:23
Message-Id: 1624254049.fbf6afc71c4eaa29bee3862dbe8dd19dbf23ef71.sam@gentoo
1 commit: fbf6afc71c4eaa29bee3862dbe8dd19dbf23ef71
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 21 05:40:49 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 21 05:40:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbf6afc7
7
8 cdrom.eclass: add EAPI guard
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 eclass/cdrom.eclass | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15 diff --git a/eclass/cdrom.eclass b/eclass/cdrom.eclass
16 index 623a19867d4..9dca3f63bc1 100644
17 --- a/eclass/cdrom.eclass
18 +++ b/eclass/cdrom.eclass
19 @@ -4,6 +4,7 @@
20 # @ECLASS: cdrom.eclass
21 # @MAINTAINER:
22 # games@g.o
23 +# @SUPPORTED_EAPIS: 6 7
24 # @BLURB: Functions for CD-ROM handling
25 # @DESCRIPTION:
26 # Acquire CD(s) for those lovely CD-based emerges. Yes, this violates
27 @@ -14,6 +15,11 @@
28 # eclass will require RESTRICT="bindist" but the point still stands.
29 # The functions are generally called in src_unpack.
30
31 +case ${EAPI:-0} in
32 + [67]) ;;
33 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
34 +esac
35 +
36 if [[ -z ${_CDROM_ECLASS} ]]; then
37 _CDROM_ECLASS=1