mdocml: conflict with man-db, fix whatis(1).

This commit is contained in:
Christian Neukirchen 2015-05-06 19:38:52 +02:00
parent 14b9fa5211
commit 269064ce99

View file

@ -1,12 +1,13 @@
# Template file for 'mdocml'
pkgname=mdocml
version=1.13.3
revision=1
revision=2
build_pie=yes
build_style=configure
makedepends="sqlite-devel"
provides="man-0_1"
replaces="man>=0"
conflicts="man-db>=0"
conf_files="/etc/man.conf"
short_desc="The mandoc UNIX manpage compiler toolset"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -19,6 +20,7 @@ pre_configure() {
sed -i 's,PREFIX=.*,PREFIX=/usr,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/\[\[:<:\]\]%s\[\[:>:\]\]/\\\\<%s\\\\>/' mansearch.c
}
pre_build() {
sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local