Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/bash-completion/
Date: Sun, 28 Apr 2019 12:17:03
Message-Id: 1556453807.79a29b286ef3b7c50d6697e17973fc5209755620.mgorny@gentoo
1 commit: 79a29b286ef3b7c50d6697e17973fc5209755620
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 12:16:21 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 12:16:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79a29b28
7
8 app-shells/bash-completion: Init Python with USE=test only
9
10 Closes: https://bugs.gentoo.org/684584
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 app-shells/bash-completion/bash-completion-2.9.ebuild | 4 ++++
14 app-shells/bash-completion/bash-completion-9999.ebuild | 4 ++++
15 2 files changed, 8 insertions(+)
16
17 diff --git a/app-shells/bash-completion/bash-completion-2.9.ebuild b/app-shells/bash-completion/bash-completion-2.9.ebuild
18 index 48636b78df1..c28b05d00c3 100644
19 --- a/app-shells/bash-completion/bash-completion-2.9.ebuild
20 +++ b/app-shells/bash-completion/bash-completion-2.9.ebuild
21 @@ -70,6 +70,10 @@ strip_completions() {
22 rm "${ED}"/usr/share/bash-completion/completions/_* || die
23 }
24
25 +pkg_setup() {
26 + use test && python-any-r1_pkg_setup
27 +}
28 +
29 python_check_deps() {
30 has_version "dev-python/pexpect[${PYTHON_USEDEP}]" &&
31 has_version "dev-python/pytest[${PYTHON_USEDEP}]"
32
33 diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild
34 index 765d8923a5b..dfeead5c364 100644
35 --- a/app-shells/bash-completion/bash-completion-9999.ebuild
36 +++ b/app-shells/bash-completion/bash-completion-9999.ebuild
37 @@ -74,6 +74,10 @@ python_check_deps() {
38 has_version "dev-python/pytest[${PYTHON_USEDEP}]"
39 }
40
41 +pkg_setup() {
42 + use test && python-any-r1_pkg_setup
43 +}
44 +
45 src_unpack() {
46 git-r3_src_unpack
47 default