# $Id: Portfile 57945 2009-09-19 15:34:31Z and.damore@macports.org $
PortSystem          1.0

name                lua-xavante
version             2.0.1
categories          devel www
maintainers         and.damore openmaintainer
description         A Lua Web Server with WSAPI support
long_description    Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture \
					based on URI mapped handlers. Xavante currently offers a file handler, a \
					redirect handler and a WSAPI handler. Those are used for general files, \
					URI remapping and WSAPI applications respectively.
homepage            http://www.keplerproject.org/xavante/
platforms           darwin
master_sites        http://luaforge.net/frs/download.php/3966                
distname            xavante-${version}
checksums           md5     522f1423c76c737aa6fbdd079b1c19b6 \
                    sha1    0dd9fda9a9cbc23892584c90efd137b0d045b979 \
                    rmd160  0fa867d07cd2e82e5f50db69e52441c7cfc1d578
patchfiles          patch-Makefile.diff \
					patch-config.diff
post-patch {
   reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/config
}
depends_lib         port:lua \
					port:lua-wsapi \
					port:lua-copas \
					port:lua-luasocket \
					port:lua-luafilesystem
use_configure		no

