notcurses: optional pandoc

This commit is contained in:
q66 2020-11-24 03:55:49 +01:00
parent 8690cd6e44
commit f52b465ae6

View file

@ -1,10 +1,10 @@
# Template file for 'notcurses'
pkgname=notcurses
version=2.0.7
revision=1
revision=2
build_style=cmake
configure_args="-DUSE_STATIC=ON"
hostmakedepends="pkg-config pandoc"
configure_args="-DUSE_STATIC=ON $(vopt_bool man USE_PANDOC)"
hostmakedepends="pkg-config $(vopt_if man pandoc)"
makedepends="libunistring-devel ffmpeg-devel ncurses-libtinfo-devel qrcodegen-devel doctest-devel"
depends="ncurses-base"
short_desc="Blingful character graphics/TUI library"
@ -15,6 +15,13 @@ changelog="https://raw.githubusercontent.com/dankamongmen/notcurses/master/NEWS.
distfiles="https://github.com/dankamongmen/notcurses/archive/v${version}.tar.gz"
checksum=cc87e66f9dc3e9d0e591de70870dec5d8b36e660f18f10adae7f45abb0f0320a
build_options="man"
desc_option_man="Use pandoc for manpages"
case "$XBPS_MACHINE" in
x86_64*|i686|ppc64le) build_options_default="man" ;;
esac
notcurses-devel_package() {
depends="notcurses-${version}_${revision}"
short_desc+=" - development files"
@ -25,7 +32,9 @@ notcurses-devel_package() {
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/doc
if [ "$build_option_man" ]; then
vmove usr/share/man/man3
fi
}
}
@ -35,6 +44,8 @@ notcurses-progs_package() {
pkg_install() {
vmove usr/bin
vmove usr/share/notcurses
if [ "$build_option_man" ]; then
vmove usr/share/man/man1
fi
}
}