summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:15:10 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:15:10 +0200
commit9e239e29fac8f36d5b015f14f7475464eadb12d4 (patch)
treee1213dfa6fe174d8d1293264946d2b6f96580b33 /eclass/preserve-libs.eclass
parentprefix.eclass: [QA] add EAPI guard (diff)
downloadgentoo-9e239e29fac8f36d5b015f14f7475464eadb12d4.tar.gz
gentoo-9e239e29fac8f36d5b015f14f7475464eadb12d4.tar.bz2
gentoo-9e239e29fac8f36d5b015f14f7475464eadb12d4.zip
preserve-libs.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/preserve-libs.eclass')
-rw-r--r--eclass/preserve-libs.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/preserve-libs.eclass b/eclass/preserve-libs.eclass
index 548c6411fcf..8b2daf3e7f2 100644
--- a/eclass/preserve-libs.eclass
+++ b/eclass/preserve-libs.eclass
@@ -1,10 +1,16 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: preserve-libs.eclass
# @MAINTAINER:
# base-system@gentoo.org
# @BLURB: preserve libraries after SONAME changes
+# @SUPPORTED_EAPIS: 5 6 7
+
+case ${EAPI:-0} in
+ [567]) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then
_PRESERVE_LIBS_ECLASS=1