1 |
commit: a6503185001adad02f1adea45f4f021f8c4ac452 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 1 01:57:29 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 1 21:17:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6503185 |
7 |
|
8 |
app-admin/yadm: use python-any-r1 API for tests |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-admin/yadm/yadm-2.4.0.ebuild | 19 +++++++++++++++---- |
13 |
1 file changed, 15 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/yadm/yadm-2.4.0.ebuild b/app-admin/yadm/yadm-2.4.0.ebuild |
16 |
index 10da88e012a..b056f1e5a96 100644 |
17 |
--- a/app-admin/yadm/yadm-2.4.0.ebuild |
18 |
+++ b/app-admin/yadm/yadm-2.4.0.ebuild |
19 |
@@ -1,9 +1,10 @@ |
20 |
-# Copyright 1999-2020 Gentoo Authors |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
-inherit bash-completion-r1 |
27 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
28 |
+inherit bash-completion-r1 python-any-r1 |
29 |
|
30 |
DESCRIPTION="A dotfile manager for the config files in your home folder" |
31 |
HOMEPAGE="https://github.com/TheLocehiliosan/yadm/" |
32 |
@@ -21,13 +22,23 @@ RDEPEND=" |
33 |
dev-vcs/git |
34 |
" |
35 |
|
36 |
-DEPEND=" |
37 |
- test? ( ${RDEPEND} |
38 |
+BDEPEND=" |
39 |
+ test? ( |
40 |
+ ${RDEPEND} |
41 |
+ ${PYTHON_DEPS} |
42 |
dev-python/pytest |
43 |
dev-tcltk/expect |
44 |
) |
45 |
" |
46 |
|
47 |
+python_check_deps() { |
48 |
+ has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" |
49 |
+} |
50 |
+ |
51 |
+pkg_setup() { |
52 |
+ use test && python-any-r1_pkg_setup |
53 |
+} |
54 |
+ |
55 |
src_compile() { |
56 |
emake "${PN}.md" |
57 |
} |