source: trunk/dports/devel/lua-xavante/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: 1.9 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 xavante 2.2.1 v
6name                lua-xavante
7license             GPL-3
8categories          devel www
9maintainers         nomaintainer
10description         A Lua Web Server with WSAPI support
11long_description    Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture \
12                                        based on URI mapped handlers. Xavante currently offers a file handler, a \
13                                        redirect handler and a WSAPI handler. Those are used for general files, \
14                                        URI remapping and WSAPI applications respectively.
15homepage            http://keplerproject.github.com/xavante/
16platforms           darwin
17checksums           md5     fbbb0655095bcd6b8345095f39470a1a \
18                    sha1    9b75b3750bc058eb8af115d081d56d76c67fa4dc \
19                    rmd160  75c2a41d3c333d7e05a221eec2f816431ee8b515
20patchfiles          patch-Makefile.diff \
21                                        patch-config.diff
22post-patch {
23   reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/config
24}
25depends_lib         port:lua \
26                                        port:lua-wsapi \
27                                        port:lua-copas \
28                                        port:lua-luasocket \
29                                        port:lua-luafilesystem
30use_configure           no
31
32post-destroot {
33    file copy ${worksrcpath}/src/codeweb ${worksrcpath}/src/webdav ${destroot}${prefix}/share/lua/5.1
34    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
35    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
36    eval xinstall -m 644 [glob ${worksrcpath}/doc/us/*] ${destroot}${prefix}/share/doc/${name}
37
38    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
39    file copy ${worksrcpath}/examples ${worksrcpath}/web ${destroot}${prefix}/share/examples/${name}
40    file rename ${destroot}${prefix}/share/examples/${name}/examples \
41                ${destroot}${prefix}/share/examples/${name}/config
42}
43
44# https://github.com/keplerproject/xavante/issues/6
45livecheck.url       ${homepage}
46livecheck.regex     {(?i)current version is ([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.