Skip to content
Permalink
Browse files

lua-wsapi: added doc, samples and tests; fixed shebang lines in sampl…

…es; removed destroot target; revision bump

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@77707 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
anddam committed Apr 9, 2011
1 parent 308891c commit f6b715ef1b6b29d24ed91e8fada94038b3129a82
Showing with 13 additions and 2 deletions.
  1. +13 −2 devel/lua-wsapi/Portfile
@@ -3,7 +3,7 @@ PortSystem 1.0

name lua-wsapi
version 1.4
revision 1
revision 2
categories devel
platforms darwin
maintainers and.damore openmaintainer
@@ -37,10 +37,21 @@ patchfiles patch-Makefile.diff \
post-patch {
reinplace "s|#!/usr/bin/lua|#!/usr/bin/env lua|" ${worksrcpath}/src/launcher/wsapi.cgi
reinplace "s|#!/usr/bin/lua|#!/usr/bin/env lua|" ${worksrcpath}/src/launcher/wsapi.fcgi
reinplace "s|lua51|lua|" ${worksrcpath}/samples/cgi-example.lua
reinplace "s|lua51|lua|" ${worksrcpath}/samples/fastcgi-example.lua
}

configure.pre_args lua

destroot.target-append install-fcgi install-rocks
destroot.target-append install-fcgi
destroot.post_args-append PREFIX=${prefix}

post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}

xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 {*}[glob ${worksrcpath}/doc/us/*] ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/samples ${worksrcpath}/tests ${destroot}${prefix}/share/examples/${name}
}

0 comments on commit f6b715e

Please sign in to comment.
You can’t perform that action at this time.