New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12063: less.patch

File less.patch, 1.4 KB (added by simon@…, 5 years ago)

Added patch to also update to the newest version 306, contains the patch of the reporter so it's the only one necessary.

  • Portfile

     
    22 
    33PortSystem 1.0 
    44name            less 
    5 version         394 
    6 revision        1 
     5version         406 
    76categories      textproc 
    87maintainers     mike.mclean@pobox.com 
    98description     Less is a program similar to more, which allows backward movement. 
     
    1413                        Less uses termcap (or terminfo on some systems), so it can run on \ 
    1514                        a variety of terminals. There is even limited support for \ 
    1615                        hardcopy terminals. 
    17 homepage        http://www.greenwoodsoftware.com/less/index.html 
     16homepage        http://www.greenwoodsoftware.com/less/ 
    1817platforms       darwin 
    19 master_sites    http://www.greenwoodsoftware.com/less/ 
    20 checksums       md5 a9f072ccefa0d315b325f3e9cdbd4b97 
     18master_sites    ${homepage} 
     19checksums       md5 c6062663b5be92dfcdfd6300ba0811e4 \ 
     20                sha1 7aeab848682c3ac7cd9ba54e4c96199f9fdf25e5 \ 
     21                rmd160 db62576ba6976cc1efe17680b6a6da5237dba425 
    2122destroot.destdir        prefix=${destroot}${prefix} 
    2223depends_lib     port:ncursesw 
    23 configure.env   CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" 
     24 
     25post-destroot { 
     26    set docdir ${prefix}/share/doc/${name}-${version} 
     27 
     28    xinstall -m 0755 -d ${destroot}${docdir} 
     29    xinstall -m 0644 -W ${worksrcpath} NEWS README ${destroot}${docdir} 
     30} 
     31 
     32livecheck.check regex 
     33livecheck.url   ${homepage}news.html 
     34livecheck.regex "The current released version is ${name}-(\[0-9\]+)\\."