1 |
commit: 3d54c00c3a0d372f6dcd590b6a4b2ac3badce718 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 16:10:42 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 16:16:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d54c00c |
7 |
|
8 |
dev-lua/dkjson: migrate to lua eclass |
9 |
|
10 |
Also adding tests. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/628758 |
13 |
Closes: https://bugs.gentoo.org/752603 |
14 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
15 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
16 |
|
17 |
dev-lua/dkjson/dkjson-2.5-r100.ebuild | 48 +++++++++++++++++++++++++++++++++++ |
18 |
dev-lua/dkjson/metadata.xml | 6 ++++- |
19 |
profiles/package.mask | 1 + |
20 |
3 files changed, 54 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/dev-lua/dkjson/dkjson-2.5-r100.ebuild b/dev-lua/dkjson/dkjson-2.5-r100.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..6c81b135824 |
25 |
--- /dev/null |
26 |
+++ b/dev-lua/dkjson/dkjson-2.5-r100.ebuild |
27 |
@@ -0,0 +1,48 @@ |
28 |
+# Copyright 1999-2020 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+LUA_COMPAT=( lua5-{1..3} luajit ) |
34 |
+ |
35 |
+inherit lua toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="David Kolf's JSON module for Lua" |
38 |
+HOMEPAGE="http://dkolf.de/src/dkjson-lua.fsl/" |
39 |
+SRC_URI="http://dkolf.de/src/dkjson-lua.fsl/tarball/${P}.tar.gz?uuid=release_2_5 -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
44 |
+IUSE="test" |
45 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+RDEPEND="${LUA_DEPS}" |
49 |
+DEPEND="${RDEPEND}" |
50 |
+BDEPEND=" |
51 |
+ virtual/pkgconfig |
52 |
+ test? ( ${RDEPEND} ) |
53 |
+" |
54 |
+ |
55 |
+DOCS=( "readme.txt" ) |
56 |
+ |
57 |
+lua_src_test() { |
58 |
+ ${ELUA} jsontest.lua || die |
59 |
+ ${ELUA} speedtest.lua ${PN} || die |
60 |
+} |
61 |
+ |
62 |
+src_test() { |
63 |
+ lua_foreach_impl lua_src_test |
64 |
+} |
65 |
+ |
66 |
+lua_src_install() { |
67 |
+ insinto $(lua_get_lmod_dir) |
68 |
+ doins dkjson.lua |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ lua_foreach_impl lua_src_install |
73 |
+ |
74 |
+ einstalldocs |
75 |
+} |
76 |
|
77 |
diff --git a/dev-lua/dkjson/metadata.xml b/dev-lua/dkjson/metadata.xml |
78 |
index dda2ed52439..a5b517b10d3 100644 |
79 |
--- a/dev-lua/dkjson/metadata.xml |
80 |
+++ b/dev-lua/dkjson/metadata.xml |
81 |
@@ -5,7 +5,11 @@ |
82 |
<email>williamh@g.o</email> |
83 |
<name>William Hubbs</name> |
84 |
</maintainer> |
85 |
- <longdescription lang="en"> |
86 |
+ <maintainer type="person"> |
87 |
+ <email>conikost@g.o</email> |
88 |
+ <name>Conrad Kostecki</name> |
89 |
+ </maintainer> |
90 |
+ <longdescription> |
91 |
dkjson is a module for encoding and decoding JSON data. It supports |
92 |
UTF-8. |
93 |
|
94 |
|
95 |
diff --git a/profiles/package.mask b/profiles/package.mask |
96 |
index 3c83c651669..7c7fd5501d5 100644 |
97 |
--- a/profiles/package.mask |
98 |
+++ b/profiles/package.mask |
99 |
@@ -501,6 +501,7 @@ dev-lua/luacrypto |
100 |
>=app-misc/worker-3.8.3-r100 |
101 |
=dev-games/openscenegraph-openmw-3.4_p20200425-r100 |
102 |
=dev-libs/efl-1.25.1-r10 |
103 |
+>=dev-lua/dkjson-2.5-r100 |
104 |
>=dev-lua/lua-bit32-5.3.5-r100 |
105 |
>=dev-lua/lua-zlib-1.2-r100 |
106 |
>=dev-lua/luadbi-0.7.2-r100 |