mdocml: update to 1.14.2.

This commit is contained in:
Leah Neukirchen 2017-07-29 18:54:33 +02:00
parent 1f009cf8c0
commit beec4783e8
1 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,8 @@
# Template file for 'mdocml'
pkgname=mdocml
version=1.14.1
revision=2
version=1.14.2
revision=1
wrksrc="mandoc-1.14.2"
build_style=configure
makedepends="zlib-devel"
depends="less"
@ -10,9 +11,9 @@ conf_files="/etc/man.conf"
short_desc="The mandoc UNIX manpage compiler toolset"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="ISC"
homepage="http://mdocml.bsd.lv"
distfiles="${homepage}/snapshots/mdocml-${version}.tar.gz"
checksum=356954f141ec6f5635e938c826f2e16e4619bb361c64d84a31f6775d030a615b
homepage="http://mandoc.bsd.lv"
distfiles="http://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz"
checksum=3c5562a8131697f80edbba81cdb8f6eeb5e1692388d8d2945fbbdac06ede1dfc
alternatives="
man:man:/usr/bin/mandoc
@ -26,7 +27,6 @@ post_extract() {
# use less(1)
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 main.c
}
pre_configure() {
cat >configure.local <<EOF
@ -41,6 +41,10 @@ CFLAGS="$CFLAGS"
CC="$CC"
HAVE_REWB_BSD=0
EOF
case "$XBPS_TARGET_MACHINE" in
*-musl) echo 'UTF8_LOCALE="C.UTF-8"' >>configure.local;;
esac
}
post_install() {
# Rename mans for alternatives