1 |
commit: 8e873539c4713725db3c27eb3d2b7bb73d98a53d |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 17:25:54 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 17:44:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e873539 |
7 |
|
8 |
dev-lua/mediator_lua: 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 |
.../mediator_lua/mediator_lua-1.1.2_p0-r101.ebuild | 49 ++++++++++++++++++++++ |
14 |
1 file changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-lua/mediator_lua/mediator_lua-1.1.2_p0-r101.ebuild b/dev-lua/mediator_lua/mediator_lua-1.1.2_p0-r101.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..0d1a8c7f594 |
19 |
--- /dev/null |
20 |
+++ b/dev-lua/mediator_lua/mediator_lua-1.1.2_p0-r101.ebuild |
21 |
@@ -0,0 +1,49 @@ |
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 |
+MY_PV="${PV/_p/-}" |
29 |
+ |
30 |
+inherit lua toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="Mediator pattern implementation for pub-sub management " |
33 |
+HOMEPAGE="http://olivinelabs.com/mediator_lua/" |
34 |
+SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
35 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
40 |
+IUSE="test" |
41 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
42 |
+RESTRICT="!test? ( test )" |
43 |
+ |
44 |
+RDEPEND="${LUA_DEPS}" |
45 |
+BDEPEND=" |
46 |
+ virtual/pkgconfig |
47 |
+ test? ( |
48 |
+ >=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}] |
49 |
+ ${RDEPEND} |
50 |
+ ) |
51 |
+" |
52 |
+ |
53 |
+lua_src_test() { |
54 |
+ busted --lua=${ELUA} || die |
55 |
+} |
56 |
+ |
57 |
+src_test() { |
58 |
+ lua_foreach_impl lua_src_test |
59 |
+} |
60 |
+ |
61 |
+lua_src_install() { |
62 |
+ insinto $(lua_get_lmod_dir) |
63 |
+ doins src/mediator.lua |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ lua_foreach_impl lua_src_install |
68 |
+ |
69 |
+ einstalldocs |
70 |
+} |