mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
nvimpager: optional pandoc
This commit is contained in:
parent
0021fa2dc7
commit
267998ea43
1 changed files with 16 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nvimpager'
|
# Template file for 'nvimpager'
|
||||||
pkgname=nvimpager
|
pkgname=nvimpager
|
||||||
version=0.7
|
version=0.7
|
||||||
revision=1
|
revision=2
|
||||||
# In pre_build, date is the date of the last commit in the nvimpager repo.
|
# In pre_build, date is the date of the last commit in the nvimpager repo.
|
||||||
# It should be changed when updating to a new version.
|
# It should be changed when updating to a new version.
|
||||||
create_wrksrc=true
|
create_wrksrc=true
|
||||||
|
@ -9,7 +9,7 @@ build_wrksrc="${pkgname}-${version}"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_build_target="nvimpager.configured"
|
make_build_target="nvimpager.configured"
|
||||||
make_build_args="PREFIX=/usr"
|
make_build_args="PREFIX=/usr"
|
||||||
hostmakedepends="neovim pandoc"
|
hostmakedepends="neovim $(vopt_if man pandoc)"
|
||||||
depends="neovim>=0.3.0 bash"
|
depends="neovim>=0.3.0 bash"
|
||||||
short_desc="Wrapper to use neovim as a pager to view manpages, diffs, etc"
|
short_desc="Wrapper to use neovim as a pager to view manpages, diffs, etc"
|
||||||
maintainer="Adrian Herath <adrianisuru@gmail.com>"
|
maintainer="Adrian Herath <adrianisuru@gmail.com>"
|
||||||
|
@ -20,6 +20,13 @@ distfiles="${homepage}/archive/v${version}.tar.gz
|
||||||
checksum="cb4eee0ef2569412b0528eacd7efd6af960bebc11d8749258d8ba83c975ebf4b
|
checksum="cb4eee0ef2569412b0528eacd7efd6af960bebc11d8749258d8ba83c975ebf4b
|
||||||
a80d8c95a2e497e190831f1b580205653c595c6f51b48d4cb89fb33eaea5ed03"
|
a80d8c95a2e497e190831f1b580205653c595c6f51b48d4cb89fb33eaea5ed03"
|
||||||
|
|
||||||
|
build_options="man"
|
||||||
|
desc_option_man="Use pandoc for manpages"
|
||||||
|
|
||||||
|
case "$XBPS_MACHINE" in
|
||||||
|
x86_64*|i686|ppc64le) build_options_default="man" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
cat <<< \
|
cat <<< \
|
||||||
"---
|
"---
|
||||||
|
@ -29,8 +36,15 @@ date: 2020-09-25
|
||||||
> metadata.yml
|
> metadata.yml
|
||||||
|
|
||||||
mv ../AnsiEsc.vba ./
|
mv ../AnsiEsc.vba ./
|
||||||
|
|
||||||
|
if [ -z "$build_option_man" ]; then
|
||||||
|
vsed -i 's,pandoc --.*,touch $@,' makefile
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
if [ -z "$build_option_man" ]; then
|
||||||
|
rm -rf ${DESTDIR}/usr/share/man
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue