mdocml: use less(1) as default pager.

util-linux more(1) is not an acceptable default since it cannot scroll
back in a pipe (contrary to OpenBSD more(1)).

Use less(1) instead, it's part of base-system and everyone I know uses it.

You can easily revert to a broken pager by setting "MANPAGER=more".

Closes #4375.
This commit is contained in:
Christian Neukirchen 2016-07-05 17:46:50 +02:00
parent b1d52a5445
commit f86bfd6b0d
1 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,10 @@
# Template file for 'mdocml' # Template file for 'mdocml'
pkgname=mdocml pkgname=mdocml
version=1.13.3 version=1.13.3
revision=6 revision=7
build_style=configure build_style=configure
makedepends="sqlite-devel" makedepends="sqlite-devel"
depends="less"
provides="man-0_1" provides="man-0_1"
conf_files="/etc/man.conf" conf_files="/etc/man.conf"
short_desc="The mandoc UNIX manpage compiler toolset" short_desc="The mandoc UNIX manpage compiler toolset"
@ -21,11 +22,15 @@ alternatives="
man:whatis.1:/usr/share/man/man1/mandoc-whatis.1 man:whatis.1:/usr/share/man/man1/mandoc-whatis.1
man:apropos.1:/usr/share/man/man1/mandoc-apropos.1" man:apropos.1:/usr/share/man/man1/mandoc-apropos.1"
pre_configure() { post_extract() {
sed -i 's,PREFIX=.*,PREFIX=/usr,g' configure sed -i 's,PREFIX=.*,PREFIX=/usr,g' configure
sed -i 's,${PREFIX}/man,${PREFIX}/share/man,g' configure sed -i 's,${PREFIX}/man,${PREFIX}/share/man,g' configure
sed -i "s,/usr/local,${XBPS_CROSS_BASE}/usr,g" configure sed -i "s,/usr/local,${XBPS_CROSS_BASE}/usr,g" configure
sed -i 's/\[\[:<:\]\]%s\[\[:>:\]\]/\\\\<%s\\\\>/' mansearch.c sed -i 's/\[\[:<:\]\]%s\[\[:>:\]\]/\\\\<%s\\\\>/' mansearch.c
sed -i 's,bin/more,bin/less,g' main.c *.1
sed -i 's,.Xr more,.Xr less,g' *.1
sed -i 's,"more","less",g' manpage.c
} }
pre_build() { pre_build() {
sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local