From 61f10f985e19dfe20a4d9552902625edd5b6eabb Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 21 Jun 2021 17:32:00 +0100 Subject: gentoo resync : 21.06.2021 --- eclass/rpm.eclass | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'eclass/rpm.eclass') diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass index d27f0a386c7f..351d7974877e 100644 --- a/eclass/rpm.eclass +++ b/eclass/rpm.eclass @@ -1,12 +1,23 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: rpm.eclass # @MAINTAINER: # base-system@gentoo.org +# @SUPPORTED_EAPIS: 5 6 7 # @BLURB: convenience class for extracting RPMs -inherit estack eutils +case ${EAPI:-0} in + [567]) inherit eutils ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +EXPORT_FUNCTIONS src_unpack + +if [[ -z ${_RPM_ECLASS} ]] ; then +_RPM_ECLASS=1 + +inherit estack case "${EAPI:-0}" in [0-6]) DEPEND=">=app-arch/rpm2targz-9.0.0.3g" ;; @@ -126,4 +137,4 @@ rpm_spec_epatch() { eend } -EXPORT_FUNCTIONS src_unpack +fi -- cgit v1.2.3