rpm.eclass: use BDEPEND for EAPI 7
authorDavid Michael <fedora.dm0@gmail.com>
Mon, 20 Apr 2020 14:25:01 +0000 (16:25 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 20 Apr 2020 14:27:33 +0000 (16:27 +0200)
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>
eclass/rpm.eclass

index 3a29c7e9f765028f654adfdd3f3112932c0b0dfa..d27f0a386c7f0f79c06a955885794063ac7057a2 100644 (file)
@@ -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>