summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-04-28 14:16:21 +0200
committerMichał Górny <mgorny@gentoo.org>2019-04-28 14:16:47 +0200
commit79a29b286ef3b7c50d6697e17973fc5209755620 (patch)
treee12a65b1844b43f91af142fe4d99ecceeb8f2ec4 /app-shells
parentsys-kernel/gentoo-sources: Linux patch 4.19.37 (diff)
downloadgentoo-79a29b286ef3b7c50d6697e17973fc5209755620.tar.gz
gentoo-79a29b286ef3b7c50d6697e17973fc5209755620.tar.bz2
gentoo-79a29b286ef3b7c50d6697e17973fc5209755620.zip
app-shells/bash-completion: Init Python with USE=test only
Closes: https://bugs.gentoo.org/684584 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/bash-completion/bash-completion-2.9.ebuild4
-rw-r--r--app-shells/bash-completion/bash-completion-9999.ebuild4
2 files changed, 8 insertions, 0 deletions
diff --git a/app-shells/bash-completion/bash-completion-2.9.ebuild b/app-shells/bash-completion/bash-completion-2.9.ebuild
index 48636b78df1a..c28b05d00c34 100644
--- a/app-shells/bash-completion/bash-completion-2.9.ebuild
+++ b/app-shells/bash-completion/bash-completion-2.9.ebuild
@@ -70,6 +70,10 @@ strip_completions() {
rm "${ED}"/usr/share/bash-completion/completions/_* || die
}
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
python_check_deps() {
has_version "dev-python/pexpect[${PYTHON_USEDEP}]" &&
has_version "dev-python/pytest[${PYTHON_USEDEP}]"
diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild
index 765d8923a5b6..dfeead5c364e 100644
--- a/app-shells/bash-completion/bash-completion-9999.ebuild
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild
@@ -74,6 +74,10 @@ python_check_deps() {
has_version "dev-python/pytest[${PYTHON_USEDEP}]"
}
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
src_unpack() {
git-r3_src_unpack
default