gnome.org.eclass: BDEPEND for xz-utils with EAPI-7
authorMart Raudsepp <leio@gentoo.org>
Sun, 10 Feb 2019 20:59:47 +0000 (22:59 +0200)
committerMart Raudsepp <leio@gentoo.org>
Mon, 11 Feb 2019 17:14:31 +0000 (19:14 +0200)
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
eclass/gnome.org.eclass

index 421389f32e6d0d19810407b0f3f3b9b3914bc35f..fd6077e4594cf3ffa280c2f2388372fc0ff64517 100644 (file)
@@ -29,7 +29,11 @@ fi
 # Even though xz-utils are in @system, they must still be added to DEPEND; see
 # https://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
 if [[ ${GNOME_TARBALL_SUFFIX} == "xz" ]]; then
-       DEPEND="${DEPEND} app-arch/xz-utils"
+       if [[ ${EAPI:-0} != [0123456] ]]; then
+               BDEPEND="app-arch/xz-utils"
+       else
+               DEPEND="app-arch/xz-utils"
+       fi
 fi
 
 # @ECLASS-VARIABLE: GNOME_ORG_MODULE