1SUMMARY="A tool for linting and static analysis of Lua code" 2DESCRIPTION="Luacheck is a static analyzer and a linter for Lua. Luacheck \ 3detects various issues such as usage of undefined global variables, unused \ 4variables and values, accessing uninitialized variables, unreachable code \ 5and more. Most aspects of checking are configurable: there are options for \ 6defining custom project-related globals, for selecting set of standard \ 7globals (version of Lua standard library), for filtering warnings by type \ 8and name of related variable, etc. The options can be used on the command \ 9line, put into a config or directly into checked files as Lua comments." 10HOMEPAGE="https://github.com/mpeterv/luacheck" 11COPYRIGHT="2014-2017 Peter Melnichenko" 12LICENSE="MIT" 13REVISION="1" 14SOURCE_URI="https://github.com/mpeterv/luacheck/archive/$portVersion.tar.gz" 15CHECKSUM_SHA256="0365f140592b0436b8b5bfd42b37bd6af1d2dad3f48b03d56a3bbdf8fdc69d94" 16 17ARCHITECTURES="all" 18 19PROVIDES=" 20 luacheck = $portVersion 21 cmd:luacheck 22 cmd:luacheck.lua 23 " 24REQUIRES=" 25 haiku 26 lib:liblua >= 5.3 27 " 28 29BUILD_REQUIRES=" 30 haiku_devel 31 devel:liblua >= 5.3 32 " 33BUILD_PREREQUIRES=" 34 cmd:gcc 35 cmd:lua5.3 36 cmd:pkg_config 37 cmd:which 38 " 39 40BUILD() 41{ 42 true 43} 44 45INSTALL() 46{ 47 mkdir -p $dataDir/lua/5.3/luacheck/ 48 ./install.lua $prefix 49 mv $prefix/src/luacheck/* $dataDir/lua/5.3/luacheck/ 50 rm -rf $prefix/src/ 51} 52