# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           luarocks_org 1.0

name                lua-luasocket
version             3.1.0
revision            1
luarocks.rock       luasocket-${version}-1.src.rock
license             MIT
maintainers         nomaintainer

description         Network support for the Lua language
long_description    LuaSocket is a Lua extension library composed of two parts: a set of C \
                    modules that provide support for the TCP and UDP transport layers, and a \
                    set of Lua modules that provide functions commonly needed by applications \
                    that deal with the Internet.

checksums           rmd160  abae0eace0d9112da54e6928c41235cfd3ea08b3 \
                    sha256  f4a207f50a3f99ad65def8e29c54ac9aac668b216476f7fae3fae92413398ed2 \
                    size    398081

luarocks.uploader   lunarmodules

# ld: unknown option: -osocket-3.0.0.so
compiler.blacklist  *gcc-4.*

platform darwin 10 powerpc {
    # Rosetta pulls Xcode clang otherwise:
    # clang: warning: not using the clang compiler for the 'powerpc' architecture
    compiler.blacklist-append *clang*
}
