From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2814138334 for ; Fri, 28 Sep 2018 09:30:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C40FFE09BD; Fri, 28 Sep 2018 09:30:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A025FE09BD for ; Fri, 28 Sep 2018 09:30:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 46335335CC8 for ; Fri, 28 Sep 2018 09:30:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19B1441F for ; Fri, 28 Sep 2018 09:30:47 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1538127039.c7674f582a58a36c163aa5c9e5e8d1a4a8733089.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/bash-completion/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/bash-completion/bash-completion-9999.ebuild X-VCS-Directories: app-shells/bash-completion/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c7674f582a58a36c163aa5c9e5e8d1a4a8733089 X-VCS-Branch: master Date: Fri, 28 Sep 2018 09:30:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 966a01ad-2be8-4f23-99e3-35422e5afd64 X-Archives-Hash: af0ce0794a9f3827c1c502211c2fb301 commit: c7674f582a58a36c163aa5c9e5e8d1a4a8733089 Author: Michał Górny gentoo org> AuthorDate: Fri Sep 28 09:20:29 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Sep 28 09:30:39 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7674f58 app-shells/bash-completion: Tests now require python3 Signed-off-by: Michał Górny gentoo.org> app-shells/bash-completion/bash-completion-9999.ebuild | 14 ++++++++++++-- 1 file 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 79ee3e0ac0a..237e817330a 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