sys-apps/nvimpager: new package, add 0.11.0

Signed-off-by: Tony Olagbaiye <bqv@fron.io>
This commit is contained in:
Tony Olagbaiye
2023-01-20 03:32:32 +00:00
parent 3d035cf528
commit a79039cc68
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST nvimpager-0.11.0.tar.gz 28066 BLAKE2B 108d9df1dd9c47ff3f62ed08665c7fd2b18bf50d99544cd629148d34c7918026e35b26b761a82e069c76192f9014c9800381982ecfe5c7129a8cf0d4b6c124b8 SHA512 4ab17df28e21f872a5cbf10df0dda1e8feacc26cc79a24b1db18a95ec9c6884c5da265bf6f2161d40da9ae730f8a5b0b6ab3721eb2efadb52bd2f19cbe16eb66

View File

@@ -0,0 +1,39 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD-2"
SLOT="0"
IUSE=""
# Disable nvimpager from app-editors/neovim
DEPEND="
app-shells/bash:*
>=app-editors/neovim-0.4.0[-nvimpager]
"
RDEPEND="${DEPEND}"
# Pandoc is needed to generate manpage (Might make optional)
BDEPEND="
app-text/pandoc
"
# Skip compile phase, because there is none.
src_compile() {
true
}
src_install() {
emake PREFIX="${ED}/usr" install
# Fix nvimpager's RUNTIME variable
sed -i "s#${ED}##g" "${ED}/usr/bin/nvimpager" ||
die "sed failed"
}