source: trunk/dports/devel/lua-wsapi/Portfile

Last change on this file was 114431, checked in by and.damore@…, 4 years ago

Drop maintenance, leave openmaintainer in ports with shared maintenance

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 114431 2013-12-08 09:48:42Z ryandesign@macports.org $
2PortSystem 1.0
3PortGroup           github 1.0 
4
5github.setup        keplerproject wsapi 1.5 v
6name                lua-${github.project}
7license             GPL-3
8categories          devel
9platforms           darwin
10maintainers         nomaintainer
11description         Lua Web Server API
12long_description    WSAPI is an API that abstracts the web server from Lua web applications. \
13                    By coding against WSAPI your application can run on any of the supported \
14                    servers and interfaces (currently CGI, FastCGI and Xavante, on Windows \
15                    and UNIX-based systems).
16
17github.tarball_from downloads
18checksums           md5     5c983a1db3659ed73e28c473ffd4f4d5 \
19                    sha1    8c9c86f4cb45f94afb110390c6af808ed8238fe4 \
20                    rmd160  a675f92700b588771f9da977912fb0171a28e0bf
21
22depends_lib         port:lua \
23                    port:lua-luafilesystem \
24                    port:lua-rings \
25                    port:fcgi
26
27patchfiles          patch-Makefile.diff \
28                    patch-configure.diff \
29                    patch-src-fastcgi-lfcgi.c.diff
30
31post-patch {
32    reinplace "s|\x0D||g" ${worksrcpath}/src/launcher/wsapi.cgi
33    reinplace "s|#!/usr/bin/lua|#!/usr/bin/env lua|" ${worksrcpath}/src/launcher/wsapi.cgi
34    reinplace "s|#!/usr/bin/lua|#!/usr/bin/env lua|" ${worksrcpath}/src/launcher/wsapi.fcgi
35    reinplace "s|lua51|lua|" ${worksrcpath}/samples/cgi-example.lua
36    reinplace "s|lua51|lua|" ${worksrcpath}/samples/fastcgi-example.lua
37}
38
39configure.pre_args  lua
40
41destroot.target-append  install-fcgi
42destroot.post_args-append PREFIX=${prefix}
43
44post-destroot {
45    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
46    eval xinstall -m 644    ${worksrcpath}/README \
47                            [glob ${worksrcpath}/doc/us/*] \
48        ${destroot}${prefix}/share/doc/${name}
49
50    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
51    file copy   ${worksrcpath}/samples \
52                ${worksrcpath}/tests \
53        ${destroot}${prefix}/share/examples/${name}
54}
55
Note: See TracBrowser for help on using the repository browser.