source: trunk/dports/textproc/less/Portfile

Last change on this file was 142227, checked in by raimue@…, 21 months ago

textproc/less:
Update to version 481.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 142227 2015-11-07 14:17:59Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            less
6version         481
7categories      textproc
8platforms       darwin
9license         {GPL-3+ BSD}
10maintainers     raimue openmaintainer
11description     Less is a program similar to more, which allows backward movement.
12long_description \
13                Less is a program similar to more, but which allows backward \
14                movement in the file as well as forward movement. Also, less does \
15                not have to read the entire input file before starting, so with \
16                large input files it starts up faster than text editors like vi. \
17                Less uses termcap (or terminfo on some systems), so it can run on \
18                a variety of terminals. There is even limited support for \
19                hardcopy terminals.
20homepage        http://www.greenwoodsoftware.com/less/
21master_sites    ${homepage}
22
23checksums       rmd160  1454dcb430b49ae9724350d99b9a4e2e50660b7e \
24                sha256  3fa38f2cf5e9e040bb44fffaa6c76a84506e379e47f5a04686ab78102090dda5
25
26depends_build   bin:grep:grep
27depends_lib     port:ncurses \
28                port:gettext
29
30configure.args  --with-regex=posix
31
32post-destroot {
33    set docdir ${prefix}/share/doc/${name}-${version}
34
35    xinstall -d ${destroot}${docdir}
36    xinstall -m 0644 -W ${worksrcpath} NEWS README ${destroot}${docdir}
37}
38
39default_variants +pcre
40
41variant pcre description {Use PCRE regular expressions} {
42    depends_lib-append port:pcre
43    configure.args-replace --with-regex=posix --with-regex=pcre
44}
45
46livecheck.type  regex
47livecheck.url   ${homepage}
48livecheck.regex "The current released version is ${name}-(\\d+)\\."
Note: See TracBrowser for help on using the repository browser.