summaryrefslogtreecommitdiff
path: root/dev-lua/busted
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-22 00:41:01 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-22 00:41:01 +0000
commit23b767af73549eeb4dd3069e09d0f2fcb88669a8 (patch)
tree7ad731ac748d72a48ae7079bc8fb0718c554d65d /dev-lua/busted
parent3003897133b1bcfe9a241c2708e938903879aee3 (diff)
gentoo auto-resync : 22:03:2023 - 00:41:01
Diffstat (limited to 'dev-lua/busted')
-rw-r--r--dev-lua/busted/Manifest2
-rw-r--r--dev-lua/busted/busted-2.1.2.ebuild63
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-lua/busted/Manifest b/dev-lua/busted/Manifest
index c57b1fce7ffc..087f963caf9f 100644
--- a/dev-lua/busted/Manifest
+++ b/dev-lua/busted/Manifest
@@ -1,3 +1,5 @@
DIST busted-2.1.1.tar.gz 62594 BLAKE2B 3afd49dd70b27243e32f69d5d5a0a0ee13e46fdbe46fe6921e1b854abddaa45dba098f19c5994d5656eca871beacd654cac20abe0662c21f6e7efaff19984753 SHA512 80a362094398b85f2783ca11adfae1f7ead38b9de7d11d2c2f8234f2d8f1289dc853f58c11c375b8edd6ea87807a65cc8bce01ebcf7cdf75701796ee528a75a0
+DIST busted-2.1.2.tar.gz 63587 BLAKE2B e88ad47753e2343a98a4d06eff3ec92bc029ac49a33712beeec56776e1e3340e43135206ff24317065fcebaaa045f6c7e3ebc61d713dbd167d19adf9859b65fe SHA512 87aa9bf36c946b22940b2f3361d66fc59af7042deaa695c576f80602f825d5c9334b91edce4fb297098deb3edb574a10aebfd552866f039a1fb640978e022f18
EBUILD busted-2.1.1.ebuild 1175 BLAKE2B 0984e71c50d20080ece18317836d11c0a4c30d92fcb84bae4c14f4de72921cbff96bd562e2ed75ab7123503cbda23c7fc6cec5ab2c4206d4f88fceee4ab8dbf4 SHA512 3ffc01ca019b1b7703ba6918ebba0acf9a5655fa4110d934eec417a06f97ff4ef1dfc3f41332aeb5cd8904b9400fa8cc866807caecd6cfd00e2ee2522e583ce2
+EBUILD busted-2.1.2.ebuild 1181 BLAKE2B 8ce7cddd3c51d49865e5390a417f98451d5dd19d09616943a0f6a2349fc6aa3cb1ec6db982250d1561ea7140bfb6cc7ae45b165824b093579019d9d3a7233f8f SHA512 614a86f22ef0e1f333a96832069d7584e7bdca0b66324b1325c1adbe61a82ad7c9c5b4f27debc22d2934eefae009e25b3b416716d48658956be6b8fef6bbdfa5
MISC metadata.xml 778 BLAKE2B ebe76906ebd07076027a68c3d8f79ae9b42e3a0dca7dd67774c6f0196a85bc2031a7e6b724de03fecfbc6d35f32471d9a33e4b286c9ab0a3e9f78e934e1ca62c SHA512 5a3be21967196721755bcc2b2e436ee5419441b122e04fe49921a5dbffa53cac871fb0fb7e482a2c38575da69c9c21ff3645433b901dc558e8be584067228730
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
+}