Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] systemd.eclass: set BDEPEND for EAPI 7
Date: Mon, 06 Aug 2018 18:09:58
Message-Id: 20180806180946.6575-1-floppym@gentoo.org
1 ---
2 eclass/systemd.eclass | 8 ++++++--
3 1 file changed, 6 insertions(+), 2 deletions(-)
4
5 diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
6 index 72f4845efc45..b822f54f8d06 100644
7 --- a/eclass/systemd.eclass
8 +++ b/eclass/systemd.eclass
9 @@ -26,11 +26,15 @@
10 inherit toolchain-funcs
11
12 case ${EAPI:-0} in
13 - 0|1|2|3|4|5|6) ;;
14 + 0|1|2|3|4|5|6|7) ;;
15 *) die "${ECLASS}.eclass API in EAPI ${EAPI} not yet established."
16 esac
17
18 -DEPEND="virtual/pkgconfig"
19 +if [[ ${EAPI} == [0123456] ]]; then
20 + DEPEND="virtual/pkgconfig"
21 +else
22 + BDEPEND="virtual/pkgconfig"
23 +fi
24
25 # @FUNCTION: _systemd_get_dir
26 # @USAGE: <variable-name> <fallback-directory>
27 --
28 2.18.0

Replies

Subject Author
Re: [gentoo-dev] [PATCH] systemd.eclass: set BDEPEND for EAPI 7 Ulrich Mueller <ulm@g.o>