From aaa51ad7cf9eeac704ab529a492cdc4a477e9612 Mon Sep 17 00:00:00 2001 From: Ferenc Erki Date: Tue, 30 Jun 2020 18:06:44 +0200 Subject: app-admin/rex: install tab completion scripts Closes: https://github.com/gentoo/gentoo/pull/16507 Signed-off-by: Ferenc Erki Signed-off-by: Kent Fredric --- app-admin/rex/rex-9999.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'app-admin') diff --git a/app-admin/rex/rex-9999.ebuild b/app-admin/rex/rex-9999.ebuild index 5cc3866dba75..02f767b58c6f 100644 --- a/app-admin/rex/rex-9999.ebuild +++ b/app-admin/rex/rex-9999.ebuild @@ -18,7 +18,7 @@ else DIST_NAME=Rex KEYWORDS="~amd64 ~x86" fi -inherit perl-module ${VCS_ECLASS} +inherit bash-completion-r1 perl-module ${VCS_ECLASS} DESCRIPTION="(R)?ex, the friendly automation framework" @@ -183,3 +183,12 @@ src_prepare() { cd "${S}" || die "Can't enter build dir" perl-module_src_prepare } + +src_install() { + newbashcomp "share/${PN}-tab-completion.bash" "${PN}" + + insinto /usr/share/zsh/site-functions + newins "share/${PN}-tab-completion.zsh" "_${PN}" + + perl-module_src_install +} -- cgit v1.2.3-65-gdbad