mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-shells/fzf: add 0.66.1
Closes: https://github.com/gentoo/gentoo/pull/44304 Closes: https://bugs.gentoo.org/965021 Closes: https://bugs.gentoo.org/926042 Closes: https://bugs.gentoo.org/900859 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -4,3 +4,5 @@ DIST fzf-0.65.1-deps.tar.xz 5920392 BLAKE2B e2286a075bb5d40ec2808c7a2bc5331e4fd1
|
||||
DIST fzf-0.65.1.tar.gz 347658 BLAKE2B fbae5fb2a49041d2ec8fbafaf49015d532e4c1dc50254933b2992ad1244d64ad01d2b7d483b13a5b305aa5e6a4b94f9ed0710be64f35ae53a38c6bfcc899ede9 SHA512 30e1a18c952a624a3b91ec66c492c6976b30b2a8c89f595fa091d26aaf066d83b61e788239c5919b3a863c51f45d0578b6a9f45ccaf0aa32ef97fe468ab0373e
|
||||
DIST fzf-0.65.2-deps.tar.xz 5911688 BLAKE2B 53dd8e6321188d565778eeb7e46a15cf147f183e31769d8158e4520d6dc2ba8a385c674d959adf5c0292a411ecf57fee68dd436370a7ff12ccc435a6c0766d3d SHA512 8788cea3f9fde02ef148bb08519535af5226d8fb6f9b81f73f22f545867092653694101c402aa08d33170e30e05eefcc0e62b530b7d306f10607aae945567d60
|
||||
DIST fzf-0.65.2.tar.gz 347841 BLAKE2B 4e148f15d48571ea27b9723797682828b8c8b2c341ed09c4d82c6ba378f5d9d2e215198afab6e93180e12a818241e88053a368a4007a18972ba3049ce00a0b90 SHA512 5d8a872ad041946f30a000361ae26dbfe66050bfba38462b816ffee54d63dfe1d99103e326193511204268dbc165ccb2efd7c5be1debbec82b5ba70e8d05365d
|
||||
DIST fzf-0.66.1-vendor.tar.xz 1180112 BLAKE2B 6b593b9e8183f8f1e089893238cd7439639bd15164ed2f2d3224d31739fb2f7691e971b1e89a8c646cbe3f7df17cf1deb6caea66332de1656bbf061d0f57ea3b SHA512 d0eec5267861ad83a629544e7320d6e15cdf9d206137985911ccaec3cc66e37a086aab8b6176b621584f7fe60847a98dafe9b74aa3662276f6b2138dacf494fe
|
||||
DIST fzf-0.66.1.tar.gz 361208 BLAKE2B 90b05b1a666291f0e366a0aa3f7b7fa488d1a49e4e0de8702c768909d9e13ff129665128af0cf524e3a32a5eb795b4c9e9daca047a48c06f52be8e03197a5179 SHA512 3ad5e605cd8aa8f708642eaf2525ce8c279d15da0b648c8f608e886a5b3b1e29b90e37f311b82fd478b1cd17befdfbb9a0560d0c213ad216ba9282e06bf69e0c
|
||||
|
||||
12
app-shells/fzf/files/README.gentoo
Normal file
12
app-shells/fzf/files/README.gentoo
Normal file
@@ -0,0 +1,12 @@
|
||||
To add fzf support to your shell, make sure to use the right file
|
||||
from /usr/share/fzf.
|
||||
|
||||
For bash, add the following line to ~/.bashrc:
|
||||
|
||||
# source /usr/share/bash-completion/completions/fzf
|
||||
# source /usr/share/fzf/key-bindings.bash
|
||||
|
||||
Plugins for Vim and Neovim are installed to respective directories
|
||||
and will work out of the box.
|
||||
|
||||
For fzf support in tmux see fzf-tmux(1).
|
||||
60
app-shells/fzf/fzf-0.66.1.ebuild
Normal file
60
app-shells/fzf/fzf-0.66.1.ebuild
Normal file
@@ -0,0 +1,60 @@
|
||||
# Copyright 2019-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module readme.gentoo-r1 shell-completion
|
||||
|
||||
DESCRIPTION="General-purpose command-line fuzzy finder, written in Golang"
|
||||
HOMEPAGE="https://github.com/junegunn/fzf"
|
||||
|
||||
MY_GIT_REV=c1b259c042c0855a0cbb547192fcdbb1940248db
|
||||
|
||||
SRC_URI="https://github.com/junegunn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"
|
||||
|
||||
LICENSE="MIT BSD-with-disclosure"
|
||||
# Dependent licenses
|
||||
LICENSE+=" BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
|
||||
src_compile() {
|
||||
local go_ldflags=(
|
||||
-X main.version=${PV}
|
||||
-X main.revision=${MY_GIT_REV:0:7}
|
||||
)
|
||||
ego build -trimpath -ldflags "${go_ldflags[*]}" -o bin/${PN} .
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test -v github.com/junegunn/fzf/src{,/algo,/tui,/util}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/${PN}
|
||||
doman man/man1/${PN}.1
|
||||
|
||||
dobin bin/${PN}-tmux
|
||||
doman man/man1/${PN}-tmux.1
|
||||
|
||||
newbashcomp shell/completion.bash ${PN}
|
||||
newzshcomp shell/completion.zsh _${PN}
|
||||
|
||||
insinto /usr/share/vim/vimfiles/plugin
|
||||
doins plugin/${PN}.vim
|
||||
|
||||
insinto /usr/share/nvim/runtime/plugin
|
||||
doins plugin/${PN}.vim
|
||||
|
||||
insinto /usr/share/fzf
|
||||
doins shell/key-bindings.bash
|
||||
doins shell/key-bindings.fish
|
||||
doins shell/key-bindings.zsh
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
Reference in New Issue
Block a user