52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
SUMMARY="A tool for linting and static analysis of Lua code"
|
|
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."
|
|
HOMEPAGE="https://github.com/mpeterv/luacheck"
|
|
COPYRIGHT="2014-2017 Peter Melnichenko"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/mpeterv/luacheck/archive/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="0365f140592b0436b8b5bfd42b37bd6af1d2dad3f48b03d56a3bbdf8fdc69d94"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
luacheck = $portVersion
|
|
cmd:luacheck
|
|
cmd:luacheck.lua
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:liblua >= 5.3
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:liblua >= 5.3
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:lua5.3
|
|
cmd:pkg_config
|
|
cmd:which
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
true
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $dataDir/lua/5.3/luacheck/
|
|
./install.lua $prefix
|
|
mv $prefix/src/luacheck/* $dataDir/lua/5.3/luacheck/
|
|
rm -rf $prefix/src/
|
|
}
|