# -*- 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
PortGroup           select 1.0

name                lua-luacheck
version             1.1.0
revision            0
luarocks.rock       luacheck-${version}-1.src.rock
license             MIT
maintainers         nomaintainer

description         A tool for linting and static analysis of Lua code
long_description    Luacheck is a static analyzer and a linter for Lua. \
                    Luacheck detects various issues such as usage of undefined \
                    global variables, unused variables and values, accessing \
                    uninitialized variables, unreachable code and more. Most \
                    aspects of checking are configurable: there are options \
                    for defining custom project-related globals, for selecting \
                    set of standard globals (version of Lua standard library), \
                    for filtering warnings by type and name of related variable, \
                    etc. The options can be used on the command line, put into a \
                    config or directly into checked files as Lua comments.

checksums           rmd160  0eb82ec0edbffc3746a4f1f704402fa1be6e1ae7 \
                    sha256  a1b1c26dd140a0df377c2fa0e7f6da830aeaca940ccb21a5c7cebf83ac35fb12 \
                    size    279676

luarocks.pure_lua   yes

luarocks.dependencies \
                    argparse \
                    luafilesystem

depends_run-append  port:luacheck_select
select.entries      [list ${luarocks.module} ${subport} ${subport}]

luarocks.uploader   lunarmodules

if {${subport} ne ${name}} {
    notes "
To make this the default luacheck (i.e., the version run by\
the 'luacheck' command), run:

    sudo port select --set luacheck ${subport}
"
}
