Changeset 77707 for trunk/dports


Ignore:
Timestamp:
Apr 9, 2011, 10:39:41 PM (13 years ago)
Author:
and.damore@…
Message:

lua-wsapi: added doc, samples and tests; fixed shebang lines in samples; removed destroot target; revision bump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/lua-wsapi/Portfile

    r77435 r77707  
    44name                lua-wsapi
    55version             1.4
    6 revision            1
     6revision            2
    77categories          devel
    88platforms           darwin
     
    3838    reinplace "s|#!/usr/bin/lua|#!/usr/bin/env lua|" ${worksrcpath}/src/launcher/wsapi.cgi
    3939    reinplace "s|#!/usr/bin/lua|#!/usr/bin/env lua|" ${worksrcpath}/src/launcher/wsapi.fcgi
     40    reinplace "s|lua51|lua|" ${worksrcpath}/samples/cgi-example.lua
     41    reinplace "s|lua51|lua|" ${worksrcpath}/samples/fastcgi-example.lua
    4042}
    4143
    4244configure.pre_args  lua
    4345
    44 destroot.target-append  install-fcgi install-rocks
     46destroot.target-append  install-fcgi
    4547destroot.post_args-append PREFIX=${prefix}
    4648
     49post-destroot {
     50    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     51    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
     52   
     53    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
     54    xinstall -m 644 {*}[glob ${worksrcpath}/doc/us/*] ${destroot}${prefix}/share/doc/${name}
     55    file copy ${worksrcpath}/samples ${worksrcpath}/tests ${destroot}${prefix}/share/examples/${name}
     56}
     57
Note: See TracChangeset for help on using the changeset viewer.