Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lutok/, profiles/
Date: Tue, 03 Nov 2020 17:44:21
Message-Id: 1604425431.7b894054de3e9a3a0fc97f174f8a3bde8456a2c8.floppym@gentoo
1 commit: 7b894054de3e9a3a0fc97f174f8a3bde8456a2c8
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 3 17:43:03 2020 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 3 17:43:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b894054
7
8 dev-lua/lutok: port to lua-single eclass
9
10 Closes: https://bugs.gentoo.org/752660
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 dev-lua/lutok/lutok-0.4-r10.ebuild | 44 ++++++++++++++++++++++++++++++++++++++
14 profiles/package.mask | 1 +
15 2 files changed, 45 insertions(+)
16
17 diff --git a/dev-lua/lutok/lutok-0.4-r10.ebuild b/dev-lua/lutok/lutok-0.4-r10.ebuild
18 new file mode 100644
19 index 00000000000..3421f02ed81
20 --- /dev/null
21 +++ b/dev-lua/lutok/lutok-0.4-r10.ebuild
22 @@ -0,0 +1,44 @@
23 +# Copyright 2017-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +LUA_COMPAT=( luajit lua5-{1..4} )
28 +
29 +inherit lua-single
30 +
31 +DESCRIPTION="Lightweight C++ API library for Lua"
32 +HOMEPAGE="https://github.com/jmmv/lutok"
33 +SRC_URI="https://github.com/jmmv/lutok/releases/download/${P}/${P}.tar.gz"
34 +
35 +LICENSE="BSD"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
38 +IUSE="test"
39 +RESTRICT="!test? ( test )"
40 +
41 +BDEPEND="
42 + virtual/pkgconfig
43 + test? (
44 + dev-libs/atf
45 + dev-util/kyua
46 + )
47 +"
48 +DEPEND="${LUA_DEPS}"
49 +RDEPEND="${DEPEND}"
50 +
51 +pkg_setup() {
52 + :
53 +}
54 +
55 +src_configure() {
56 + lua_setup
57 + lua_get_CFLAGS >/dev/null
58 + lua_get_LIBS >/dev/null
59 + econf --enable-shared --disable-static
60 +}
61 +
62 +src_install() {
63 + default
64 + rm -rf "${ED}"/usr/tests || die
65 + find "${ED}" -name '*.la' -type f -delete || die
66 +}
67
68 diff --git a/profiles/package.mask b/profiles/package.mask
69 index a720b3866b5..8c61be3dce7 100644
70 --- a/profiles/package.mask
71 +++ b/profiles/package.mask
72 @@ -222,6 +222,7 @@ dev-lua/luacrypto
73 >=app-misc/worker-3.8.3-r100
74 >=dev-lua/luv-1.32.0.0-r100
75 >=dev-lua/luadbi-0.7.2-r100
76 +>=dev-lua/lutok-0.4-r10
77 >=dev-lua/messagepack-0.3.2-r100
78 >=dev-lua/toluapp-1.0.93_p20190513-r100
79 >=games-engines/love-0.7.2-r100:0.7