# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem      1.0

name            less
version         436
categories      textproc
maintainers     raimue openmaintainer
description     Less is a program similar to more, which allows backward movement.
long_description \
                Less is a program similar to more, but which allows backward \
                movement in the file as well as forward movement. Also, less does \
                not have to read the entire input file before starting, so with \
                large input files it starts up faster than text editors like vi. \
                Less uses termcap (or terminfo on some systems), so it can run on \
                a variety of terminals. There is even limited support for \
                hardcopy terminals.
homepage        http://www.greenwoodsoftware.com/less/
platforms       darwin
master_sites    ${homepage}

checksums       md5     817bf051953ad2dea825a1cdf460caa4 \
                sha1    f78998a1a79a7e1962c901dd41bdc3d1c2005471 \
                rmd160  b186b76fcdbf38056b32fbc1b54877dccf64a8ec

depends_build   bin:grep:grep
depends_lib     port:ncurses \
                port:gettext

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}

    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} NEWS README ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex "The current released version is ${name}-(\\d+)\\."
