1 |
commit: aaa51ad7cf9eeac704ab529a492cdc4a477e9612 |
2 |
Author: Ferenc Erki <erkiferenc <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 30 16:06:44 2020 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 1 14:22:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaa51ad7 |
7 |
|
8 |
app-admin/rex: install tab completion scripts |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/16507 |
11 |
Signed-off-by: Ferenc Erki <erkiferenc <AT> gmail.com> |
12 |
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org> |
13 |
|
14 |
app-admin/rex/rex-9999.ebuild | 11 ++++++++++- |
15 |
1 file changed, 10 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-admin/rex/rex-9999.ebuild b/app-admin/rex/rex-9999.ebuild |
18 |
index 5cc3866dba7..02f767b58c6 100644 |
19 |
--- a/app-admin/rex/rex-9999.ebuild |
20 |
+++ b/app-admin/rex/rex-9999.ebuild |
21 |
@@ -18,7 +18,7 @@ else |
22 |
DIST_NAME=Rex |
23 |
KEYWORDS="~amd64 ~x86" |
24 |
fi |
25 |
-inherit perl-module ${VCS_ECLASS} |
26 |
+inherit bash-completion-r1 perl-module ${VCS_ECLASS} |
27 |
|
28 |
DESCRIPTION="(R)?ex, the friendly automation framework" |
29 |
|
30 |
@@ -183,3 +183,12 @@ src_prepare() { |
31 |
cd "${S}" || die "Can't enter build dir" |
32 |
perl-module_src_prepare |
33 |
} |
34 |
+ |
35 |
+src_install() { |
36 |
+ newbashcomp "share/${PN}-tab-completion.bash" "${PN}" |
37 |
+ |
38 |
+ insinto /usr/share/zsh/site-functions |
39 |
+ newins "share/${PN}-tab-completion.zsh" "_${PN}" |
40 |
+ |
41 |
+ perl-module_src_install |
42 |
+} |