1 |
commit: a7aa790649741a0035f60cabf69ce57fa13adec7 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 13 21:55:18 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 13 21:55:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7aa7906 |
7 |
|
8 |
dev-util/uncrustify: fix Python dependency |
9 |
|
10 |
Closes: https://bugs.gentoo.org/801886 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-util/uncrustify/uncrustify-0.71.0.ebuild | 6 +++++- |
14 |
dev-util/uncrustify/uncrustify-0.72.0.ebuild | 6 +++++- |
15 |
dev-util/uncrustify/uncrustify-9999.ebuild | 6 +++++- |
16 |
3 files changed, 15 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/uncrustify/uncrustify-0.71.0.ebuild b/dev-util/uncrustify/uncrustify-0.71.0.ebuild |
19 |
index 2e266f8783d..5bd13fa5466 100644 |
20 |
--- a/dev-util/uncrustify/uncrustify-0.71.0.ebuild |
21 |
+++ b/dev-util/uncrustify/uncrustify-0.71.0.ebuild |
22 |
@@ -26,4 +26,8 @@ SLOT="0" |
23 |
IUSE="test" |
24 |
RESTRICT="!test? ( test )" |
25 |
|
26 |
-DEPEND="test? ( ${PYTHON_DEPS} )" |
27 |
+BDEPEND="test? ( ${PYTHON_DEPS} )" |
28 |
+ |
29 |
+pkg_setup() { |
30 |
+ use test && python-any-r1_pkg_setup |
31 |
+} |
32 |
|
33 |
diff --git a/dev-util/uncrustify/uncrustify-0.72.0.ebuild b/dev-util/uncrustify/uncrustify-0.72.0.ebuild |
34 |
index 573dbcd833d..9e76b92aa67 100644 |
35 |
--- a/dev-util/uncrustify/uncrustify-0.72.0.ebuild |
36 |
+++ b/dev-util/uncrustify/uncrustify-0.72.0.ebuild |
37 |
@@ -24,4 +24,8 @@ SLOT="0" |
38 |
IUSE="test" |
39 |
RESTRICT="!test? ( test )" |
40 |
|
41 |
-DEPEND="test? ( ${PYTHON_DEPS} )" |
42 |
+BDEPEND="test? ( ${PYTHON_DEPS} )" |
43 |
+ |
44 |
+pkg_setup() { |
45 |
+ use test && python-any-r1_pkg_setup |
46 |
+} |
47 |
|
48 |
diff --git a/dev-util/uncrustify/uncrustify-9999.ebuild b/dev-util/uncrustify/uncrustify-9999.ebuild |
49 |
index 8f51f156ef9..d078b64fab3 100644 |
50 |
--- a/dev-util/uncrustify/uncrustify-9999.ebuild |
51 |
+++ b/dev-util/uncrustify/uncrustify-9999.ebuild |
52 |
@@ -26,4 +26,8 @@ SLOT="0" |
53 |
IUSE="test" |
54 |
RESTRICT="!test? ( test )" |
55 |
|
56 |
-DEPEND="test? ( ${PYTHON_DEPS} )" |
57 |
+BDEPEND="test? ( ${PYTHON_DEPS} )" |
58 |
+ |
59 |
+pkg_setup() { |
60 |
+ use test && python-any-r1_pkg_setup |
61 |
+} |