# $Id$ PNAME="man-db" PVER="2.11.2" PBUILD="r1" PCAT="sys-apps" DESCRIPTION="Tools for searching and reading man pages." HOMEPAGE="http://savannah.nongnu.org/projects/man-db" DEPEND=">= virtual/glibc >= sys-apps/less-633 >= sys-apps/coreutils-9.3 >= sys-apps/grep-3 >= sys-apps/groff-1.22 >= dev-libs/libpipeline-1.5 >= sys-libs/zlib-1.2.13 >= dev-db/db-6.2" SDEPEND=">= virtual/pkgconfig >= sys-dev/gettext-0.18" PROVIDE="virtual/man" SRCFILE="${PNAME}-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" # hint: make check may fail if no basic locales are installed! # atm disabled, adjust locale.conf msetfeature "!check" sminclude mbuild mtools systemd CRON_VER=1.2 SRC_URI=( http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/man-db.cron-${CRON_VER} mirror://${PNAME}/man-db.confd ) UP2DATE="updatecmd http://download.savannah.gnu.org/releases/${PNAME}/ | highesttarball xz" src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir) \ --disable-setuid \ --with-browser=/usr/bin/lynx \ --with-vgrind=/usr/bin/vgrind \ --with-grap=/usr/bin/grap \ --with-db=db \ --with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \ --with-systemdsystemunitdir=$(mget-systemd-unit-dir) \ || die mmake || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die minstallconf man-db.confd man-db || die minstallcron daily man-db.cron-${CRON_VER} man-db || die minstalldocs ChangeLog NEWS README doc/{COPYING*,HACKING,TODO} || die }