pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/lua-luacheck: import lua52-luacheck-0.23.0



Module Name:	pkgsrc-wip
Committed By:	Jonathan Buschmann <jonthn+pkgsrc%pinacea.com@localhost>
Pushed By:	jonthn
Date:		Fri Jan 3 23:56:59 2020 +0800
Changeset:	1072a2888fbdc40f00e0d4a095c6e6cb087a54f5

Added Files:
	lua-luacheck/DESCR
	lua-luacheck/Makefile
	lua-luacheck/PLIST
	lua-luacheck/distinfo

Log Message:
wip/lua-luacheck: import lua52-luacheck-0.23.0

Luacheck is a command-line tool for linting and static analysis of Lua code.
It is able to spot usage of undefined global variables, unused local variables
 and a few other typical problems within Lua programs.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1072a2888fbdc40f00e0d4a095c6e6cb087a54f5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lua-luacheck/DESCR    |  3 +++
 lua-luacheck/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++
 lua-luacheck/PLIST    | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 lua-luacheck/distinfo |  6 ++++++
 4 files changed, 96 insertions(+)

diffs:
diff --git a/lua-luacheck/DESCR b/lua-luacheck/DESCR
new file mode 100644
index 0000000000..ea3ea4a232
--- /dev/null
+++ b/lua-luacheck/DESCR
@@ -0,0 +1,3 @@
+Luacheck is a command-line tool for linting and static analysis of Lua code.
+It is able to spot usage of undefined global variables, unused local variables
+ and a few other typical problems within Lua programs.
diff --git a/lua-luacheck/Makefile b/lua-luacheck/Makefile
new file mode 100644
index 0000000000..56a33eace9
--- /dev/null
+++ b/lua-luacheck/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD$
+
+DISTNAME=	lua-luacheck-0.23.0
+PKGNAME=	${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=mpeterv/}
+GITHUB_PROJECT=	luacheck
+
+HOMEPAGE=	https://github.com/mpeterv/luacheck
+COMMENT=	Tool for linting and static analysis of Lua code
+LICENSE=	mit
+
+DEPENDS+=	${LUA_PKGPREFIX}-filesystem-[0-9]*:../../devel/lua-filesystem
+DEPENDS+=	${LUA_PKGPREFIX}-argparse-[0-9]*:../../wip/lua-argparse
+
+NO_BUILD=	yes
+
+WRKSRC=		${WRKDIR}/${DISTNAME:S/lua-//}
+
+INSTALLATION_DIRS+=	${LUA_LDIR} ${LUA_LDIR}/luacheck ${LUA_LDIR}/luacheck/stages ${PREFIX}/bin
+
+PLIST_SUBST+=	LUADOTVER=${_LUA_DOT_VERSION}
+
+SUBST_CLASSES+=			lua_interp
+SUBST_MESSAGE.lua_interp=	Fixing default lua path
+SUBST_STAGE.lua_interp=		post-extract
+SUBST_FILES.lua_interp=		bin/luacheck.lua
+SUBST_SED.lua_interp=		-e 's,/usr/bin/env lua,${LUA_INTERPRETER},g'
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/src/luacheck/*.lua \
+	                ${DESTDIR}${PREFIX}/${LUA_LDIR}/luacheck/
+	${INSTALL_DATA} ${WRKSRC}/src/luacheck/stages/*.lua \
+	                ${DESTDIR}${PREFIX}/${LUA_LDIR}/luacheck/stages/
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/luacheck.lua ${DESTDIR}${PREFIX}/bin/luacheck${_LUA_DOT_VERSION}.lua
+
+
+.include "../../lang/lua/application.mk"
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-luacheck/PLIST b/lua-luacheck/PLIST
new file mode 100644
index 0000000000..939b092e07
--- /dev/null
+++ b/lua-luacheck/PLIST
@@ -0,0 +1,47 @@
+@comment $NetBSD$
+bin/luacheck${LUADOTVER}.lua
+${LUA_LDIR}/luacheck/builtin_standards.lua
+${LUA_LDIR}/luacheck/cache.lua
+${LUA_LDIR}/luacheck/check.lua
+${LUA_LDIR}/luacheck/check_state.lua
+${LUA_LDIR}/luacheck/config.lua
+${LUA_LDIR}/luacheck/core_utils.lua
+${LUA_LDIR}/luacheck/decoder.lua
+${LUA_LDIR}/luacheck/expand_rockspec.lua
+${LUA_LDIR}/luacheck/filter.lua
+${LUA_LDIR}/luacheck/format.lua
+${LUA_LDIR}/luacheck/fs.lua
+${LUA_LDIR}/luacheck/globbing.lua
+${LUA_LDIR}/luacheck/init.lua
+${LUA_LDIR}/luacheck/lexer.lua
+${LUA_LDIR}/luacheck/love_standard.lua
+${LUA_LDIR}/luacheck/main.lua
+${LUA_LDIR}/luacheck/multithreading.lua
+${LUA_LDIR}/luacheck/ngx_standard.lua
+${LUA_LDIR}/luacheck/options.lua
+${LUA_LDIR}/luacheck/parser.lua
+${LUA_LDIR}/luacheck/profiler.lua
+${LUA_LDIR}/luacheck/runner.lua
+${LUA_LDIR}/luacheck/stages.lua
+${LUA_LDIR}/luacheck/stages/detect_bad_whitespace.lua
+${LUA_LDIR}/luacheck/stages/detect_cyclomatic_complexity.lua
+${LUA_LDIR}/luacheck/stages/detect_empty_blocks.lua
+${LUA_LDIR}/luacheck/stages/detect_empty_statements.lua
+${LUA_LDIR}/luacheck/stages/detect_globals.lua
+${LUA_LDIR}/luacheck/stages/detect_reversed_fornum_loops.lua
+${LUA_LDIR}/luacheck/stages/detect_unbalanced_assignments.lua
+${LUA_LDIR}/luacheck/stages/detect_uninit_accesses.lua
+${LUA_LDIR}/luacheck/stages/detect_unreachable_code.lua
+${LUA_LDIR}/luacheck/stages/detect_unused_fields.lua
+${LUA_LDIR}/luacheck/stages/detect_unused_locals.lua
+${LUA_LDIR}/luacheck/stages/linearize.lua
+${LUA_LDIR}/luacheck/stages/name_functions.lua
+${LUA_LDIR}/luacheck/stages/parse.lua
+${LUA_LDIR}/luacheck/stages/parse_inline_options.lua
+${LUA_LDIR}/luacheck/stages/resolve_locals.lua
+${LUA_LDIR}/luacheck/stages/unwrap_parens.lua
+${LUA_LDIR}/luacheck/standards.lua
+${LUA_LDIR}/luacheck/unicode.lua
+${LUA_LDIR}/luacheck/unicode_printability_boundaries.lua
+${LUA_LDIR}/luacheck/utils.lua
+${LUA_LDIR}/luacheck/version.lua
diff --git a/lua-luacheck/distinfo b/lua-luacheck/distinfo
new file mode 100644
index 0000000000..bc645a7c19
--- /dev/null
+++ b/lua-luacheck/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
+
+SHA1 (lua-luacheck-0.23.0.tar.gz) = 95355bb1d8019ad4d42be3d72dd40fd120ae60db
+RMD160 (lua-luacheck-0.23.0.tar.gz) = b71157f35a927a2696ca62a82bc2ce35b8f877c3
+SHA512 (lua-luacheck-0.23.0.tar.gz) = d76e4b22f1e9d868a8531ad51fb98607e5bfb1fbbd55053105d9978ba6c0455de99202c53d4e199733ea997863b26527fb84e7e9717209fd588f1d02db9db028
+Size (lua-luacheck-0.23.0.tar.gz) = 158201 bytes


Home | Main Index | Thread Index | Old Index