# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 name less version 661 revision 0 categories textproc platforms darwin license {GPL-3+ BSD} maintainers {raimue @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 https://www.greenwoodsoftware.com/less/ master_sites ${homepage} checksums rmd160 02e59df98222b228a04c38e018d5b17e482fede5 \ sha256 2b5f0167216e3ef0ffcb0c31c374e287eb035e4e223d5dae315c2783b6e738ed \ size 648198 depends_lib port:ncurses \ port:gettext configure.args --with-regex=posix post-destroot { set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} NEWS README ${destroot}${docdir} } default_variants +pcre variant pcre description {Use PCRE regular expressions} { depends_lib-append port:pcre2 configure.args-replace --with-regex=posix --with-regex=pcre2 } livecheck.type regex livecheck.url ${homepage} livecheck.regex "The current released version is ${name}-(\\d+)\\."