Ticket #12063: less-403.diff

File less-403.diff, 1.4 KB (added by nox@…, 17 years ago)
  • Portfile

     
    22
    33PortSystem 1.0
    44name            less
    5 version         394
    6 revision        1
     5version         403
    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 46d8d2008f7b6f6c63fb497e5c3a204a \
     20                sha1 f9fa97a9e215b6c62c1bfd049e03725a26ae71e8 \
     21                rmd160 52e7a157bb5d591421e1ac08e9d8122431551de9
    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}-(\\d+)\\."