# $Id$ PNAME="man-db" PVER="2.8.4" 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.4 >= sys-libs/zlib-1.2.5 >= dev-db/db-6.2" SDEPEND=">= dev-util/pkgconfig-0.25 >= 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 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 mirror://${PNAME}/${PNAME}-${PVER}-berkdb-stdlib-ftbfs.patch ) UP2DATE="updatecmd http://download.savannah.gnu.org/releases/${PNAME}/ | highesttarball xz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix ftbfs with db mpatch ${PNAME}-${PVER}-berkdb-stdlib-ftbfs.patch || die } 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-${CRON_VER} man-db || die minstalldocs ChangeLog NEWS README doc/{COPYING*,HACKING,TODO} || die }