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 908C8158089 for ; Sun, 12 Nov 2023 00:24:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 479642BC031; Sun, 12 Nov 2023 00:24:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 205D62BC02B for ; Sun, 12 Nov 2023 00:24:47 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5552B335D7B for ; Sun, 12 Nov 2023 00:24:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A2ADD1368 for ; Sun, 12 Nov 2023 00:24: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: <1699748675.910c433461bb1091633927c5cc3b99843770eee1.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/busted/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/busted/Manifest dev-lua/busted/busted-2.2.0.ebuild X-VCS-Directories: dev-lua/busted/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 910c433461bb1091633927c5cc3b99843770eee1 X-VCS-Branch: master Date: Sun, 12 Nov 2023 00:24: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: a7e8d010-8a98-416b-a6f0-3bb45b9dcbe2 X-Archives-Hash: be737183723eede1db0f3d7c7f33a37a commit: 910c433461bb1091633927c5cc3b99843770eee1 Author: Conrad Kostecki gentoo org> AuthorDate: Sat Nov 11 23:46:17 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Nov 12 00:24:35 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=910c4334 dev-lua/busted: add 2.2.0 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/busted/Manifest | 1 + dev-lua/busted/busted-2.2.0.ebuild | 63 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-lua/busted/Manifest b/dev-lua/busted/Manifest index d4923dd8e7cc..942305a7fe1f 100644 --- a/dev-lua/busted/Manifest +++ b/dev-lua/busted/Manifest @@ -1 +1,2 @@ DIST busted-2.1.2.tar.gz 63587 BLAKE2B e88ad47753e2343a98a4d06eff3ec92bc029ac49a33712beeec56776e1e3340e43135206ff24317065fcebaaa045f6c7e3ebc61d713dbd167d19adf9859b65fe SHA512 87aa9bf36c946b22940b2f3361d66fc59af7042deaa695c576f80602f825d5c9334b91edce4fb297098deb3edb574a10aebfd552866f039a1fb640978e022f18 +DIST busted-2.2.0.tar.gz 65027 BLAKE2B c04d3cc3782b9ac5af42b0cc2619b0265230f0313791d6f06d73998b98440ae0aa3618efdeca055022e4685ee53320513cb39c7dbbd66a546f203525440eac87 SHA512 86789ddb93e1b7958a0a6f447ce17532a60d0af27df21159100d3ee8a98496ae30d5a22939e91cbbfac805df118be1ed571360f90a3b31b81d654e493e77b0b7 diff --git a/dev-lua/busted/busted-2.2.0.ebuild b/dev-lua/busted/busted-2.2.0.ebuild new file mode 100644 index 000000000000..2059826dbdf6 --- /dev/null +++ b/dev-lua/busted/busted-2.2.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua + +DESCRIPTION="Elegant Lua unit testing" +HOMEPAGE="https://lunarmodules.github.io/busted/" +SRC_URI="https://github.com/lunarmodules/${PN}/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="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="test" + +RDEPEND=" + dev-lua/lua_cliargs[${LUA_USEDEP}] + dev-lua/luafilesystem[${LUA_USEDEP}] + dev-lua/luasystem[${LUA_USEDEP}] + dev-lua/dkjson[${LUA_USEDEP}] + dev-lua/say[${LUA_USEDEP}] + dev-lua/luassert[${LUA_USEDEP}] + dev-lua/lua-term[${LUA_USEDEP}] + dev-lua/penlight[${LUA_USEDEP}] + dev-lua/mediator_lua[${LUA_USEDEP}] + ${LUA_DEPS} +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + virtual/pkgconfig + test? ( + dev-lua/busted + ${RDEPEND} + ) +" + +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 busted +} + +src_install() { + dobin bin/busted + + lua_foreach_impl lua_src_install + + einstalldocs +}