1 |
commit: 27ca696de0f122cb0e202670055f1c1df08b1366 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 24 21:45:15 2022 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 24 21:45:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27ca696d |
7 |
|
8 |
dev-lua/busted: add 2.1.1 |
9 |
|
10 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
11 |
|
12 |
dev-lua/busted/Manifest | 1 + |
13 |
dev-lua/busted/busted-2.1.1.ebuild | 63 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/dev-lua/busted/Manifest b/dev-lua/busted/Manifest |
17 |
index 8e2afed14554..37e6ec7016f0 100644 |
18 |
--- a/dev-lua/busted/Manifest |
19 |
+++ b/dev-lua/busted/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST busted-2.0.0.tar.gz 55002 BLAKE2B 39a3b7bf156911e25f94020f9e56b3f43b9f02b910a9d1c1f288dbdb83e5d53253d5b40d73df655844ed683cff7959d42c330c0d061db918385df07870e16da3 SHA512 3151694b1fba1acc52e3bcfee0231008b14934e89da5885d7e063c6f023479c42040c42a8c0aa6ff1f8303ad6b2a70f0687c8a218830de7231007ef8748457bf |
22 |
+DIST busted-2.1.1.tar.gz 62594 BLAKE2B 3afd49dd70b27243e32f69d5d5a0a0ee13e46fdbe46fe6921e1b854abddaa45dba098f19c5994d5656eca871beacd654cac20abe0662c21f6e7efaff19984753 SHA512 80a362094398b85f2783ca11adfae1f7ead38b9de7d11d2c2f8234f2d8f1289dc853f58c11c375b8edd6ea87807a65cc8bce01ebcf7cdf75701796ee528a75a0 |
23 |
|
24 |
diff --git a/dev-lua/busted/busted-2.1.1.ebuild b/dev-lua/busted/busted-2.1.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..ec99171efacc |
27 |
--- /dev/null |
28 |
+++ b/dev-lua/busted/busted-2.1.1.ebuild |
29 |
@@ -0,0 +1,63 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
36 |
+ |
37 |
+inherit lua |
38 |
+ |
39 |
+DESCRIPTION="Elegant Lua unit testing" |
40 |
+HOMEPAGE="http://olivinelabs.com/busted/" |
41 |
+SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
46 |
+IUSE="test" |
47 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
48 |
+RESTRICT="test" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-lua/lua_cliargs[${LUA_USEDEP}] |
52 |
+ dev-lua/luafilesystem[${LUA_USEDEP}] |
53 |
+ dev-lua/luasystem[${LUA_USEDEP}] |
54 |
+ dev-lua/dkjson[${LUA_USEDEP}] |
55 |
+ dev-lua/say[${LUA_USEDEP}] |
56 |
+ dev-lua/luassert[${LUA_USEDEP}] |
57 |
+ dev-lua/lua-term[${LUA_USEDEP}] |
58 |
+ dev-lua/penlight[${LUA_USEDEP}] |
59 |
+ dev-lua/mediator_lua[${LUA_USEDEP}] |
60 |
+ ${LUA_DEPS} |
61 |
+" |
62 |
+ |
63 |
+DEPEND="${RDEPEND}" |
64 |
+ |
65 |
+BDEPEND=" |
66 |
+ virtual/pkgconfig |
67 |
+ test? ( |
68 |
+ dev-lua/busted |
69 |
+ ${RDEPEND} |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+lua_src_test() { |
74 |
+ busted --lua=${ELUA} || die |
75 |
+} |
76 |
+ |
77 |
+src_test() { |
78 |
+ lua_foreach_impl lua_src_test |
79 |
+} |
80 |
+ |
81 |
+lua_src_install() { |
82 |
+ insinto $(lua_get_lmod_dir) |
83 |
+ doins -r busted |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ dobin bin/busted |
88 |
+ |
89 |
+ lua_foreach_impl lua_src_install |
90 |
+ |
91 |
+ einstalldocs |
92 |
+} |