mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
sys-apps/ov: drop 0.11.0, add 0.11.2
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
35
sys-apps/ov/ov-0.11.2.ebuild
Normal file
35
sys-apps/ov/ov-0.11.2.ebuild
Normal file
@@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit bash-completion-r1 edo go-module
|
||||
|
||||
DESCRIPTION="Feature-rich terminal pager"
|
||||
HOMEPAGE="https://github.com/noborus/ov"
|
||||
SRC_URI="https://github.com/noborus/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT Apache-2.0 BSD-2 BSD MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_compile() {
|
||||
ego build -v -x -o ${PN} -ldflags="-X main.Version=${PV}"
|
||||
edo ./ov --config ov.yaml --completion fish > ov.fish
|
||||
edo ./ov --config ov.yaml --completion bash > ov.bash
|
||||
edo ./ov --config ov.yaml --completion zsh > ov.zsh
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md ov{,-less}.yaml
|
||||
dobin ov
|
||||
newbashcomp ov.bash ov
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins ov.fish
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins ov.zsh _ov
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test $(ego list ./... | grep -v /vendor/)
|
||||
}
|
||||
Reference in New Issue
Block a user