2010-02-20 01:27:06 +00:00
|
|
|
# Template file for 'mdocml'
|
|
|
|
pkgname=mdocml
|
2014-02-21 13:44:17 +00:00
|
|
|
version=1.12.3
|
2014-03-13 17:44:29 +00:00
|
|
|
revision=3
|
2014-03-13 14:05:13 +00:00
|
|
|
makedepends="db185"
|
|
|
|
replaces="groff>=0 man-db>=0"
|
2010-02-20 01:27:06 +00:00
|
|
|
short_desc="mdoc macro compiler"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
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"
|
2014-02-21 13:44:17 +00:00
|
|
|
checksum=8ae7f7d471d52313707c4d78b25846dc4edca395b36ad20f24dead5399c13ee6
|
2010-02-20 01:27:06 +00:00
|
|
|
|
2012-11-23 16:25:46 +00:00
|
|
|
do_build() {
|
2014-03-13 14:05:13 +00:00
|
|
|
make DBLIB=-ldb ${makejobs}
|
2012-11-23 16:25:46 +00:00
|
|
|
}
|
2011-01-11 12:55:47 +00:00
|
|
|
|
2012-11-23 16:25:46 +00:00
|
|
|
do_install() {
|
|
|
|
make MANDIR=/usr/share/man BINDIR=/usr/bin \
|
|
|
|
EXAMPLEDIR=/usr/share/examples/mdocml \
|
|
|
|
PREFIX=/usr DESTDIR=${DESTDIR} install
|
2011-10-21 16:12:51 +00:00
|
|
|
|
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}
|
2012-11-23 16:25:46 +00:00
|
|
|
|
2014-03-13 17:44:29 +00:00
|
|
|
# Install apropos, catman, mandocdb and whatis.
|
|
|
|
for f in apropos catman whatis mandocdb; do
|
2012-11-23 16:25:46 +00:00
|
|
|
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
|
2011-01-11 12:55:47 +00:00
|
|
|
}
|