# $Id: Portfile 57852 2009-09-17 15:17:16Z and.damore@macports.org $
PortSystem 1.0

name                lua-copas
version             1.1.5
categories          devel
platforms           darwin
maintainers         and.damore openmaintainer
description         Coroutine Oriented Portable Asynchronous Services for Lua
long_description    Copas is a dispatcher based on coroutines that can be used by TCP/IP \
                    servers. It uses LuaSocket as the interface with the TCP/IP stack.
homepage            http://www.keplerproject.org/copas/
master_sites        http://luaforge.net/frs/download.php/4027/
checksums           md5     89b78f2d9a9d13c35a35756f2471f059 \
                    sha1    fb1726cce15deaed9e0aecd5f2b691d4c2d72a8b \
                    rmd160  5069fcd0bd134cee9ad9a530752a4b54d73783b5
distname            copas-${version}
depends_lib         port:lua \
					port:lua-coxpcall \
                    port:lua-luasocket
patchfiles          patch-Makefile.diff
post-patch {
   reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/Makefile
}
use_configure       no
build               {}