[77707] trunk/dports/devel/lua-wsapi/Portfile

and.damore at macports.org and.damore at macports.org
Sat Apr 9 15:39:42 PDT 2011


Revision: 77707
          http://trac.macports.org/changeset/77707
Author:   and.damore at macports.org
Date:     2011-04-09 15:39:41 -0700 (Sat, 09 Apr 2011)
Log Message:
-----------
lua-wsapi: added doc, samples and tests; fixed shebang lines in samples; removed destroot target; revision bump

Modified Paths:
--------------
    trunk/dports/devel/lua-wsapi/Portfile

Modified: trunk/dports/devel/lua-wsapi/Portfile
===================================================================
--- trunk/dports/devel/lua-wsapi/Portfile	2011-04-09 21:20:43 UTC (rev 77706)
+++ trunk/dports/devel/lua-wsapi/Portfile	2011-04-09 22:39:41 UTC (rev 77707)
@@ -3,7 +3,7 @@
 
 name                lua-wsapi
 version             1.4
-revision            1
+revision            2
 categories          devel
 platforms           darwin
 maintainers         and.damore openmaintainer
@@ -37,10 +37,21 @@
 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}
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110409/91abe77c/attachment-0001.html>


More information about the macports-changes mailing list