1 |
commit: 48c530e0a8b9bdb84ed1e1871a934dbef2d71183 |
2 |
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 29 08:25:47 2019 +0000 |
4 |
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 3 08:24:37 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48c530e0 |
7 |
|
8 |
darcs.eclass: use BDEPEND with EAPI >= 7 |
9 |
|
10 |
Signed-off-by: Michael Haubenwallner <haubi <AT> gentoo.org> |
11 |
|
12 |
eclass/darcs.eclass | 12 ++++++++++-- |
13 |
1 file changed, 10 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass |
16 |
index 489008a87f1..09b71882367 100644 |
17 |
--- a/eclass/darcs.eclass |
18 |
+++ b/eclass/darcs.eclass |
19 |
@@ -85,8 +85,16 @@ SRC_URI="" |
20 |
|
21 |
# --- end ebuild-configurable settings --- |
22 |
|
23 |
-DEPEND="dev-vcs/darcs |
24 |
- net-misc/rsync" |
25 |
+case ${EAPI:-0} in |
26 |
+ [0-6]) # no need to care about 5-HDEPEND and similar |
27 |
+ DEPEND="dev-vcs/darcs |
28 |
+ net-misc/rsync" |
29 |
+ ;; |
30 |
+ *) |
31 |
+ BDEPEND="dev-vcs/darcs |
32 |
+ net-misc/rsync" |
33 |
+ ;; |
34 |
+esac |
35 |
|
36 |
# @FUNCTION: darcs_patchcount |
37 |
# @DESCRIPTION: |