Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/busted/
Date: Sat, 28 Nov 2020 17:45:04
Message-Id: 1606585479.f7a867bae1d7c9368ef7c05625305cbfe9c822d5.conikost@gentoo
1 commit: f7a867bae1d7c9368ef7c05625305cbfe9c822d5
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 28 17:18:08 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 17:44:39 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7a867ba
7
8 dev-lua/busted: fix lua deps
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 dev-lua/busted/busted-2.0.0-r101.ebuild | 63 +++++++++++++++++++++++++++++++++
14 1 file changed, 63 insertions(+)
15
16 diff --git a/dev-lua/busted/busted-2.0.0-r101.ebuild b/dev-lua/busted/busted-2.0.0-r101.ebuild
17 new file mode 100644
18 index 00000000000..22652c4ffdf
19 --- /dev/null
20 +++ b/dev-lua/busted/busted-2.0.0-r101.ebuild
21 @@ -0,0 +1,63 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +LUA_COMPAT=( lua5-{1..3} luajit )
28 +
29 +inherit lua toolchain-funcs
30 +
31 +DESCRIPTION="Elegant Lua unit testing"
32 +HOMEPAGE="http://olivinelabs.com/busted/"
33 +SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
38 +IUSE="test"
39 +REQUIRED_USE="${LUA_REQUIRED_USE}"
40 +RESTRICT="!test? ( test )"
41 +
42 +RDEPEND="
43 + >=dev-lua/lua_cliargs-3.0_p2-r100[${LUA_USEDEP}]
44 + >=dev-lua/luafilesystem-1.8.0-r100[${LUA_USEDEP}]
45 + >=dev-lua/luasystem-0.2.1_p0-r100[${LUA_USEDEP}]
46 + >=dev-lua/dkjson-2.5-r100[${LUA_USEDEP}]
47 + >=dev-lua/say-1.3_p1-r100[${LUA_USEDEP}]
48 + >=dev-lua/luassert-1.8.0-r100[${LUA_USEDEP}]
49 + >=dev-lua/lua-term-0.7-r100[${LUA_USEDEP}]
50 + >=dev-lua/penlight-1.7.0-r100[${LUA_USEDEP}]
51 + >=dev-lua/mediator_lua-1.1.2_p0-r100[${LUA_USEDEP}]
52 + ${LUA_DEPS}
53 +"
54 +
55 +DEPEND="${RDEPEND}"
56 +
57 +BDEPEND="
58 + virtual/pkgconfig
59 + test? (
60 + >=dev-lua/busted-2.0.0-r100
61 + ${RDEPEND}
62 + )
63 +"
64 +
65 +lua_src_test() {
66 + busted --lua=${ELUA} || die
67 +}
68 +
69 +src_test() {
70 + lua_foreach_impl lua_src_test
71 +}
72 +
73 +lua_src_install() {
74 + insinto $(lua_get_lmod_dir)
75 + doins -r busted
76 +}
77 +
78 +src_install() {
79 + dobin bin/busted
80 +
81 + lua_foreach_impl lua_src_install
82 +
83 + einstalldocs
84 +}