summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-03-21 23:25:46 +0100
committerConrad Kostecki <conikost@gentoo.org>2023-03-21 23:25:46 +0100
commit39af58b872e655a0b8d29258718918ec670f654d (patch)
treedcddbea4f16d3788caee01d79d2f1a9b7088a508 /dev-lua
parenttoolchain.eclass: disable LTO for nvptx-none target (diff)
downloadgentoo-39af58b872e655a0b8d29258718918ec670f654d.tar.gz
gentoo-39af58b872e655a0b8d29258718918ec670f654d.tar.bz2
gentoo-39af58b872e655a0b8d29258718918ec670f654d.zip
dev-lua/busted: add 2.1.2
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.1.2.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-lua/busted/Manifest b/dev-lua/busted/Manifest
index 5451f6c9f54f..6411054e5a16 100644
--- a/dev-lua/busted/Manifest
+++ b/dev-lua/busted/Manifest
@@ -1 +1,2 @@
DIST busted-2.1.1.tar.gz 62594 BLAKE2B 3afd49dd70b27243e32f69d5d5a0a0ee13e46fdbe46fe6921e1b854abddaa45dba098f19c5994d5656eca871beacd654cac20abe0662c21f6e7efaff19984753 SHA512 80a362094398b85f2783ca11adfae1f7ead38b9de7d11d2c2f8234f2d8f1289dc853f58c11c375b8edd6ea87807a65cc8bce01ebcf7cdf75701796ee528a75a0
+DIST busted-2.1.2.tar.gz 63587 BLAKE2B e88ad47753e2343a98a4d06eff3ec92bc029ac49a33712beeec56776e1e3340e43135206ff24317065fcebaaa045f6c7e3ebc61d713dbd167d19adf9859b65fe SHA512 87aa9bf36c946b22940b2f3361d66fc59af7042deaa695c576f80602f825d5c9334b91edce4fb297098deb3edb574a10aebfd552866f039a1fb640978e022f18
diff --git a/dev-lua/busted/busted-2.1.2.ebuild b/dev-lua/busted/busted-2.1.2.ebuild
new file mode 100644
index 000000000000..2059826dbdf6
--- /dev/null
+++ b/dev-lua/busted/busted-2.1.2.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
+}