1 |
commit: 9477144781ba96c928ac473966ace6d6b5f3b06e |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 23:02:07 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 23:07:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94771447 |
7 |
|
8 |
dev-lua/luajson: bump to 1.3.4 and migrate to lua.eclass |
9 |
|
10 |
Can't run tests because they require lunitx (which in turn uses Lake, |
11 |
which we haven't got in the tree either) but since upstream says in the |
12 |
README which Lua implementations are supported, let's take their word |
13 |
for it. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/752903 |
16 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
17 |
|
18 |
dev-lua/luajson/Manifest | 1 + |
19 |
dev-lua/luajson/luajson-1.3.4.ebuild | 37 ++++++++++++++++++++++++++++++++++++ |
20 |
profiles/package.mask | 1 + |
21 |
3 files changed, 39 insertions(+) |
22 |
|
23 |
diff --git a/dev-lua/luajson/Manifest b/dev-lua/luajson/Manifest |
24 |
index 94e156d2659..29fa7b008cb 100644 |
25 |
--- a/dev-lua/luajson/Manifest |
26 |
+++ b/dev-lua/luajson/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST luajson-1.3.3.tar.gz 42653 BLAKE2B 2bc7310317a1279906681c2de284dc7b9d50766c0c21c606da746d0e709168e5364c3a821798f3ce423dfdd246162212525c1fee7c13cb5f0999db56d1e5e3c3 SHA512 9b507148afaf59871f97e7cf78ad35dc01497d553699d1d1a928543fad6a375aebc3852da86d51d744f10ab2ec24c7b1d7c380852da8134ae05f2f22f6f200c2 |
29 |
+DIST luajson-1.3.4.tar.gz 46941 BLAKE2B 50c8c20c487f92fd19b3e080a87eec58c2cb30d83dfc6acd7aca3f155a04f85a194c069f735a2881e14b0eb3fd3b16e4a75ea625ac81c65b9e25cb1c3601673c SHA512 d24dc8399337b96cde3254a83e5cc1fa995b76f0e1fae54ad91a490f0a6f4c5d0927919320f99d7bc4238ac5529d0ea57435c6be2519fb52e2a83f5005fbc4f7 |
30 |
|
31 |
diff --git a/dev-lua/luajson/luajson-1.3.4.ebuild b/dev-lua/luajson/luajson-1.3.4.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..f06cd069d62 |
34 |
--- /dev/null |
35 |
+++ b/dev-lua/luajson/luajson-1.3.4.ebuild |
36 |
@@ -0,0 +1,37 @@ |
37 |
+# Copyright 1999-2020 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+LUA_COMPAT=( lua5-{1..3} luajit ) |
43 |
+ |
44 |
+inherit lua |
45 |
+ |
46 |
+DESCRIPTION="JSON Parser/Constructor for Lua" |
47 |
+HOMEPAGE="https://www.eharning.us/wiki/luajson/" |
48 |
+SRC_URI="https://github.com/harningt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
53 |
+ |
54 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
55 |
+ |
56 |
+RDEPEND="dev-lua/lpeg[${LUA_USEDEP}]" |
57 |
+ |
58 |
+# Require lunitx, which is not in the tree yet |
59 |
+RESTRICT="test" |
60 |
+ |
61 |
+DOCS=( README.md docs/ReleaseNotes-${PV}.txt docs/LuaJSON.txt ) |
62 |
+ |
63 |
+# nothing to compile |
64 |
+src_compile() { :; } |
65 |
+ |
66 |
+lua_src_install() { |
67 |
+ emake DESTDIR="${ED}" INSTALL_LMOD="$(lua_get_lmod_dir)" install |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ lua_foreach_impl lua_src_install |
72 |
+ einstalldocs |
73 |
+} |
74 |
|
75 |
diff --git a/profiles/package.mask b/profiles/package.mask |
76 |
index ef27778a2a2..daf7ed3e732 100644 |
77 |
--- a/profiles/package.mask |
78 |
+++ b/profiles/package.mask |
79 |
@@ -519,6 +519,7 @@ dev-lua/luacrypto |
80 |
>=dev-lua/lua_cliargs-3.0_p2-r100 |
81 |
>=dev-lua/lua-term-0.7-r100 |
82 |
>=dev-lua/luafilesystem-1.8.0-r100 |
83 |
+>=dev-lua/luajson-1.3.4 |
84 |
>=dev-lua/luasec-0.9-r100 |
85 |
>=dev-lua/luasocket-3.0_rc1_p20200328-r100 |
86 |
>=dev-lua/luassert-1.8.0-r100 |