Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ebuildtester/, dev-python/ebuildtester/files/
Date: Tue, 20 Feb 2018 18:39:39
Message-Id: 1519151964.17ca3c97e32393e5124860b561ec6c830e30adb4.nicolasbock@gentoo
1 commit: 17ca3c97e32393e5124860b561ec6c830e30adb4
2 Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 20 17:26:49 2018 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 20 18:39:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17ca3c97
7
8 dev-python/ebuildtester: Add bash-completion
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 .../ebuildtester/ebuildtester-0.1.6-r1.ebuild | 29 ++++++++++++++++++++++
13 .../files/ebuildtester.bash-completion | 20 +++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/dev-python/ebuildtester/ebuildtester-0.1.6-r1.ebuild b/dev-python/ebuildtester/ebuildtester-0.1.6-r1.ebuild
17 new file mode 100644
18 index 00000000000..880f63924fd
19 --- /dev/null
20 +++ b/dev-python/ebuildtester/ebuildtester-0.1.6-r1.ebuild
21 @@ -0,0 +1,29 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python2_7 python3_{3,4,5,6} )
28 +
29 +inherit bash-completion-r1 distutils-r1
30 +
31 +DESCRIPTION="A dockerized approach to test a Gentoo package within a clean stage3"
32 +HOMEPAGE="http://ebuildtester.readthedocs.io/"
33 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="BSD"
36 +SLOT="0"
37 +KEYWORDS="~amd64"
38 +IUSE="test"
39 +
40 +RDEPEND="
41 + app-emulation/docker
42 +"
43 +
44 +DEPEND="
45 + dev-python/setuptools[${PYTHON_USEDEP}]
46 +"
47 +
48 +src_install() {
49 + newbashcomp "${FILESDIR}/${PN}.bash-completion" "${PN}"
50 +}
51
52 diff --git a/dev-python/ebuildtester/files/ebuildtester.bash-completion b/dev-python/ebuildtester/files/ebuildtester.bash-completion
53 new file mode 100644
54 index 00000000000..b8e7cd27c39
55 --- /dev/null
56 +++ b/dev-python/ebuildtester/files/ebuildtester.bash-completion
57 @@ -0,0 +1,20 @@
58 +_ebuildtester() {
59 + local cur prev opts
60 + COMPREPLY=()
61 + cur="${COMP_WORDS[COMP_CWORD]}"
62 + prev="${COMP_WORDS[COMP_CWORD-1]}"
63 + opts="--help --portage-dir --atom --threads"
64 +
65 + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
66 + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
67 + return 0
68 + fi
69 +
70 + case "${prev}" in
71 + --portage-dir)
72 + COMPREPLY=( $(compgen -o dirnames -A directory ${cur}) )
73 + ;;
74 + esac
75 +
76 +}
77 +complete -F _ebuildtester ebuildtester