# $Id: Portfile 80995 2011-07-22 23:35:20Z raimue@macports.org $

PortSystem      1.0

name            less
version         444
categories      textproc
platforms       darwin
license         {GPL-3+ BSD}
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/
master_sites    ${homepage}

checksums       md5     56f9f76ffe13f70155f47f6b3c87d421 \
                sha1    2a10860360a98c07353bbd5b28ec7477af3ec8a4 \
                rmd160  3ae4bac91a786af638eb07a6b63c85c31db7c829

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+)\\."
