1 |
commit: 24712a082c1191fc63dddfc074a13b8342bfb7c1 |
2 |
Author: Olaf Torvaldsson <consus <AT> ftml <DOT> net> |
3 |
AuthorDate: Sat Apr 25 07:32:53 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 29 11:40:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24712a08 |
7 |
|
8 |
app-shells/fzf: bump to 0.21.1 |
9 |
|
10 |
Highlights: |
11 |
* Install fzf(1) manual page |
12 |
* Replace einfo with elog; einfo is muted when emerge is running |
13 |
in parallel mode |
14 |
* Make shell commands easier to spot in elog messages |
15 |
* Clarify that bash keybindings are in fact keybindings and are in fact |
16 |
bash-specific |
17 |
* Remove kinda pointless optfeature noise |
18 |
|
19 |
Closes: https://bugs.gentoo.org/719346 |
20 |
Signed-off-by: Olaf Torvaldsson <consus <AT> ftml.net> |
21 |
Closes: https://github.com/gentoo/gentoo/pull/15511 |
22 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
23 |
|
24 |
app-shells/fzf/Manifest | 1 + |
25 |
app-shells/fzf/fzf-0.21.1.ebuild | 120 +++++++++++++++++++++++++++++++++++++++ |
26 |
2 files changed, 121 insertions(+) |
27 |
|
28 |
diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest |
29 |
index c272c9c89ab..7bc9ed0f9f9 100644 |
30 |
--- a/app-shells/fzf/Manifest |
31 |
+++ b/app-shells/fzf/Manifest |
32 |
@@ -1,4 +1,5 @@ |
33 |
DIST fzf-0.21.0.tar.gz 161819 BLAKE2B 2da6b62425e88c10fa8d3ce3b7d2d25c67a9bd99bf3c402a8e0c84e567f931393fb914e365d0840d4a21409b06b6c76b7f622b68fe99fa5edd9fba8817eefea7 SHA512 8c3b7eb14ac98b386c26bd6621c54a27e904985f2e87c37ae8f31c3596196f32a817be17aa5e7dd399757cb90b5f25c35ce4a240453eb28f7d1d2fd837d8900d |
34 |
+DIST fzf-0.21.1.tar.gz 163978 BLAKE2B 2f05379049229ca01570b3a58bbcaeab48f85330a556efccca2a19b6fbc80da160dd6cada27d35c3fbac3983e71141f408069e70916663aa3b5f40ed5ad22165 SHA512 db816446a2d562148f7bfe4fc99696e0786d4acfe021ba9bf31344c81219b8a61cae03ec7d4b279ab3dba9ca93fc883e655fc71a750fb6f1905612db071ac831 |
35 |
DIST github.com%2F!d!a!t!a-!d!o!g%2Fgo-sqlmock%2F@v%2Fv1.3.3.mod 38 BLAKE2B eb94b6f6f4bf332f916cb642fae50486c6ad9f6a7aa1bb57aade3ed640bc98236ae167d30c140c106cee0ada737eca6bdf54d36bcab0751a940f283f55f08c5c SHA512 43bc64732c4ca2ff23bb09cd67f002b05a1b68963116fb42cf9bd60ac8dade8b2efa1cab798217a73b221ea86fb4e219e36912ffe338c7bd505f2a877be05c09 |
36 |
DIST github.com%2Fgdamore%2Fencoding%2F@v%2Fv1.0.0.mod 77 BLAKE2B 1b81c4c20a890027242b50f1566f4dfdaf120ee26d3dc56d0c2b6465df2ba79b208289eb40c3d7b666a4e7e874210f59aea545d5125c9a55c5597a3ca7f37feb SHA512 fb153c4e481c073133f0c933c67eba8a1f160ab146921f2c77125b6ff5c348cea57e3a5701a557c8db2212d32e3cba1c09b9509210660c17b66c2a45ba97cb75 |
37 |
DIST github.com%2Fgdamore%2Fencoding%2F@v%2Fv1.0.0.zip 19867 BLAKE2B a772206ce6dc48b32d7125a25b26694325d367ebcbad85466b2e6cfdb9fc9f0e08b98b7ecede5397344e5f7e623c4c76edcf69dcee99917adccf5b31aad80bf8 SHA512 127767c725e376b43fe4e2003ddc12fe89693d6d7e52b01e6d47d73fd04496decc0fd60b64c7a65303428e00a52ece1848610ea35231789a814187ef8503bee3 |
38 |
|
39 |
diff --git a/app-shells/fzf/fzf-0.21.1.ebuild b/app-shells/fzf/fzf-0.21.1.ebuild |
40 |
new file mode 100644 |
41 |
index 00000000000..54e6dff35df |
42 |
--- /dev/null |
43 |
+++ b/app-shells/fzf/fzf-0.21.1.ebuild |
44 |
@@ -0,0 +1,120 @@ |
45 |
+# Copyright 2019-2020 Gentoo Authors |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+ |
48 |
+EAPI=7 |
49 |
+ |
50 |
+inherit bash-completion-r1 go-module |
51 |
+ |
52 |
+DESCRIPTION="A general-purpose command-line fuzzy finder, written in GoLang" |
53 |
+HOMEPAGE="https://github.com/junegunn/fzf" |
54 |
+ |
55 |
+EGO_SUM=( |
56 |
+ "github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod" |
57 |
+ "github.com/gdamore/encoding v1.0.0" |
58 |
+ "github.com/gdamore/encoding v1.0.0/go.mod" |
59 |
+ "github.com/gdamore/tcell v1.3.0" |
60 |
+ "github.com/gdamore/tcell v1.3.0/go.mod" |
61 |
+ "github.com/lucasb-eyer/go-colorful v1.0.2" |
62 |
+ "github.com/lucasb-eyer/go-colorful v1.0.2/go.mod" |
63 |
+ "github.com/lucasb-eyer/go-colorful v1.0.3" |
64 |
+ "github.com/lucasb-eyer/go-colorful v1.0.3/go.mod" |
65 |
+ "github.com/mattn/go-isatty v0.0.12" |
66 |
+ "github.com/mattn/go-isatty v0.0.12/go.mod" |
67 |
+ "github.com/mattn/go-runewidth v0.0.4" |
68 |
+ "github.com/mattn/go-runewidth v0.0.4/go.mod" |
69 |
+ "github.com/mattn/go-runewidth v0.0.8" |
70 |
+ "github.com/mattn/go-runewidth v0.0.8/go.mod" |
71 |
+ "github.com/mattn/go-shellwords v1.0.9" |
72 |
+ "github.com/mattn/go-shellwords v1.0.9/go.mod" |
73 |
+ "github.com/saracen/walker v0.0.0-20191201085201-324a081bae7e" |
74 |
+ "github.com/saracen/walker v0.0.0-20191201085201-324a081bae7e/go.mod" |
75 |
+ "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2" |
76 |
+ "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod" |
77 |
+ "golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d" |
78 |
+ "golang.org/x/crypto v0.0.0-20200128174031-69ecbb4d6d5d/go.mod" |
79 |
+ "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod" |
80 |
+ "golang.org/x/net v0.0.0-20190620200207-3b0461eec859" |
81 |
+ "golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod" |
82 |
+ "golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod" |
83 |
+ "golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e" |
84 |
+ "golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod" |
85 |
+ "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod" |
86 |
+ "golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod" |
87 |
+ "golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756" |
88 |
+ "golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod" |
89 |
+ "golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod" |
90 |
+ "golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5" |
91 |
+ "golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod" |
92 |
+ "golang.org/x/text v0.3.0" |
93 |
+ "golang.org/x/text v0.3.0/go.mod" |
94 |
+ "golang.org/x/text v0.3.2" |
95 |
+ "golang.org/x/text v0.3.2/go.mod" |
96 |
+ "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod" |
97 |
+ "golang.org/x/tools v0.0.0-20191011211836-4c025a95b26e" |
98 |
+ "golang.org/x/tools v0.0.0-20191011211836-4c025a95b26e/go.mod" |
99 |
+ "golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod" |
100 |
+) |
101 |
+go-module_set_globals |
102 |
+ |
103 |
+EGO_PN="github.com/junegunn/${PN}" |
104 |
+SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
105 |
+ ${EGO_SUM_SRC_URI}" |
106 |
+ |
107 |
+LICENSE="MIT BSD-with-disclosure" |
108 |
+SLOT="0" |
109 |
+KEYWORDS="~amd64 ~x86" |
110 |
+ |
111 |
+PATCHES=( ${FILESDIR}/${PN}-0.21.0-makefile.patch ) |
112 |
+ |
113 |
+src_install() { |
114 |
+ default |
115 |
+ |
116 |
+ # Install fzf binary |
117 |
+ dobin bin/${PN} |
118 |
+ doman man/man1/${PN}.1 |
119 |
+ |
120 |
+ # Install TMUX utils |
121 |
+ dobin bin/${PN}-tmux |
122 |
+ doman man/man1/${PN}-tmux.1 |
123 |
+ |
124 |
+ # Install Neovim plugin |
125 |
+ insinto /usr/share/nvim/runtime/plugin |
126 |
+ doins plugin/${PN}.vim |
127 |
+ |
128 |
+ # Install VIM plugin |
129 |
+ insinto /usr/share/vim/vimfiles/plugin |
130 |
+ doins plugin/${PN}.vim |
131 |
+ |
132 |
+ # Install bash completion file |
133 |
+ newbashcomp shell/completion.bash ${PN} |
134 |
+ |
135 |
+ # Install zsh completion file |
136 |
+ insinto /usr/share/zsh/site-functions |
137 |
+ newins shell/completion.zsh _${PN} |
138 |
+ |
139 |
+ # Install key-bindings for bash, fish and zsh |
140 |
+ insinto /usr/share/fzf |
141 |
+ doins shell/key-bindings.bash |
142 |
+ doins shell/key-bindings.fish |
143 |
+ doins shell/key-bindings.zsh |
144 |
+} |
145 |
+ |
146 |
+pkg_postinst() { |
147 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
148 |
+ elog "To add fzf support to your shell, make sure to use the right file" |
149 |
+ elog "from /usr/share/fzf." |
150 |
+ elog |
151 |
+ elog "For bash, add the following line to ~/.bashrc:" |
152 |
+ elog |
153 |
+ elog " # source /usr/share/fzf/key-bindings.bash" |
154 |
+ elog |
155 |
+ elog "Or create a symlink:" |
156 |
+ elog |
157 |
+ elog " # ln -s /usr/share/fzf/key-bindings.bash /etc/bash/bashrc.d/fzf.bash" |
158 |
+ elog |
159 |
+ elog "Plugins for Vim and Neovim are installed to respective directories" |
160 |
+ elog "and will work out of the box." |
161 |
+ elog |
162 |
+ elog "For fzf support in tmux see fzf-tmux(1)." |
163 |
+ fi |
164 |
+} |