summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-11-12 00:46:17 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-11-12 01:24:35 +0100
commit910c433461bb1091633927c5cc3b99843770eee1 (patch)
tree3383ccbb6534088980eb49e88fd20b3e091e724a /dev-lua
parentdev-lua/lualdap: add 1.4.0 (diff)
downloadgentoo-910c433461bb1091633927c5cc3b99843770eee1.tar.gz
gentoo-910c433461bb1091633927c5cc3b99843770eee1.tar.bz2
gentoo-910c433461bb1091633927c5cc3b99843770eee1.zip
dev-lua/busted: add 2.2.0
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/busted/Manifest1
-rw-r--r--dev-lua/busted/busted-2.2.0.ebuild63
2 files changed, 64 insertions, 0 deletions
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
+}