From 2f8bdf89a9e7d6f75341c19ce4c8af8a15eadac2 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 30 Sep 2017 14:05:13 +0200 Subject: [PATCH] luacheck, new recipe (#1628) --- dev-lua/luacheck/luacheck-0.21.0.recipe | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-lua/luacheck/luacheck-0.21.0.recipe diff --git a/dev-lua/luacheck/luacheck-0.21.0.recipe b/dev-lua/luacheck/luacheck-0.21.0.recipe new file mode 100644 index 000000000..f82ba30b0 --- /dev/null +++ b/dev-lua/luacheck/luacheck-0.21.0.recipe @@ -0,0 +1,51 @@ +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="x86_gcc2 x86_64" + +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:lua5.3 + cmd:gcc + 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/ +}