# $Id$ PNAME="less" PVER="443" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Excellent text file viewer." HOMEPAGE="http://www.greenwoodsoftware.com/less/" DEPEND=">= virtual/glibc >= sys-libs/ncurses-5.9" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( http://www.greenwoodsoftware.com/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE}/download.html | grep -i 'recommended:.*(source)' | sed 's/.*version \(.*\) (source.*/\1/'" src_compile() { cd ${SRCDIR} mconfigure --bindir=/bin || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # needed for groff-1.18 and later ... minstalldir /etc/env.d || die echo "LESS=\"-R\"" > ${BINDIR}/etc/env.d/70less || die minstalldocs COPYING LICENSE NEWS README || die }