commit: a791b027f54e4e9e08140c7a4f6cf8e77ffc6804 Author: Moritz Brunner <moritz.brunner+gentoo <AT> posteo <DOT> de> AuthorDate: Tue Feb 4 14:39:23 2025 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Tue Feb 11 17:24:01 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a791b027
app-shells/fzf: Version bump to 0.59.0 Closes: https://bugs.gentoo.org/948680 Closes: https://github.com/gentoo/gentoo/pull/40449 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.59.0.ebuild | 72 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest index 906bc31b1b0f..7aa3d09b3b42 100644 --- a/app-shells/fzf/Manifest +++ b/app-shells/fzf/Manifest @@ -2,3 +2,5 @@ DIST fzf-0.56.3-deps.tar.xz 5884504 BLAKE2B b5ffa8dd62e81d4db0266b1c66ebcb3938dc DIST fzf-0.56.3.tar.gz 300405 BLAKE2B d4139fd5fc95d710f18f5415f98e512c58812d5e5849481b47898b618dd33f33cfa532a9b767a787f565337f7ca8ea383f6bf10100ef90a78bbba9ad77e68fa3 SHA512 7144036bf3d027272bb1f961bb6a2721a7a85b16955b45f67798e16ac9f7891a04ed3b343b71c3426358e9e92abe1faba10b679caf8f99ca1905c6b312e6c9b7 DIST fzf-0.57.0-deps.tar.xz 5890984 BLAKE2B 7d1bfbcbc01f99e77d601cec1080a45d8565320f4998f1ff4691ae3afbdbd7733c5861282e6d2167bb68d02ff06331913dad53ecdce6cd2ca6ced9ba11518279 SHA512 2c46a268cea450ff224e8251354443b1f7aa7f5a939e976c2a92fa3218444504205de3a72064820df2ee25b0d4de30e7f8877d4fa004e850d82eb13f2453e9ff 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 diff --git a/app-shells/fzf/fzf-0.59.0.ebuild b/app-shells/fzf/fzf-0.59.0.ebuild new file mode 100644 index 000000000000..bd51fd837b9c --- /dev/null +++ b/app-shells/fzf/fzf-0.59.0.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=bbe1721a1883426f639c1efe6afef1d3e6c25181 +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} + + 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 +}
