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/penlight/
Date: Sat, 28 Nov 2020 17:45:06
Message-Id: 1606585486.d092e2552d46e5abd728bc5753d9019fd3f3d0ca.conikost@gentoo
1 commit: d092e2552d46e5abd728bc5753d9019fd3f3d0ca
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 28 17:28:13 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 17:44:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d092e255
7
8 dev-lua/penlight: 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/penlight/penlight-1.9.2-r101.ebuild | 57 +++++++++++++++++++++++++++++
14 1 file changed, 57 insertions(+)
15
16 diff --git a/dev-lua/penlight/penlight-1.9.2-r101.ebuild b/dev-lua/penlight/penlight-1.9.2-r101.ebuild
17 new file mode 100644
18 index 00000000000..fc399a4a51d
19 --- /dev/null
20 +++ b/dev-lua/penlight/penlight-1.9.2-r101.ebuild
21 @@ -0,0 +1,57 @@
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_PN="Penlight"
29 +
30 +inherit lua toolchain-funcs
31 +
32 +DESCRIPTION="Lua utility libraries loosely based on the Python standard libraries"
33 +HOMEPAGE="https://github.com/Tieske/Penlight",
34 +SRC_URI="https://github.com/Tieske/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 +S="${WORKDIR}/${MY_PN}-${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 +DEPEND="${LUA_DEPS}"
45 +
46 +RDEPEND="
47 + >=dev-lua/luafilesystem-1.8.0-r100
48 + ${DEPEND}
49 +"
50 +
51 +BDEPEND="
52 + virtual/pkgconfig
53 + test? ( ${DEPEND} )
54 +"
55 +
56 +HTML_DOCS=( "docs/." )
57 +
58 +lua_src_test() {
59 + ${ELUA} run.lua || die
60 +}
61 +
62 +src_test() {
63 + # This is a demo app, not a real test
64 + rm tests/test-app.lua
65 +
66 + lua_foreach_impl lua_src_test
67 +}
68 +
69 +lua_src_install() {
70 + insinto $(lua_get_lmod_dir)
71 + doins -r lua/pl
72 +
73 + einstalldocs
74 +}
75 +
76 +src_install() {
77 + lua_foreach_impl lua_src_install
78 +}