1 |
commit: f1b6efce1f2a088f877f3e06d98c6f72abce3a9b |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Sat Feb 20 09:35:43 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 09:03:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1b6efce |
7 |
|
8 |
app-shells/mcfly: install fish/zsh integration |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
12 |
Closes: https://bugs.gentoo.org/770088 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
app-shells/mcfly/mcfly-0.5.3-r1.ebuild | 114 +++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 114 insertions(+) |
17 |
|
18 |
diff --git a/app-shells/mcfly/mcfly-0.5.3-r1.ebuild b/app-shells/mcfly/mcfly-0.5.3-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..f5542eb9926 |
21 |
--- /dev/null |
22 |
+++ b/app-shells/mcfly/mcfly-0.5.3-r1.ebuild |
23 |
@@ -0,0 +1,114 @@ |
24 |
+# Copyright 2017-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+CRATES=" |
30 |
+aho-corasick-0.7.10 |
31 |
+ansi_term-0.11.0 |
32 |
+arrayref-0.3.6 |
33 |
+arrayvec-0.5.1 |
34 |
+atty-0.2.14 |
35 |
+autocfg-1.0.0 |
36 |
+base64-0.11.0 |
37 |
+bitflags-1.2.1 |
38 |
+blake2b_simd-0.5.10 |
39 |
+bstr-0.2.12 |
40 |
+byteorder-1.3.4 |
41 |
+cc-1.0.52 |
42 |
+cfg-if-0.1.10 |
43 |
+clap-2.33.0 |
44 |
+constant_time_eq-0.1.5 |
45 |
+crossbeam-utils-0.7.2 |
46 |
+csv-1.1.3 |
47 |
+csv-core-0.1.10 |
48 |
+dirs-2.0.2 |
49 |
+dirs-sys-0.3.4 |
50 |
+either-1.6.1 |
51 |
+getrandom-0.1.14 |
52 |
+hermit-abi-0.1.12 |
53 |
+itertools-0.9.0 |
54 |
+itoa-0.4.5 |
55 |
+lazy_static-1.4.0 |
56 |
+libc-0.2.69 |
57 |
+libsqlite3-sys-0.10.0 |
58 |
+linked-hash-map-0.5.3 |
59 |
+lru-cache-0.1.2 |
60 |
+memchr-2.3.3 |
61 |
+numtoa-0.1.0 |
62 |
+pkg-config-0.3.17 |
63 |
+ppv-lite86-0.2.6 |
64 |
+rand-0.7.3 |
65 |
+rand_chacha-0.2.2 |
66 |
+rand_core-0.5.1 |
67 |
+rand_hc-0.2.0 |
68 |
+redox_syscall-0.1.56 |
69 |
+redox_termios-0.1.1 |
70 |
+redox_users-0.3.4 |
71 |
+regex-1.3.7 |
72 |
+regex-automata-0.1.9 |
73 |
+regex-syntax-0.6.17 |
74 |
+relative-path-1.0.0 |
75 |
+rusqlite-0.15.0 |
76 |
+rust-argon2-0.7.0 |
77 |
+ryu-1.0.4 |
78 |
+serde-1.0.106 |
79 |
+shellexpand-2.0.0 |
80 |
+strsim-0.8.0 |
81 |
+termion-1.5.5 |
82 |
+textwrap-0.11.0 |
83 |
+thread_local-1.0.1 |
84 |
+time-0.1.43 |
85 |
+unicode-segmentation-1.6.0 |
86 |
+unicode-width-0.1.7 |
87 |
+vcpkg-0.2.8 |
88 |
+vec_map-0.8.2 |
89 |
+wasi-0.9.0+wasi-snapshot-preview1 |
90 |
+winapi-0.3.8 |
91 |
+winapi-i686-pc-windows-gnu-0.4.0 |
92 |
+winapi-x86_64-pc-windows-gnu-0.4.0 |
93 |
+" |
94 |
+ |
95 |
+inherit cargo |
96 |
+ |
97 |
+DESCRIPTION="Context-aware bash history search replacement (ctrl-r)" |
98 |
+HOMEPAGE="https://github.com/cantino/mcfly" |
99 |
+SRC_URI="https://github.com/cantino/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
100 |
+ $(cargo_crate_uris ${CRATES})" |
101 |
+ |
102 |
+LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 MIT Unlicense" |
103 |
+SLOT="0" |
104 |
+KEYWORDS="~amd64" |
105 |
+ |
106 |
+DEPEND="dev-db/sqlite:3" |
107 |
+RDEPEND="${DEPEND}" |
108 |
+ |
109 |
+QA_FLAGS_IGNORED="/usr/bin/mcfly" |
110 |
+ |
111 |
+src_install() { |
112 |
+ cargo_src_install |
113 |
+ |
114 |
+ insinto "/usr/share/${PN}" |
115 |
+ doins "${PN}".{bash,fish,zsh} |
116 |
+ |
117 |
+ einstalldocs |
118 |
+} |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ |
122 |
+ elog "To start using ${PN}, add the following to your shell:" |
123 |
+ elog |
124 |
+ elog "~/.bashrc" |
125 |
+ local p="${EPREFIX}/usr/share/${PN}/${PN}.bash" |
126 |
+ elog "[[ -f ${p} ]] && source ${p}" |
127 |
+ elog |
128 |
+ elog "~/.config/fish/config.fish" |
129 |
+ local p="${EPREFIX}/usr/share/${PN}/${PN}.fish" |
130 |
+ elog "if test -r ${p}" |
131 |
+ elog " source ${p}" |
132 |
+ elog " mcfly_key_bindings" |
133 |
+ elog |
134 |
+ elog "~/.zsh" |
135 |
+ local p="${EPREFIX}/usr/share/${PN}/${PN}.zsh" |
136 |
+ elog "[[ -f ${p} ]] && source ${p}" |
137 |
+} |