Files
guru/app-shells/fzf-fish/fzf-fish-9.0.ebuild
Alessandro Barbieri 291c1186e6 app-shells/fzf-fish: add 9.0, drop 8.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2022-06-14 10:00:24 +02:00

56 lines
1.2 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Augment your fish command line with fzf key bindings"
HOMEPAGE="https://github.com/PatrickF1/fzf.fish"
SRC_URI="https://github.com/PatrickF1/fzf.fish/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN/-/.}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
>=app-shells/fish-3.2.0
>=app-shells/fzf-0.27.2
>=sys-apps/bat-0.16.0
>=sys-apps/fd-8.3.0
"
DEPEND="${RDEPEND}"
BDEPEND="
test? (
app-shells/clownfish
app-shells/fishtape
app-shells/fzf-fish
dev-vcs/git
)
"
DOCS=( README.md )
#RESTRICT="!test? ( test )"
RESTRICT="test" # how to run tests?
src_install() {
insinto "/usr/share/fish/vendor_completions.d"
doins completions/*
insinto "/usr/share/fish/vendor_conf.d"
doins conf.d/*
insinto "/usr/share/fish/vendor_functions.d"
doins functions/*
einstalldocs
}
src_test() {
# it want a git repo
git init || die
git config --global user.email "you@example.com" || die
git config --global user.name "Your Name" || die
git add . || die
git commit -m 'init' || die
fish -c 'fishtape tests/*/*.fish' || die
}