# $Id$ PNAME="man" PVER="1.6g" PBUILD="r3" PCATEGORIE="sys-apps" DESCRIPTION="Standard commands to read man pages." HOMEPAGE="http://freshmeat.net/projects/man/" DEPEND=">= virtual/glibc" SDEPEND=">= sys-apps/sed-4" PROVIDE="virtual/man" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://primates.ximian.com/~flucifredi/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/man-1.6f-unicode.patch mirror://${PNAME}/man-1.5m2-apropos.patch mirror://${PNAME}/man-1.5p-defmanpath-symlinks.patch mirror://${PNAME}/man-1.5p-search-order.patch mirror://${PNAME}/man-1.6b-more-sections.patch mirror://${PNAME}/man-1.6c-cut-duplicate-manpaths.patch mirror://${PNAME}/man-1.6e-headers.patch mirror://${PNAME}/man-1.6e-man2html-bzip2.patch mirror://${PNAME}/man-1.6e-readonly-whatis2.patch mirror://${PNAME}/makewhatis.cron ) UP2DATE="updatecmd http://primates.ximian.com/~flucifredi/man | firsttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # unicode fixups mpatch man-1.6f-unicode.patch || die # fix the look of some man pages on some locales mpatch man-1.5m2-apropos.patch || die # fix man pathes; some of them are symlinks and # it is not neccessary to process them twice mpatch man-1.5p-defmanpath-symlinks.patch || die # fix the search order that system man-pages will be found first mpatch man-1.5p-search-order.patch || die # add more sections to respect xorg man pages mpatch man-1.6b-more-sections.patch || die # remove duplicate man pathes when they are symlinked mpatch man-1.6c-cut-duplicate-manpaths.patch || die # fixed some missing headers mpatch man-1.6e-headers.patch || die # add bzip2 support to man2html mpatch man-1.6e-man2html-bzip2.patch || die # adds the -R switch to the PAGER variable sed -i 's@-is@&R@g' configure || die # forces the use of ${CFLAGS} sed -i "s/CFLAGS = /CFLAGS = ${CFLAGS} /" man2html/Makefile.in || die # prevents redundant results when using programs such as whatis sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in || die } src_compile() { cd ${SRCDIR} ./configure -default -confdir=/etc || die mmake || die } src_install() { cd ${SRCDIR} make PREFIX=${BINDIR} install || die minstallcron daily makewhatis.cron makewhatis || die minstalldocs COPYING HISTORY README TODO || die }