commit:     b801b794d2aa0ef06ff974ecf4241933bcac78bf
Author:     Moritz Brunner <moritz.brunner+gentoo <AT> posteo <DOT> de>
AuthorDate: Sun Mar  9 10:11:22 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 16:18:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b801b794

app-shells/fzf: add 0.60.3

Closes: https://bugs.gentoo.org/949818
Closes: https://github.com/gentoo/gentoo/pull/40973
Signed-off-by: Moritz Brunner <moritz.brunner+gentoo <AT> posteo.de>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 app-shells/fzf/Manifest          |  2 ++
 app-shells/fzf/fzf-0.60.3.ebuild | 72 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest
index 7aa3d09b3b42..4a98f4c4667e 100644
--- a/app-shells/fzf/Manifest
+++ b/app-shells/fzf/Manifest
@@ -4,3 +4,5 @@ DIST fzf-0.57.0-deps.tar.xz 5890984 BLAKE2B 
7d1bfbcbc01f99e77d601cec1080a45d8565
 DIST fzf-0.57.0.tar.gz 303081 BLAKE2B 
ab478c15e9229105b73275155a54bcf3dfcfcc9704414fd84511932572156c8695982c9aee2b5f609a9ec4b82ff895a96c11bd30c5d1f1345273a7272a2d71bc
 SHA512 
1e5a76e647bb1ab784582b1e8069df908d844e564ab1c2c7cf9d389326a97ffc3c8c102050c40656ef60039f70284ceef78b3c739d7c32ff84b7493aac71f7d2
 DIST fzf-0.59.0-deps.tar.xz 5897312 BLAKE2B 
3d4116c8cd49d36a4019c092b9598cb40ce03cd487bb3c1259f110c910602509ad894b1a6a9850b72f597f5a10c01c780c4546e6e2d6fa9375c277cca1450a73
 SHA512 
0bfa2758c7a6b5a9f345b24e42c698adb487cf9bb3dc52a323adf9050b2d33671cca60879ee16caf55690795bdd356954b1ae0e5e656b0fdaa75b04ae8dffc84
 DIST fzf-0.59.0.tar.gz 323970 BLAKE2B 
88d6a98d5f969831c1214e2ae69a05b39e87400abfac3bbf3fbd18cb2cde561f3ed8ef0c770fe6fc1ea86b09b8e08aee69d63c53b4f79b080cdbb9f02cd8ab7a
 SHA512 
271f6870c680f7631fd9e9ee1fe154ef617f2329b8cf3611e24d0c0bac0b3a2f9c0e1be1eda874ffa8343a9c5669607650aaf607087b73a7ff71efa9e1f9994a
+DIST fzf-0.60.3-deps.tar.xz 5910228 BLAKE2B 
ee8085868748a4edc66bf0ce7fcd056eb4822635d0435dd7703816f9e4d13366af8e19be8853600612205a49f586c99fa3a2075ffa64e34ccd1a6ace9e370f75
 SHA512 
614f51fdc12a2c323307236de3fb9be5370ec274f5d4e2fc8ed8b0eb17ca03a9ed781b375bbcd40d949627d48049cd323fc05d6cce65aeb85fd567c5a12dda76
+DIST fzf-0.60.3.tar.gz 328951 BLAKE2B 
36e80b027ccbe1c6f0d3d36dc3cabb449a006c1d45eeae757592ed0f84c761ab06514fd020602ca3c1c572dfdea5205814b26c12edf10590aaf2cd902cf9e0ca
 SHA512 
da34038bd9df735ba43ed834e593188b7242a46f9c7f9e1b5a7818f030eb97a6052c2a0a8161bccf1dbb918c4f891ac29d232c2bcb55f73f2c1dd1e86367463b

diff --git a/app-shells/fzf/fzf-0.60.3.ebuild b/app-shells/fzf/fzf-0.60.3.ebuild
new file mode 100644
index 000000000000..e02caa2f324d
--- /dev/null
+++ b/app-shells/fzf/fzf-0.60.3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 2019-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 go-module
+
+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=0012183ede3619e2bf52932c196377f8a7befbf6
+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://github.com/Oddegamra/gentoo-ebuilds/releases/download/${P}/${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}
+
+       insinto /usr/share/zsh/site-functions
+       newins 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