summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gentoo.org>2018-02-20 10:26:49 -0700
committerNicolas Bock <nicolasbock@gentoo.org>2018-02-20 11:39:24 -0700
commit17ca3c97e32393e5124860b561ec6c830e30adb4 (patch)
treeda16223f961bc6faef1942a65b3761ac065188e7 /dev-python/ebuildtester
parentx11-proto/xorgproto: Move blockers to RDEPEND (diff)
downloadgentoo-17ca3c97e32393e5124860b561ec6c830e30adb4.tar.gz
gentoo-17ca3c97e32393e5124860b561ec6c830e30adb4.tar.bz2
gentoo-17ca3c97e32393e5124860b561ec6c830e30adb4.zip
dev-python/ebuildtester: Add bash-completion
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-python/ebuildtester')
-rw-r--r--dev-python/ebuildtester/ebuildtester-0.1.6-r1.ebuild29
-rw-r--r--dev-python/ebuildtester/files/ebuildtester.bash-completion20
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/ebuildtester/ebuildtester-0.1.6-r1.ebuild b/dev-python/ebuildtester/ebuildtester-0.1.6-r1.ebuild
new file mode 100644
index 000000000000..880f63924fdf
--- /dev/null
+++ b/dev-python/ebuildtester/ebuildtester-0.1.6-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5,6} )
+
+inherit bash-completion-r1 distutils-r1
+
+DESCRIPTION="A dockerized approach to test a Gentoo package within a clean stage3"
+HOMEPAGE="http://ebuildtester.readthedocs.io/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+ app-emulation/docker
+"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+src_install() {
+ newbashcomp "${FILESDIR}/${PN}.bash-completion" "${PN}"
+}
diff --git a/dev-python/ebuildtester/files/ebuildtester.bash-completion b/dev-python/ebuildtester/files/ebuildtester.bash-completion
new file mode 100644
index 000000000000..b8e7cd27c393
--- /dev/null
+++ b/dev-python/ebuildtester/files/ebuildtester.bash-completion
@@ -0,0 +1,20 @@
+_ebuildtester() {
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="--help --portage-dir --atom --threads"
+
+ if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+
+ case "${prev}" in
+ --portage-dir)
+ COMPREPLY=( $(compgen -o dirnames -A directory ${cur}) )
+ ;;
+ esac
+
+}
+complete -F _ebuildtester ebuildtester