From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 68AC21581D3 for ; Fri, 24 May 2024 23:35:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27695E2AC1; Fri, 24 May 2024 23:35:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06E95E2AC4 for ; Fri, 24 May 2024 23:35:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3221B343009 for ; Fri, 24 May 2024 23:35:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 808841B63 for ; Fri, 24 May 2024 23:35:44 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1716593717.76409c5ee79689fdbcb569e9657cd1c97c9f36c2.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luacheck/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luacheck/Manifest dev-lua/luacheck/luacheck-1.2.0.ebuild X-VCS-Directories: dev-lua/luacheck/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 76409c5ee79689fdbcb569e9657cd1c97c9f36c2 X-VCS-Branch: master Date: Fri, 24 May 2024 23:35:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e9a79d34-530b-440a-864b-ef43577a5230 X-Archives-Hash: 88836ec4190e680767cb9c694e0cad76 commit: 76409c5ee79689fdbcb569e9657cd1c97c9f36c2 Author: Conrad Kostecki gentoo org> AuthorDate: Fri May 24 22:11:13 2024 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Fri May 24 23:35:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76409c5e dev-lua/luacheck: add 1.2.0 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/luacheck/Manifest | 1 + dev-lua/luacheck/luacheck-1.2.0.ebuild | 66 ++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest index 96122383debe..e8199aa650b6 100644 --- a/dev-lua/luacheck/Manifest +++ b/dev-lua/luacheck/Manifest @@ -1 +1,2 @@ DIST luacheck-1.1.2.tar.gz 179240 BLAKE2B 52fdf895e14ec42f86078c9a0be3adc91b0d51c525281ec19cc41671437ca2a29a79c1a826026de11b433368b306ddf2b21473b90975d1de1c13b160d208a25b SHA512 38b22cc0fd00905572859092c4138081c5be434b6e3314bc6cee14b859b0fa1dbb078c6474588891ec3e75b378a7be9a09ee164a4ef9291378193f3bdda10365 +DIST luacheck-1.2.0.tar.gz 183209 BLAKE2B 5c1260d87c523a2094071c674a71dce362be5ad65ca52094564b93d02c6ef7e662631769cbdbafe9c0cb4d2bcb61c5e46cbbc1a8fc9ed287043aafc2ebae9c90 SHA512 2bfe38056bab71cdaa8377212cc92048e3178f2deb1da8d61b9cefc400a9b5691772805f8bc1c4b4584c9530751103a2feeca41187c2d9496e975df5be373ff0 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..485692d5a5de --- /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..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 ~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 +}