Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/fzf/
Date: Wed, 12 Jan 2022 09:31:58
Message-Id: 1641979910.f8c815fcc5bdabe2f7f8ca60a7732117fc38a3cd.gyakovlev@gentoo
1 commit: f8c815fcc5bdabe2f7f8ca60a7732117fc38a3cd
2 Author: James Beddek <telans <AT> posteo <DOT> de>
3 AuthorDate: Tue Jan 11 09:24:34 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 12 09:31:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8c815fc
7
8 app-shells/fzf: add 0.29.0
9
10 Signed-off-by: James Beddek <telans <AT> posteo.de>
11 Closes: https://github.com/gentoo/gentoo/pull/23736
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 app-shells/fzf/Manifest | 1 +
15 app-shells/fzf/fzf-0.29.0.ebuild | 107 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 108 insertions(+)
17
18 diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest
19 index 1eafd23bfe45..7b8abfc92cd4 100644
20 --- a/app-shells/fzf/Manifest
21 +++ b/app-shells/fzf/Manifest
22 @@ -1,5 +1,6 @@
23 DIST fzf-0.27.2.tar.gz 191941 BLAKE2B cad609a4171e4f3766b173b098a674b3469686265a6e30ff58b42b6ab5f29c539d860a78337d2985ebcfc8f4c249c979ab9e791db786b04dcdca0c55e5b81472 SHA512 8ca27b61b6b2a66bdfd06dc8ad9e5163f3b69d64a44e1a99df5a2af35a63ccf7a9a77f9faed27fead373f5c212396327a3c0300b31f22583a35a1ae2aeac9865
24 DIST fzf-0.28.0.tar.gz 205763 BLAKE2B decb6c2ab49ea059039d5b01b74e7230b89c883fd14d87fcdd1218f53a543855a48f62af4c83783a084fba2beef7f513253b5f490b23d5c77685fa189a98837d SHA512 5e5652272b90ef1b79ed9faa0563439fe184aa2d91a6a76388145fc92cd851753abb70b3c22b3a77a863b0e47f3960ca2cb6236a93b48ca8efc1b6aceffcd621
25 +DIST fzf-0.29.0.tar.gz 208296 BLAKE2B 73260d049d07301670a3a1d35b9ce35dbebcb748f4a1c236e13d12bf6747a83a0ecfd79332a61db69a00936c8d089d52afac8d39fa493d00a6b8ffa4cf3dedd7 SHA512 65744b6ea9c7a475de2e5dfa609c00df70db07804311b938a94373aa6447b587fee417edcf3bf7d66524f25cb405a9cc5be96d26111690e2f7a373dc10423010
26 DIST github.com%2Fgdamore%2Fencoding%2F@v%2Fv1.0.0.mod 77 BLAKE2B 1b81c4c20a890027242b50f1566f4dfdaf120ee26d3dc56d0c2b6465df2ba79b208289eb40c3d7b666a4e7e874210f59aea545d5125c9a55c5597a3ca7f37feb SHA512 fb153c4e481c073133f0c933c67eba8a1f160ab146921f2c77125b6ff5c348cea57e3a5701a557c8db2212d32e3cba1c09b9509210660c17b66c2a45ba97cb75
27 DIST github.com%2Fgdamore%2Fencoding%2F@v%2Fv1.0.0.zip 19867 BLAKE2B a772206ce6dc48b32d7125a25b26694325d367ebcbad85466b2e6cfdb9fc9f0e08b98b7ecede5397344e5f7e623c4c76edcf69dcee99917adccf5b31aad80bf8 SHA512 127767c725e376b43fe4e2003ddc12fe89693d6d7e52b01e6d47d73fd04496decc0fd60b64c7a65303428e00a52ece1848610ea35231789a814187ef8503bee3
28 DIST github.com%2Fgdamore%2Ftcell%2F@v%2Fv1.4.0.mod 250 BLAKE2B 46093e9211011e814962ba2eafec4392948f185d27a202a8b626e16299e3a3fa4554a604933ceab584b27cca2b7a6b1f51d4e5fe10d673e875e38eca08de64ec SHA512 412dee57c525bd5a3c0ce9c482e7933814758e36ebb226a16392e648f57e280485f86e30f17be2339eed427b52e4b0b601401503d0bd324c7fa874e2fcba2b60
29
30 diff --git a/app-shells/fzf/fzf-0.29.0.ebuild b/app-shells/fzf/fzf-0.29.0.ebuild
31 new file mode 100644
32 index 000000000000..d2baa2b00c73
33 --- /dev/null
34 +++ b/app-shells/fzf/fzf-0.29.0.ebuild
35 @@ -0,0 +1,107 @@
36 +# Copyright 2019-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +inherit bash-completion-r1 go-module
42 +
43 +DESCRIPTION="General-purpose command-line fuzzy finder, written in Golang"
44 +HOMEPAGE="https://github.com/junegunn/fzf"
45 +
46 +# For fancy versioning only. Bump on the next release!
47 +MY_GIT_REV=dc975e8
48 +
49 +EGO_SUM=(
50 + "github.com/gdamore/encoding v1.0.0"
51 + "github.com/gdamore/encoding v1.0.0/go.mod"
52 + "github.com/gdamore/tcell v1.4.0"
53 + "github.com/gdamore/tcell v1.4.0/go.mod"
54 + "github.com/lucasb-eyer/go-colorful v1.0.3/go.mod"
55 + "github.com/lucasb-eyer/go-colorful v1.2.0"
56 + "github.com/lucasb-eyer/go-colorful v1.2.0/go.mod"
57 + "github.com/mattn/go-isatty v0.0.14"
58 + "github.com/mattn/go-isatty v0.0.14/go.mod"
59 + "github.com/mattn/go-runewidth v0.0.7/go.mod"
60 + "github.com/mattn/go-runewidth v0.0.13"
61 + "github.com/mattn/go-runewidth v0.0.13/go.mod"
62 + "github.com/mattn/go-shellwords v1.0.12"
63 + "github.com/mattn/go-shellwords v1.0.12/go.mod"
64 + "github.com/rivo/uniseg v0.2.0"
65 + "github.com/rivo/uniseg v0.2.0/go.mod"
66 + "github.com/saracen/walker v0.1.2"
67 + "github.com/saracen/walker v0.1.2/go.mod"
68 + "golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod"
69 + "golang.org/x/sync v0.0.0-20210220032951-036812b2e83c"
70 + "golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod"
71 + "golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod"
72 + "golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
73 + "golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c"
74 + "golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod"
75 + "golang.org/x/term v0.0.0-20210317153231-de623e64d2a6"
76 + "golang.org/x/term v0.0.0-20210317153231-de623e64d2a6/go.mod"
77 + "golang.org/x/text v0.3.0/go.mod"
78 + "golang.org/x/text v0.3.6"
79 + "golang.org/x/text v0.3.6/go.mod"
80 + "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
81 +)
82 +
83 +go-module_set_globals
84 +
85 +SRC_URI="
86 + https://github.com/junegunn/fzf/archive/${PV}.tar.gz -> ${P}.tar.gz
87 + ${EGO_SUM_SRC_URI}
88 +"
89 +
90 +LICENSE="MIT BSD-with-disclosure"
91 +SLOT="0"
92 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
93 +
94 +src_prepare() {
95 + default
96 + sed -i 's/-s -w //' Makefile || die # bug 795225
97 +}
98 +
99 +src_compile() {
100 + emake PREFIX="${EPREFIX}"/usr VERSION=${PV} REVISION=${MY_GIT_REV} bin/${PN}
101 +}
102 +
103 +src_install() {
104 + dobin bin/${PN}
105 + doman man/man1/${PN}.1
106 +
107 + dobin bin/${PN}-tmux
108 + doman man/man1/${PN}-tmux.1
109 +
110 + insinto /usr/share/vim/vimfiles/plugin
111 + doins plugin/${PN}.vim
112 +
113 + insinto /usr/share/nvim/runtime/plugin
114 + doins plugin/${PN}.vim
115 +
116 + newbashcomp shell/completion.bash ${PN}
117 +
118 + insinto /usr/share/zsh/site-functions
119 + newins shell/completion.zsh _${PN}
120 +
121 + insinto /usr/share/fzf
122 + doins shell/key-bindings.bash
123 + doins shell/key-bindings.fish
124 + doins shell/key-bindings.zsh
125 +}
126 +
127 +pkg_postinst() {
128 + if [[ -z ${REPLACING_VERSIONS} ]]; then
129 + elog "To add fzf support to your shell, make sure to use the right file"
130 + elog "from /usr/share/fzf."
131 + elog
132 + elog "For bash, add the following line to ~/.bashrc:"
133 + elog
134 + elog " # source /usr/share/bash-completion/completions/fzf"
135 + elog " # source /usr/share/fzf/key-bindings.bash"
136 + elog
137 + elog "Plugins for Vim and Neovim are installed to respective directories"
138 + elog "and will work out of the box."
139 + elog
140 + elog "For fzf support in tmux see fzf-tmux(1)."
141 + fi
142 +}