1 |
commit: d089d1b7118de53261993cec0cac16dc75b4053d |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 16:15:50 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 16:16:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d089d1b7 |
7 |
|
8 |
dev-lua/busted: migrate to lua eclass |
9 |
|
10 |
Also adding tests. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/628758 |
13 |
Closes: https://bugs.gentoo.org/584694 |
14 |
Closes: https://bugs.gentoo.org/752921 |
15 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
16 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
17 |
|
18 |
dev-lua/busted/busted-2.0.0-r100.ebuild | 63 +++++++++++++++++++++++++++++++++ |
19 |
dev-lua/busted/metadata.xml | 6 +++- |
20 |
profiles/package.mask | 1 + |
21 |
3 files changed, 69 insertions(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/dev-lua/busted/busted-2.0.0-r100.ebuild b/dev-lua/busted/busted-2.0.0-r100.ebuild |
24 |
new file mode 100644 |
25 |
index 00000000000..7653e068ddc |
26 |
--- /dev/null |
27 |
+++ b/dev-lua/busted/busted-2.0.0-r100.ebuild |
28 |
@@ -0,0 +1,63 @@ |
29 |
+# Copyright 1999-2020 Gentoo Authors |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+ |
32 |
+EAPI=7 |
33 |
+ |
34 |
+LUA_COMPAT=( lua5-{1..3} luajit ) |
35 |
+ |
36 |
+inherit lua toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Elegant Lua unit testing" |
39 |
+HOMEPAGE="http://olivinelabs.com/busted/" |
40 |
+SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
45 |
+IUSE="test" |
46 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-lua/lua_cliargs-3.0_p2-r100 |
51 |
+ >=dev-lua/luafilesystem-1.8.0-r100 |
52 |
+ >=dev-lua/luasystem-0.2.1_p0-r100 |
53 |
+ >=dev-lua/dkjson-2.5-r100 |
54 |
+ >=dev-lua/say-1.3_p1-r100 |
55 |
+ >=dev-lua/luassert-1.8.0-r100 |
56 |
+ >=dev-lua/lua-term-0.7-r100 |
57 |
+ >=dev-lua/penlight-1.7.0-r100 |
58 |
+ >=dev-lua/mediator_lua-1.1.2_p0-r100 |
59 |
+ ${LUA_DEPS} |
60 |
+" |
61 |
+ |
62 |
+DEPEND="${RDEPEND}" |
63 |
+ |
64 |
+BDEPEND=" |
65 |
+ virtual/pkgconfig |
66 |
+ test? ( |
67 |
+ >=dev-lua/busted-2.0.0-r100 |
68 |
+ ${RDEPEND} |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+lua_src_test() { |
73 |
+ busted --lua=${ELUA} || die |
74 |
+} |
75 |
+ |
76 |
+src_test() { |
77 |
+ lua_foreach_impl lua_src_test |
78 |
+} |
79 |
+ |
80 |
+lua_src_install() { |
81 |
+ insinto $(lua_get_lmod_dir) |
82 |
+ doins -r busted |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ dobin bin/busted |
87 |
+ |
88 |
+ lua_foreach_impl lua_src_install |
89 |
+ |
90 |
+ einstalldocs |
91 |
+} |
92 |
|
93 |
diff --git a/dev-lua/busted/metadata.xml b/dev-lua/busted/metadata.xml |
94 |
index e8e32b1eb33..3c09cac5695 100644 |
95 |
--- a/dev-lua/busted/metadata.xml |
96 |
+++ b/dev-lua/busted/metadata.xml |
97 |
@@ -5,7 +5,11 @@ |
98 |
<email>williamh@g.o</email> |
99 |
<name>William Hubbs</name> |
100 |
</maintainer> |
101 |
- <longdescription lang="en"> |
102 |
+ <maintainer type="person"> |
103 |
+ <email>conikost@g.o</email> |
104 |
+ <name>Conrad Kostecki</name> |
105 |
+ </maintainer> |
106 |
+ <longdescription> |
107 |
An elegant, extensible, testing framework. |
108 |
Ships with a large amount of useful asserts, |
109 |
plus the ability to write your own. Output |
110 |
|
111 |
diff --git a/profiles/package.mask b/profiles/package.mask |
112 |
index 7c7fd5501d5..606a81ba86b 100644 |
113 |
--- a/profiles/package.mask |
114 |
+++ b/profiles/package.mask |
115 |
@@ -501,6 +501,7 @@ dev-lua/luacrypto |
116 |
>=app-misc/worker-3.8.3-r100 |
117 |
=dev-games/openscenegraph-openmw-3.4_p20200425-r100 |
118 |
=dev-libs/efl-1.25.1-r10 |
119 |
+>=dev-lua/busted-2.0.0-r100 |
120 |
>=dev-lua/dkjson-2.5-r100 |
121 |
>=dev-lua/lua-bit32-5.3.5-r100 |
122 |
>=dev-lua/lua-zlib-1.2-r100 |