# $Id: Portfile 56061 2009-08-24 00:33:19Z ryandesign@macports.org $

PortSystem 1.0

name                lua-luasocket
version             2.0.1
categories          devel
platforms           darwin
maintainers         gmail.com:emmett.shear

description         The luasocket library extends lua with tcp, udp, and dns
long_description    LuaSocket is a Lua extension library that is composed by two parts: \
                    a C core that provides support for the TCP and UDP transport layers, \
                    and a set of Lua modules that add support for functionality commonly \
                    needed by applications that deal with the Internet.

homepage            http://www.cs.princeton.edu/~diego/professional/luasocket/

master_sites        http://luaforge.net/frs/download.php/1589/
checksums           md5 9ca22fd9f9413b54802d3d40b38c4e5c \
                    sha1 a7da573ce3acbd4b0d846627abd1df43dba72f3c
distname            luasocket-${version}

depends_lib         port:lua

livecheck.check     regex
livecheck.url       http://luaforge.net/frs/?group_id=23
livecheck.regex     /frs/download.php/1589/luasocket-(.*?).tar.gz

patchfiles          config.diff

use_configure       no

post-patch {
    reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/config
}
