public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] systemd.eclass: set BDEPEND for EAPI 7
@ 2018-08-06 18:09 Mike Gilbert
  2018-08-06 19:13 ` Ulrich Mueller
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Gilbert @ 2018-08-06 18:09 UTC (permalink / raw
  To: gentoo-dev

---
 eclass/systemd.eclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 72f4845efc45..b822f54f8d06 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -26,11 +26,15 @@
 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} == [0123456] ]]; then
+	DEPEND="virtual/pkgconfig"
+else
+	BDEPEND="virtual/pkgconfig"
+fi
 
 # @FUNCTION: _systemd_get_dir
 # @USAGE: <variable-name> <fallback-directory>
-- 
2.18.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-08-09 12:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-06 18:09 [gentoo-dev] [PATCH] systemd.eclass: set BDEPEND for EAPI 7 Mike Gilbert
2018-08-06 19:13 ` Ulrich Mueller
2018-08-06 19:35   ` Vadim A. Misbakh-Soloviov
2018-08-06 19:51     ` Mike Gilbert
2018-08-06 20:09       ` Alec Warner
2018-08-06 20:23         ` Toralf Förster
2018-08-09 12:22           ` Michael Orlitzky
2018-08-06 19:51     ` Ulrich Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox