fcaps.eclass: use BDEPEND for EAPI 7
authorDavid Michael <fedora.dm0@gmail.com>
Fri, 13 Mar 2020 19:21:47 +0000 (15:21 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 15 Mar 2020 18:45:57 +0000 (14:45 -0400)
The eclass installs libcap to execute the setcap program, so it
must be installed in /.  Optional libcap linking is handled by the
USE=caps flag, which is unrelated to this eclass, so the DEPEND
declaration is not needed on EAPI 7.

Closes: https://bugs.gentoo.org/700018
Signed-off-by: David Michael <fedora.dm0@gmail.com>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/fcaps.eclass

index 467f955f5e9af5ee36479982fca7e05ab6196f88..2b6e5be4683d7bc3793ba777871d91972b5fb3be 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: fcaps.eclass
@@ -34,7 +34,10 @@ _FCAPS_ECLASS=1
 IUSE="+filecaps"
 
 # We can't use libcap-ng atm due to #471414.
-DEPEND="filecaps? ( sys-libs/libcap )"
+case "${EAPI:-0}" in
+       [0-6]) DEPEND="filecaps? ( sys-libs/libcap )" ;;
+       *) BDEPEND="filecaps? ( sys-libs/libcap )" ;;
+esac
 
 # @ECLASS-VARIABLE: FILECAPS
 # @DEFAULT_UNSET