2010-02-20 02:27:06 +01:00
|
|
|
# Template file for 'mdocml'
|
|
|
|
pkgname=mdocml
|
2012-11-23 17:25:46 +01:00
|
|
|
version=1.12.1
|
|
|
|
revision=1
|
2013-04-14 04:24:51 +02:00
|
|
|
makedepends="db-devel"
|
2010-02-20 02:27:06 +01:00
|
|
|
short_desc="mdoc macro compiler"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-21 18:00:23 +02:00
|
|
|
license="ISC"
|
2012-11-23 17:25:46 +01:00
|
|
|
homepage="http://mdocml.bsd.lv"
|
|
|
|
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
|
|
|
checksum=12a756cd2901954bccdd25819a16d0ab0501c32c87ad7973570cd65608d32891
|
2010-02-20 02:27:06 +01:00
|
|
|
long_desc="
|
|
|
|
mdocml is a suite of tools compiling -mdoc, the roff macro package of
|
|
|
|
choice for BSD manual pages, and -man, the predominant historical package
|
|
|
|
for UNIX manuals. The mission of mdocml is to deprecate groff, the GNU roff
|
|
|
|
implementation, for displaying -mdoc pages whilst providing token support
|
|
|
|
for -man."
|
|
|
|
|
2012-11-23 17:25:46 +01:00
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
2011-01-11 13:55:47 +01:00
|
|
|
|
2012-11-23 17:25:46 +01:00
|
|
|
do_install() {
|
|
|
|
make MANDIR=/usr/share/man BINDIR=/usr/bin \
|
|
|
|
EXAMPLEDIR=/usr/share/examples/mdocml \
|
|
|
|
PREFIX=/usr DESTDIR=${DESTDIR} install
|
2011-10-21 18:12:51 +02:00
|
|
|
|
2012-11-23 17:25:46 +01:00
|
|
|
# remove devel stuff.
|
2011-10-21 18:00:23 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/{include,lib}
|
2012-11-23 17:25:46 +01:00
|
|
|
|
|
|
|
# Install apropos, whatis and mandocdb.
|
|
|
|
for f in apropos whatis mandocdb; do
|
|
|
|
vinstall ${f} 755 usr/bin
|
|
|
|
if [ -f ${f}.1 ]; then
|
|
|
|
vinstall ${f}.1 644 usr/share/man/man1
|
|
|
|
elif [ -f ${f}.8 ]; then
|
|
|
|
vinstall ${f}.8 644 usr/share/man/man8
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# Create mandoc -> man symlink.
|
|
|
|
ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/bin/man
|
2011-01-11 13:55:47 +01:00
|
|
|
}
|
2013-04-14 04:24:51 +02:00
|
|
|
|
|
|
|
mdocml_package() {
|
|
|
|
conflicts="groff>=0 man-db>=0"
|
|
|
|
provides="man-${version} roff-${version} apropos-${version} whatis-${version}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|