1 |
commit: 5a408912a2468dba3e79b685a201338adbfc9b16 |
2 |
Author: Alexey Zapparov <alexey <AT> zapparov <DOT> com> |
3 |
AuthorDate: Wed Feb 2 04:03:06 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 02:47:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a408912 |
7 |
|
8 |
sys-apps/bat: add 0.18.3-r1 |
9 |
|
10 |
* Fix manpage installation with USE=debug |
11 |
* Install BASH complitions |
12 |
|
13 |
Closes: https://bugs.gentoo.org/829629 |
14 |
Closes: https://bugs.gentoo.org/828876 |
15 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
16 |
Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com> |
17 |
Closes: https://github.com/gentoo/gentoo/pull/24047 |
18 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
19 |
|
20 |
.../{bat-0.18.3.ebuild => bat-0.18.3-r1.ebuild} | 22 ++++++++++++---------- |
21 |
1 file changed, 12 insertions(+), 10 deletions(-) |
22 |
|
23 |
diff --git a/sys-apps/bat/bat-0.18.3.ebuild b/sys-apps/bat/bat-0.18.3-r1.ebuild |
24 |
similarity index 88% |
25 |
rename from sys-apps/bat/bat-0.18.3.ebuild |
26 |
rename to sys-apps/bat/bat-0.18.3-r1.ebuild |
27 |
index b791c28b50a8..97b8c7d47f4b 100644 |
28 |
--- a/sys-apps/bat/bat-0.18.3.ebuild |
29 |
+++ b/sys-apps/bat/bat-0.18.3-r1.ebuild |
30 |
@@ -1,4 +1,4 @@ |
31 |
-# Copyright 2017-2021 Gentoo Authors |
32 |
+# Copyright 2017-2022 Gentoo Authors |
33 |
# Distributed under the terms of the GNU General Public License v2 |
34 |
|
35 |
EAPI=8 |
36 |
@@ -153,7 +153,7 @@ CRATES=" |
37 |
yaml-rust-0.4.5 |
38 |
" |
39 |
|
40 |
-inherit cargo |
41 |
+inherit bash-completion-r1 cargo |
42 |
|
43 |
DESCRIPTION="cat(1) clone with syntax highlighting and Git integration" |
44 |
# Double check the homepage as the cargo_metadata crate |
45 |
@@ -191,14 +191,16 @@ src_install() { |
46 |
|
47 |
einstalldocs |
48 |
|
49 |
- doman target/release/build/bat-*/out/assets/manual/bat.1 |
50 |
+ local build_dir=( target/$(usex debug{,} release)/build/${PN}-*/out ) |
51 |
+ cd ${build_dir[0]} || die "Cannot change directory to ${PN} build" |
52 |
|
53 |
- insinto /usr/share/fish/vendor_completions.d/ |
54 |
- doins target/release/build/bat-*/out/assets/completions/bat.fish |
55 |
+ doman assets/manual/bat.1 |
56 |
|
57 |
- # Hack to find/install generated zsh completions files as it can be present in |
58 |
- # multiple directories |
59 |
- local BUILD_DIR="$(dirname $(find target/release -name bat.zsh -print -quit || die) || die)" |
60 |
- insinto /usr/share/zsh/site-functions/ |
61 |
- newins "${BUILD_DIR}"/bat.zsh _${PN} |
62 |
+ newbashcomp assets/completions/${PN}.bash ${PN} |
63 |
+ |
64 |
+ insinto /usr/share/zsh/site-functions |
65 |
+ newins assets/completions/${PN}.zsh _${PN} |
66 |
+ |
67 |
+ insinto /usr/share/fish/vendor_completions.d |
68 |
+ doins assets/completions/${PN}.fish |
69 |
} |