summaryrefslogtreecommitdiff
path: root/sys-apps/nvimpager/nvimpager-0.14.0.ebuild
blob: fd1b25a557e337062d6b7e6c85db68746ad0c415 (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
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

LUA_COMPAT=( lua5-{1,3,4} luajit )

inherit lua-single

DESCRIPTION="Use nvim as a pager to view manpages, diff, etc with nvim's syntax highlighting"
HOMEPAGE="https://github.com/lucc/nvimpager"
SRC_URI="https://github.com/lucc/nvimpager/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
REQUIRED_USE="test? ( ${LUA_REQUIRED_USE} )"
RESTRICT="!test? ( test )"

DEPEND="
	>=app-editors/neovim-0.12.3[-nvimpager]
	app-shells/bash
"
RDEPEND="${DEPEND}"
BDEPEND="
	app-text/scdoc
	test? ( $(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]') )
"

src_compile() { :; }

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
}

src_test() {
	# some tests are broken on neovim-0.10.0
	# https://github.com/lucc/nvimpager/issues/99
	emake test BUSTED='busted --exclude-tags=nix,v10'
}