app-shells/igr: new package

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
Vitaly Zdanevich
2024-04-08 12:22:19 +04:00
parent f7038f4d3d
commit 1ef26f54df
4 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Interactive rg (ripgrep) wrapper in fzf: Interactive grep (search)"
HOMEPAGE="https://github.com/DanielFGray/fzf-scripts"
SRC_URI="https://raw.githubusercontent.com/DanielFGray/fzf-scripts/master/$PN"
LICENSE="GPL-3"
SLOT=0
RDEPEND="
sys-apps/ripgrep
app-shells/fzf
sys-apps/bat
app-editors/vim
"
S="$WORKDIR"
src_unpack() {
cp "$DISTDIR/$PN" "$WORKDIR/" || die
}
PATCHES=(
"$FILESDIR/vim-open-current-line.patch"
)
src_install() {
dobin "${PN}"
}
pkg_postinst() {
einfo "For opening a file on the specific line - install https://github.com/bogado/file-line"
}