commit:     bef61d633e9471f52cc7a567a8bf16cb9e361f2a
Author:     ingenarel <ingenarelitems <AT> gmail <DOT> com>
AuthorDate: Sun Jul 13 04:07:59 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Jul 17 17:29:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bef61d63

app-shells/fzf: add 0.64.0

Closes: https://bugs.gentoo.org/960039
Closes: https://github.com/gentoo/gentoo/pull/42980
Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 app-shells/fzf/Manifest          |  2 ++
 app-shells/fzf/fzf-0.64.0.ebuild | 71 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest
index 9e8885532b5c..c9097545c458 100644
--- a/app-shells/fzf/Manifest
+++ b/app-shells/fzf/Manifest
@@ -2,3 +2,5 @@ DIST fzf-0.62.0-deps.tar.xz 5914452 BLAKE2B 
568a02565359aad6c784a2614d96b0456fc7
 DIST fzf-0.62.0.tar.gz 333078 BLAKE2B 
333e94c6c40a3098144070bda96a29f102b4a37dac987bfe61b3f4a1c863806184bbc463036e5ca9ea766842c54b20afda50ee7b4457c77daa28eddbb703d4ca
 SHA512 
e0246a9caac7bc99e6b7596f79bd6c091b55da3843a0ca22cfa7984c0eba2e42430037f4c0f58b99f29a82c91ca36aa8bfd8315e6814b076adb21fe6d40e0a3f
 DIST fzf-0.63.0-deps.tar.xz 5918468 BLAKE2B 
7697e4fea67ee8c1e32805fc9da28d3469c23ba7005cb0a115240c2ddafdaeb8ef158ef53e6fc8e03e42ef12a9de2c1ffbbf3fbca28bc5342dd56f0e7415742d
 SHA512 
2b20e7a4d589df802ab2e8398e6426b9dcec99605890a8221249690e72e8dc322ba610f1d8c5fc2cd5bb13f0eaac525817203f42f8b01ba8f0577ee06fb97e6d
 DIST fzf-0.63.0.tar.gz 344206 BLAKE2B 
c4190b4a69bb4008f1aa75fbeb226c700b0ae3b7286717a99bac6fd91d90b5974bc35211e66362b7403e174d07e8dd4e334f1ce44d7ee351c6e7a787cff060f5
 SHA512 
ce97d13eee78b963467df46cdf517f60a242e0e6ce15045bebd4e22e864e7698cf7d3e70f1170420474d897714a036f70fe7566c4797bcb4f7ff47e79e4a7b2c
+DIST fzf-0.64.0-deps.tar.xz 5919740 BLAKE2B 
43bd235aef55b51f0176edd5f530ac9961d1e52f920ce5042a74c926af01561b4921f43f28cfbb62dce95698252c37bb5da883ae608ea7d93badbb067be3250a
 SHA512 
442126580af3f5d843afdc05e694de29ed3bf083f8c37dba7540427bbb8814f0008c0941d305ad79d6dfa8673fa13d5cc9baf1a1026cba951210cc93470532aa
+DIST fzf-0.64.0.tar.gz 346041 BLAKE2B 
792d0dfd83c2c94ba05f344bf76042a11e817b44eb1e32873f4f469b953ed95dbebd55c23c5311f90547d496a666943204f2808229b15539d9c51789272cad09
 SHA512 
69320e8b41e02f8adb4993c514edc9029c718da7bfce2240c93f98166179b922441cb078bcf5c06352754fa98e36b6f4371ff66ad6410b9024f9c3b875abac58

diff --git a/app-shells/fzf/fzf-0.64.0.ebuild b/app-shells/fzf/fzf-0.64.0.ebuild
new file mode 100644
index 000000000000..1484dd1db5bf
--- /dev/null
+++ b/app-shells/fzf/fzf-0.64.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module shell-completion
+
+DESCRIPTION="General-purpose command-line fuzzy finder, written in Golang"
+HOMEPAGE="https://github.com/junegunn/fzf";
+
+# For fancy versioning only. Bump on the next release!
+# MY_GIT_REV is the first 7 characters of release commit, we truncate it
+# after to make it easier to copy/paste.
+MY_GIT_REV=0076ec2e8d66a725555c256acbe46292019dc1a7
+MY_GIT_REV=${MY_GIT_REV:0:7}
+
+SRC_URI="https://github.com/junegunn/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~mattst88/distfiles/${P}-deps.tar.xz";
+
+LICENSE="MIT BSD-with-disclosure"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+
+src_prepare() {
+       default
+       sed -i 's/-s -w //' Makefile || die # bug #795225
+}
+
+src_compile() {
+       emake PREFIX="${EPREFIX}"/usr VERSION=${PV} REVISION=${MY_GIT_REV} 
bin/${PN}
+}
+
+src_install() {
+       dobin bin/${PN}
+       doman man/man1/${PN}.1
+
+       dobin bin/${PN}-tmux
+       doman man/man1/${PN}-tmux.1
+
+       insinto /usr/share/vim/vimfiles/plugin
+       doins plugin/${PN}.vim
+
+       insinto /usr/share/nvim/runtime/plugin
+       doins plugin/${PN}.vim
+
+       newbashcomp shell/completion.bash ${PN}
+
+       newzshcomp shell/completion.zsh _${PN}
+
+       insinto /usr/share/fzf
+       doins shell/key-bindings.bash
+       doins shell/key-bindings.fish
+       doins shell/key-bindings.zsh
+}
+
+pkg_postinst() {
+       if [[ -z ${REPLACING_VERSIONS} ]]; then
+               elog "To add fzf support to your shell, make sure to use the 
right file"
+               elog "from ${EROOT}/usr/share/fzf."
+               elog
+               elog "For bash, add the following line to ~/.bashrc:"
+               elog
+               elog "  # source 
${EROOT}/usr/share/bash-completion/completions/fzf"
+               elog "  # source ${EROOT}/usr/share/fzf/key-bindings.bash"
+               elog
+               elog "Plugins for Vim and Neovim are installed to respective 
directories"
+               elog "and will work out of the box."
+               elog
+               elog "For fzf support in tmux see fzf-tmux(1)."
+       fi
+}

Reply via email to