summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavid Michael <fedora.dm0@gmail.com>2020-04-20 16:25:01 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-04-20 16:27:33 +0200
commit606c745e611c216df15568bc8655e2781dc11095 (patch)
tree36d6a383d7a7d1984bb90a56a885353d0aa39212 /eclass
parentdev-texlive/texlive-basic: remove tl-scripts.doc (diff)
downloadgentoo-606c745e611c216df15568bc8655e2781dc11095.tar.gz
gentoo-606c745e611c216df15568bc8655e2781dc11095.tar.bz2
gentoo-606c745e611c216df15568bc8655e2781dc11095.zip
rpm.eclass: use BDEPEND for EAPI 7
The build system's rpm2tar command is executed during unpack, so it must be install in /. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/rpm.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass
index 3a29c7e9f765..d27f0a386c7f 100644
--- a/eclass/rpm.eclass
+++ b/eclass/rpm.eclass
@@ -8,7 +8,10 @@
inherit estack eutils
-DEPEND=">=app-arch/rpm2targz-9.0.0.3g"
+case "${EAPI:-0}" in
+ [0-6]) DEPEND=">=app-arch/rpm2targz-9.0.0.3g" ;;
+ *) BDEPEND=">=app-arch/rpm2targz-9.0.0.3g" ;;
+esac
# @FUNCTION: rpm_unpack
# @USAGE: <rpms>