diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-lua/luacheck | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'dev-lua/luacheck')
| -rw-r--r-- | dev-lua/luacheck/Manifest | 1 | ||||
| -rw-r--r-- | dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch | 13 | ||||
| -rw-r--r-- | dev-lua/luacheck/luacheck-1.2.0.ebuild | 66 | ||||
| -rw-r--r-- | dev-lua/luacheck/metadata.xml | 16 |
4 files changed, 96 insertions, 0 deletions
diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest new file mode 100644 index 000000000000..41aaef789053 --- /dev/null +++ b/dev-lua/luacheck/Manifest @@ -0,0 +1 @@ +DIST luacheck-1.2.0.tar.gz 183209 BLAKE2B 5c1260d87c523a2094071c674a71dce362be5ad65ca52094564b93d02c6ef7e662631769cbdbafe9c0cb4d2bcb61c5e46cbbc1a8fc9ed287043aafc2ebae9c90 SHA512 2bfe38056bab71cdaa8377212cc92048e3178f2deb1da8d61b9cefc400a9b5691772805f8bc1c4b4584c9530751103a2feeca41187c2d9496e975df5be373ff0 diff --git a/dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch b/dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch new file mode 100644 index 000000000000..04d40ec958b6 --- /dev/null +++ b/dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch @@ -0,0 +1,13 @@ +--- a/spec/cli_spec.lua ++++ b/spec/cli_spec.lua +@@ -68,10 +68,6 @@ + assert.equal(0, get_exitcode "spec/samples/good_code.lua --no-config") + end) + +- it("allows measuring performance", function() +- assert.equal(0, get_exitcode "spec/samples/good_code.lua --no-config --profile") +- end) +- + it("removes ./ in the beginnings of file names", function() + assert.equal([[ + Checking spec/samples/good_code.lua OK diff --git a/dev-lua/luacheck/luacheck-1.2.0.ebuild b/dev-lua/luacheck/luacheck-1.2.0.ebuild new file mode 100644 index 000000000000..9228a8965069 --- /dev/null +++ b/dev-lua/luacheck/luacheck-1.2.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1,3,4} luajit ) + +inherit lua + +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 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 +} diff --git a/dev-lua/luacheck/metadata.xml b/dev-lua/luacheck/metadata.xml new file mode 100644 index 000000000000..67dc3b4a2e31 --- /dev/null +++ b/dev-lua/luacheck/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>conikost@gentoo.org</email> + <name>Conrad Kostecki</name> + </maintainer> + <stabilize-allarches /> + <longdescription lang="en"> + A tool for linting and static analysis of Lua code. + Luacheck supports checking Lua files using syntax of + Lua 5.1, Lua 5.2, Lua 5.3, Lua 5.4 and LuaJIT. + Luacheck itself is written in Lua and runs on all of mentioned Lua versions. + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
