2010-02-20 01:27:06 +00:00
|
|
|
# Template file for 'mdocml'
|
|
|
|
pkgname=mdocml
|
2015-03-14 07:03:22 +00:00
|
|
|
version=1.13.3
|
2015-05-06 17:38:52 +00:00
|
|
|
revision=2
|
2015-03-04 18:44:01 +00:00
|
|
|
build_pie=yes
|
2014-12-13 17:21:28 +00:00
|
|
|
build_style=configure
|
2014-08-11 05:38:19 +00:00
|
|
|
makedepends="sqlite-devel"
|
2015-03-14 07:03:22 +00:00
|
|
|
provides="man-0_1"
|
|
|
|
replaces="man>=0"
|
2015-05-06 17:38:52 +00:00
|
|
|
conflicts="man-db>=0"
|
2015-03-14 07:03:22 +00:00
|
|
|
conf_files="/etc/man.conf"
|
2014-11-22 07:15:22 +00:00
|
|
|
short_desc="The mandoc UNIX manpage compiler toolset"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-10-21 16:00:23 +00:00
|
|
|
license="ISC"
|
2012-11-23 16:25:46 +00:00
|
|
|
homepage="http://mdocml.bsd.lv"
|
|
|
|
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
2015-03-14 07:03:22 +00:00
|
|
|
checksum=23ccab4800d50bf4c327979af5d4aa1a6a2dc490789cb67c4c3ac1bd40b8cad8
|
2011-10-21 16:12:51 +00:00
|
|
|
|
2014-12-13 17:21:28 +00:00
|
|
|
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
|
2015-05-06 17:38:52 +00:00
|
|
|
sed -i 's/\[\[:<:\]\]%s\[\[:>:\]\]/\\\\<%s\\\\>/' mansearch.c
|
2014-12-13 17:21:28 +00:00
|
|
|
}
|
2014-12-14 19:33:34 +00:00
|
|
|
pre_build() {
|
2014-12-14 19:34:29 +00:00
|
|
|
sed -i "s,CFLAGS.* ,& ${CFLAGS} ,g" Makefile.local
|
2014-12-14 19:33:34 +00:00
|
|
|
}
|
2014-12-13 17:21:28 +00:00
|
|
|
post_install() {
|
2014-12-16 10:25:25 +00:00
|
|
|
# Use symlinks.
|
|
|
|
rm -f ${DESTDIR}/usr/bin/{apropos,man,whatis}
|
|
|
|
rm -f ${DESTDIR}/usr/sbin/makewhatis
|
|
|
|
ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/sbin/makewhatis
|
2015-03-14 07:03:22 +00:00
|
|
|
for f in man apropos whatis; do
|
2014-12-22 09:37:17 +00:00
|
|
|
ln -s mandoc ${DESTDIR}/usr/bin/$f
|
2014-12-16 10:25:25 +00:00
|
|
|
done
|
2015-03-14 07:03:22 +00:00
|
|
|
# man(1) configuration file
|
|
|
|
vconf ${FILESDIR}/man.conf
|
2012-11-23 16:25:46 +00:00
|
|
|
# remove devel stuff.
|
2011-10-21 16:00:23 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/{include,lib}
|
2015-02-23 09:47:44 +00:00
|
|
|
# remove conflicting file
|
|
|
|
rm -f ${DESTDIR}/usr/share/man/man7/roff.7
|
2014-09-22 12:30:59 +00:00
|
|
|
# Daily cron job to generate man db
|
|
|
|
vinstall ${FILESDIR}/makewhatis.cron.daily 755 etc/cron.daily makewhatis
|
2011-01-11 12:55:47 +00:00
|
|
|
}
|