# $Id$ PNAME="man-db" PVER="2.7.1" 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-444 >= sys-apps/coreutils-8.15 >= sys-apps/grep-2.9 >= sys-apps/groff-1.21 >= dev-libs/libpipeline-1.3 >= sys-libs/zlib-1.2.5 >= dev-db/db-6.0" SDEPEND=">= dev-util/pkgconfig-0.25 >= sys-dev/gettext-0.18" PROVIDE="virtual/man" SRCFILE="${PNAME}-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/man-db.cron mirror://${PNAME}/man-db.confd ) UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}/?C=M;O=A' | lasttarball 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" \ || die mmake || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die minstallconf man-db.confd man-db || die minstallcron daily man-db.cron man-db || die minstalldocs ChangeLog NEWS README doc/{COPYING*,HACKING,TODO} || die }