systemd.eclass: set BDEPEND for EAPI 7
authorMike Gilbert <floppym@gentoo.org>
Mon, 6 Aug 2018 18:07:32 +0000 (14:07 -0400)
committerMike Gilbert <floppym@gentoo.org>
Thu, 9 Aug 2018 17:44:35 +0000 (13:44 -0400)
eclass/systemd.eclass

index 72f4845efc4595d11da0fe90508f99ba1bde73ea..a870624014b195e7e5b03f13f7b2562d63c6675f 100644 (file)
 inherit toolchain-funcs
 
 case ${EAPI:-0} in
-       0|1|2|3|4|5|6) ;;
+       0|1|2|3|4|5|6|7) ;;
        *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established."
 esac
 
-DEPEND="virtual/pkgconfig"
+if [[ ${EAPI:-0} == [0123456] ]]; then
+       DEPEND="virtual/pkgconfig"
+else
+       BDEPEND="virtual/pkgconfig"
+fi
 
 # @FUNCTION: _systemd_get_dir
 # @USAGE: <variable-name> <fallback-directory>