# $Id: Portfile 114431 2013-12-08 09:48:42Z and.damore@macports.org $ PortSystem 1.0 name lua-copas version 1.1.6 categories devel license MIT platforms darwin supported_archs noarch maintainers nomaintainer 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 https://github.com/downloads/keplerproject/copas checksums md5 104b4325a6187eeb4b139181b6477558 \ sha1 14fd64df94099af1f29d30f09777562803778da7 \ rmd160 f1cdddfc588c1b5f4aa5a8b8796a8351aad6b8bf 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 {} 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} eval xinstall -m 644 [glob ${worksrcpath}/doc/us/*] ${destroot}${prefix}/share/doc/${name} eval xinstall -m 644 [glob ${worksrcpath}/tests/*] ${destroot}${prefix}/share/examples/${name} }