blob: bbcf57925e8f1bc5592a01fb3423d666dc551e03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# 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}.tar.gz"
S="${WORKDIR}/${PN/-/.}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
app-shells/fish
app-shells/fzf
sys-apps/bat
sys-apps/fd
"
DEPEND="
${RDEPEND}
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
}
|