source: trunk/dports/textproc/less/Portfile @ 142226

Last change on this file since 142226 was 142226, checked in by raimue@…, 4 years ago

textproc/less:
Add default +pcre variant, closes #49332

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