diff options
Diffstat (limited to 'app-shells/fzf')
-rw-r--r-- | app-shells/fzf/Manifest | 3 | ||||
-rw-r--r-- | app-shells/fzf/fzf-0.42.0.ebuild | 72 |
2 files changed, 75 insertions, 0 deletions
diff --git a/app-shells/fzf/Manifest b/app-shells/fzf/Manifest index 0e402ab8fced..5085b3ef5c85 100644 --- a/app-shells/fzf/Manifest +++ b/app-shells/fzf/Manifest @@ -4,7 +4,10 @@ DIST fzf-0.40.0-deps.tar.xz 16914048 BLAKE2B c095faee297e2226d595f961bd1362c41e1 DIST fzf-0.40.0.tar.gz 236930 BLAKE2B bbdf8d62c5b9f2e1a85c54e55e42d7a93366ff7f25104d1eb3b28dc49933c10bbe9a8bda68a80597f2734ed6888da744000db5b359a9523b40007f04ede06252 SHA512 03a9aae215b06cd2d0c318e7fb13c6e39012091e9773f00cba702323c5fe3b2b0161f48fe552188689be307e2d308c47afed53e1046a7a767bcd49c98c1dbf60 DIST fzf-0.41.1-deps.tar.xz 16902176 BLAKE2B 96f888a2b00d8156b3423b9074915934b8034183be652cfe0f251cd93b5a44358360a55012c85b07325b193b51dcb266ecb1ec03f966385dfb2d474c7b2065a7 SHA512 0049d82220db6e9fd20d885b3706d6a13dd341d6d6953a7e403d035360612fc594dcc147a01d875302cffeacb977461f385d31ca3020a45cbcb7033f1b661020 DIST fzf-0.41.1.tar.gz 238333 BLAKE2B 3716cfa9d4001902e0901b837a7389c14a8ebb50c602f07cc6be1f345e085fa5a4bf5a6688cb1d15e927881b2eaa5565a49f700ee72d1abb96204e030c7c43e5 SHA512 2c9bf4f0e9b2772f2f911f5d2cb88715ce63b6029ad1a1eb066bdc670c05cf46a387ff8c019065b043858e82fb0234cce071b01f003f0c3f3f1c7720f1c6aa89 +DIST fzf-0.42.0-deps.tar.xz 16860372 BLAKE2B e2ba9a7deca036587e0f4ff40eabb849f834ca5429261ea365efa87b83eb4c8b62e4c24e27a35d29941c09cf7165fa6f408769132d9583527278fc7029e473c5 SHA512 43b09726e5c5d7d987e6bb905f077dfd2e355b7bbb65eb13f86dc1c586711c1331396ae3c8437990a6facab72aad0ba4aff99fe3f2b293554bbb6942799440d8 +DIST fzf-0.42.0.tar.gz 239469 BLAKE2B cdeb40d08345edaecc20082e5c9d487791260ae18dc824e585f522fdcb004dc645a9a59f8d26c01ffaaffffcee6ea9b7030b5e3a79d22098b3fad55e7ff2f9e7 SHA512 9587b8c9d37abcf1ae85b12d5cf3a1179f57241e3932db6801dee9bb952f83621b780d713c1793ccb4c5c36921b9078e156fe989b3e13664201ed729ea03d414 EBUILD fzf-0.39.0.ebuild 1982 BLAKE2B 089b1801f24a2792a635aa5a1e5822f43bc4330d6a58024a003b7a0cff3d9446b44e3bc60d7c09373ab3de8555d3ac9130d5d93a6f00cf57a174949cda9ceaaf SHA512 b81e4265912111d6400b2c4889259ffd08b9f5b42d3a6354d24b91bb3f09f9adfaeae299b1ce35667d08b76743a9b17f9d397190b53c8fb3ab2d9de3325e3660 EBUILD fzf-0.40.0.ebuild 1984 BLAKE2B 20b3d46829789f781a5e102cb79509ceffc4972e1df0a7d58bf5a1735ced5670fd179cc1e29ab4c8aad7bce5c4df80e9b304e57f7bececf42e8dd422330a303a SHA512 60fbc90e97e3bc116d073fd44b732e00ddbba9f0326ec211bdd9876f68fd43546bee8143535aed5d7820135553731aaba710a84c1588e9ba9fbe17a32fc1d88b EBUILD fzf-0.41.1.ebuild 1984 BLAKE2B b731a12f4cf64d7dfb4e37d8cffe50361fb46004f8dc2da1ae05243bbf0c4b67971f8441e05651eedaf3c596e78954c8baf7890fffb75f2c58915087030b0af2 SHA512 04e3e1017aec3629d003a675468416cef086ebe7553e9639ae140e7cc7e22cfd7407b764568a2ba09f51d327f3317178ff9667b16700487cca5749564d6871f2 +EBUILD fzf-0.42.0.ebuild 1984 BLAKE2B 3977258993a5cd4cf5a5bd116ff32bfb55152170e07bb4dd2260d6674fb7ee9681454de2b7efb3e83d167e10f7ce910e3bf254ce74ca9ffeebab533a98ac11cf SHA512 4132025c2a3a3aee2959d8b5f2c17ef6d735ddd8d0831adc8f64401a16aaf94124744d01ad7aaaa3613323938e867c96b50e382e4fde0902ce0c1f0ce7f10429 MISC metadata.xml 469 BLAKE2B 3d6dcce756d040b715bbf17f33faea2c0ddd810857cb38289f59cab134a5b049d21db71c9c3844497643e1728ecd09a924a51ba273f736712543307f2b806d1a SHA512 21f3fef809b276da7f7ad33dbafefc2ebfa86b9ce9aa0dea664724c399a6743923a8a1825cffbd06d885181dc7b305d351e7ab77bd133abb98f601a84783f52f diff --git a/app-shells/fzf/fzf-0.42.0.ebuild b/app-shells/fzf/fzf-0.42.0.ebuild new file mode 100644 index 000000000000..16ac631ed2f2 --- /dev/null +++ b/app-shells/fzf/fzf-0.42.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 2019-2023 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=d471067e3f46f64e6401d1c5717424535fe4c96c +MY_GIT_REV=${MY_GIT_REV:0:7} + +SRC_URI="https://github.com/junegunn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="MIT BSD-with-disclosure" +SLOT="0" +KEYWORDS="~amd64 ~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 +} |