summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-09-28 11:20:29 +0200
committerMichał Górny <mgorny@gentoo.org>2018-09-28 11:30:39 +0200
commitc7674f582a58a36c163aa5c9e5e8d1a4a8733089 (patch)
treee6f955aa3b4a9fa666c9ee9dad4710a8aa0e445a /app-shells
parentsys-kernel/ck-sources: Bump to 4.18.9 (diff)
downloadgentoo-c7674f582a58a36c163aa5c9e5e8d1a4a8733089.tar.gz
gentoo-c7674f582a58a36c163aa5c9e5e8d1a4a8733089.tar.bz2
gentoo-c7674f582a58a36c163aa5c9e5e8d1a4a8733089.zip
app-shells/bash-completion: Tests now require python3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/bash-completion/bash-completion-9999.ebuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild
index 79ee3e0ac0af..237e817330a8 100644
--- a/app-shells/bash-completion/bash-completion-9999.ebuild
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild
@@ -4,11 +4,12 @@
EAPI=6
BASHCOMP_P=bashcomp-2.0.2
-EGIT_REPO_URI="https://github.com/scop/bash-completion"
-inherit autotools eapi7-ver git-r3
+PYTHON_COMPAT=( python3_{5,6} )
+inherit autotools eapi7-ver git-r3 python-any-r1
DESCRIPTION="Programmable Completion for bash"
HOMEPAGE="https://github.com/scop/bash-completion"
+EGIT_REPO_URI="https://github.com/scop/bash-completion"
SRC_URI="https://bitbucket.org/mgorny/bashcomp2/downloads/${BASHCOMP_P}.tar.gz"
LICENSE="GPL-2"
@@ -27,6 +28,10 @@ DEPEND="app-arch/xz-utils
app-misc/dtach
dev-util/dejagnu
dev-tcltk/tcllib
+ $(python_gen_any_dep '
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ ')
)"
PDEPEND=">=app-shells/gentoo-bashcomp-20140911"
@@ -52,6 +57,11 @@ STRIP_COMPLETIONS=(
_rfkill
)
+python_check_deps() {
+ has_version "dev-python/pexpect[${PYTHON_USEDEP}]" &&
+ has_version "dev-python/pytest[${PYTHON_USEDEP}]"
+}
+
src_unpack() {
git-r3_src_unpack
default