summaryrefslogtreecommitdiff
path: root/dev-lua/luacheck
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-11-25 19:13:11 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-11-25 19:13:11 +0000
commitc33b50e5d2446c439465ff4575253db72ef2b8f6 (patch)
tree432ad685c2af952d80175fd549cb342093eca83d /dev-lua/luacheck
parent959575d1af06bc64016d62d064143faba68a4c43 (diff)
gentoo auto-resync : 25:11:2022 - 19:13:11
Diffstat (limited to 'dev-lua/luacheck')
-rw-r--r--dev-lua/luacheck/Manifest2
-rw-r--r--dev-lua/luacheck/luacheck-1.0.0.ebuild66
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest
index 1bd8ca5618a3..782ef973aaae 100644
--- a/dev-lua/luacheck/Manifest
+++ b/dev-lua/luacheck/Manifest
@@ -1,4 +1,6 @@
AUX luacheck-0.23.0-disable-measuring-performance-test.patch 446 BLAKE2B 42c83ec5eb3d073a5e907c6285a6a2a26f1563940435a111d74274dcdff76f7662d8b623c86658fa0a0b568e150cfa059d2100d82b7f65fcd293b361ec6c45bf SHA512 046cc3ad7e74435b3c6df1a5d271e82cd90a3c02c9228c5a632b13378a8b17c3cde21b00fdc84ab350493b64ec36beb10591a32d52b96010481b7d6a08655392
DIST luacheck-0.25.0.tar.gz 162675 BLAKE2B 143de767f004cb485abc4952eafc4d02c16ca4d421397d0179113ddaeacc2cd7ba2b4b8eed48f9a05169c5e20ae53aaef8c5253ab1d7c7e4b178218fab0e03d6 SHA512 7f9f02464cb40462c321dd23e32263913ead2bf4eace6907d51a5b570a6a19a378b12660c98e63ca447cfc507dfb491d54b093af3962f12596a7c6088c8dc867
+DIST luacheck-1.0.0.tar.gz 177029 BLAKE2B f56315663f571c71944e4739956eb45600cfc324cbc6914a65ac45a6923f49cba7201bde18390d7ce7a374aa561680de05988c3a283c936658d1cda18f8f6b24 SHA512 f6703fb1b72b8ff8dd4b15bb1e5f7fa81607ee13505fd927e427f0b1043949c5dbc014020759dd8b63ec2013698b4086e773625bc925568970787c8e40e282cd
EBUILD luacheck-0.25.0.ebuild 1287 BLAKE2B f06d97ffd95bad2949aa19d3657dda75beec08ceac5aee584db94e34397cc31ae2672805b76f85893cea9135c7cc2e6f3794ead53a6f8a350321a22f4b42cb81 SHA512 bfbe4fdd54def16d6a33484a4e877d4430e3fb1aee6f5dabbc805d47eaacd3c7b62cc09df4b4a8c5ceda3131e6c609ae3ae7662d450e819b149099ffc183a90a
+EBUILD luacheck-1.0.0.ebuild 1304 BLAKE2B c710b568f78c1117fe8f694f8cb7ed2292fd8cc80abbca131397c9ff7f32deed6bb1b865594e2e9936062e39d8d80c58485fae9ba6089b272607813f8695ac25 SHA512 4e60bf278b50da4b5f22a7dcedeaec708b3f2013c4d71cca259517e48deac9b04b6a62f2ce1f2346f90622f41a65883eb78f94dcdb76a40523004c5347f5220a
MISC metadata.xml 703 BLAKE2B d86d4b639e4b5372f4756da449210438737e4609772ac5263b8956e5b78dc6fe198d341303442f6ef68e92b4a78c2f03356e010c3a204d79e420070e4aca13d4 SHA512 ed140f75ba4460fdf0a0ffbf2a7541a655a43e02168386b6a3de6adcc9a978bcb403d81a7696c4d6fcfe0f0e4827a7ad421123de0e53c614904eb341e86a2cc3
diff --git a/dev-lua/luacheck/luacheck-1.0.0.ebuild b/dev-lua/luacheck/luacheck-1.0.0.ebuild
new file mode 100644
index 000000000000..95aeb8ab6707
--- /dev/null
+++ b/dev-lua/luacheck/luacheck-1.0.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="A tool for linting and static analysis of Lua code"
+HOMEPAGE="https://github.com/lunarmodules/luacheck"
+SRC_URI="https://github.com/lunarmodules/luacheck/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-lua/lua-argparse[${LUA_USEDEP}]
+ dev-lua/lua-utf8[${LUA_USEDEP}]
+ dev-lua/luafilesystem[${LUA_USEDEP}]
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( dev-python/sphinx )
+ test? (
+ dev-lua/busted[${LUA_USEDEP}]
+ dev-lua/lua_cliargs[${LUA_USEDEP}]
+ ${RDEPEND}
+ )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-0.23.0-disable-measuring-performance-test.patch" )
+
+src_compile() {
+ if use doc; then
+ sphinx-build docsrc html || die
+ fi
+}
+
+lua_src_test() {
+ busted --lua=${ELUA} || die
+}
+
+src_test() {
+ lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+ insinto "$(lua_get_lmod_dir)"
+ doins -r src/luacheck
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ newbin bin/luacheck.lua luacheck
+
+ use doc && local -a HTML_DOCS=( "html/." )
+ einstalldocs
+}