1 |
commit: c7674f582a58a36c163aa5c9e5e8d1a4a8733089 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 28 09:20:29 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 28 09:30:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7674f58 |
7 |
|
8 |
app-shells/bash-completion: Tests now require python3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-shells/bash-completion/bash-completion-9999.ebuild | 14 ++++++++++++-- |
13 |
1 file changed, 12 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild |
16 |
index 79ee3e0ac0a..237e817330a 100644 |
17 |
--- a/app-shells/bash-completion/bash-completion-9999.ebuild |
18 |
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild |
19 |
@@ -4,11 +4,12 @@ |
20 |
EAPI=6 |
21 |
|
22 |
BASHCOMP_P=bashcomp-2.0.2 |
23 |
-EGIT_REPO_URI="https://github.com/scop/bash-completion" |
24 |
-inherit autotools eapi7-ver git-r3 |
25 |
+PYTHON_COMPAT=( python3_{5,6} ) |
26 |
+inherit autotools eapi7-ver git-r3 python-any-r1 |
27 |
|
28 |
DESCRIPTION="Programmable Completion for bash" |
29 |
HOMEPAGE="https://github.com/scop/bash-completion" |
30 |
+EGIT_REPO_URI="https://github.com/scop/bash-completion" |
31 |
SRC_URI="https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz" |
32 |
|
33 |
LICENSE="GPL-2" |
34 |
@@ -27,6 +28,10 @@ DEPEND="app-arch/xz-utils |
35 |
app-misc/dtach |
36 |
dev-util/dejagnu |
37 |
dev-tcltk/tcllib |
38 |
+ $(python_gen_any_dep ' |
39 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
40 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
41 |
+ ') |
42 |
)" |
43 |
PDEPEND=">=app-shells/gentoo-bashcomp-20140911" |
44 |
|
45 |
@@ -52,6 +57,11 @@ STRIP_COMPLETIONS=( |
46 |
_rfkill |
47 |
) |
48 |
|
49 |
+python_check_deps() { |
50 |
+ has_version "dev-python/pexpect[${PYTHON_USEDEP}]" && |
51 |
+ has_version "dev-python/pytest[${PYTHON_USEDEP}]" |
52 |
+} |
53 |
+ |
54 |
src_unpack() { |
55 |
git-r3_src_unpack |
56 |
default |