# $Id: less-436-r2.smage2 3612 2009-10-27 13:42:53Z niro $ PNAME="less" PVER="436" PBUILD="r4" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Excellent text file viewer." HOMEPAGE="http://www.greenwoodsoftware.com/less/" DEPEND=">= virtual/glibc >= sys-libs/ncurses-5.8" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude 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_prepare() { munpack ${SRCFILE} || die } src_compile() { cd ${SRCDIR} mconfigure --bindir=/bin || die mmake || die } src_install() { cd ${SRCDIR} # some needed directories minstalldir /bin || die minstalldir /usr/share/man/man1 || die minstalldir /etc/env.d || die minstallexec less /bin || die minstallexec lessecho /bin || die minstallexec lesskey /bin || die # needed for groff-1.18 and later ... echo "LESS=\"-R\"" > ${BINDIR}/etc/env.d/70less || die minstallfile less.nro /usr/share/man/man1/less.1 || die minstallfile lesskey.nro /usr/share/man/man1/lesskey.1 || die minstalldocs COPYING LICENSE NEWS README || die }