1 |
commit: 724feaedd952c1dbeea34dcde2abc0fe574977c9 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 13 03:08:53 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 13 03:08:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=724feaed |
7 |
|
8 |
dev-lua/lua-cjson: bump to 2.1.0.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
dev-lua/lua-cjson/Manifest | 1 + |
14 |
dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild | 44 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/dev-lua/lua-cjson/Manifest b/dev-lua/lua-cjson/Manifest |
18 |
index e22ea3d3d87..e87bc35a16c 100644 |
19 |
--- a/dev-lua/lua-cjson/Manifest |
20 |
+++ b/dev-lua/lua-cjson/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST lua-cjson-2.1.0.6.tar.gz 76820 BLAKE2B 1056fefc8d9c802e068e1e7801cc1eb3a0279371ab72e4e8517e22ad68224dd4892f4e4cbfe0a407af71f1008affded41d7bcc05d89c4ddb0c437d93d67708a7 SHA512 71d25f4ec82641d56e33e13c0ecd8c60186b3c4faf3d30de81706d1305d4e61691a1e84210462942674e50ca2ff19e126cb04025d9645d5d26ef3b3b0e46f64b |
23 |
+DIST lua-cjson-2.1.0.7.tar.gz 76949 BLAKE2B 9189890f24885191001e79cf0f48aaee74026572eda3e767b0e5e63d44634156fd2b972287cb23e243b3fd0f44f8e87a1fcb0c0b8e26197c63e5e0ff30cb3a94 SHA512 c66fbb608dcd1b7daef8c70ad9a60ab442bf8b851b8d8c5e3b11854ab476dff115e2eef31f171a40ce364778682ce351114caf36c995521ec589bd9dd94415c5 |
24 |
DIST lua-cjson-2.1.0.tar.gz 86024 BLAKE2B 21dbf84cda2c973088dc9ba165351f3af35d4f604ef465abd91f37807a6c037f612f36c87b9458abef9afa06e1738e933fcce7be9edd2f9a5e301985f413a1db SHA512 4343513b942f2ed98dc1ea6d7e852303bc1263f8acc5c70c8d674aec7adfc8279c5af7d5173a417b6f9a74543b8f6c8f98742d002f4f75832bbf23bb5a30ad2f |
25 |
|
26 |
diff --git a/dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild b/dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..d8443f9f690 |
29 |
--- /dev/null |
30 |
+++ b/dev-lua/lua-cjson/lua-cjson-2.1.0.7.ebuild |
31 |
@@ -0,0 +1,44 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit cmake-utils |
38 |
+ |
39 |
+DESCRIPTION="A fast JSON encoding/parsing module for Lua" |
40 |
+HOMEPAGE="https://www.kyne.com.au/~mark/software/lua-cjson.php https://github.com/openresty/lua-cjson" |
41 |
+SRC_URI="https://github.com/openresty/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="+internal-fpconv luajit test +threads" |
47 |
+ |
48 |
+REQUIRED_USE="threads? ( internal-fpconv )" |
49 |
+ |
50 |
+RDEPEND=">=dev-lang/lua-5.1:0" |
51 |
+DEPEND="${RDEPEND}" |
52 |
+BDEPEND="test? ( dev-lang/perl )" |
53 |
+ |
54 |
+DOCS=( NEWS README.md THANKS manual.txt performance.txt ) |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/sparse_array_test_fix.patch |
58 |
+) |
59 |
+ |
60 |
+src_configure() { |
61 |
+ local mycmakeargs=( |
62 |
+ -DUSE_INTERNAL_FPCONV="$(usex internal-fpconv)" |
63 |
+ -DMULTIPLE_THREADS="$(usex threads)" |
64 |
+ ) |
65 |
+ |
66 |
+ cmake-utils_src_configure |
67 |
+} |
68 |
+ |
69 |
+src_test() { |
70 |
+ cd tests || die |
71 |
+ ln -s "${BUILD_DIR}"/cjson.so ./ || die |
72 |
+ ln -s "${S}"/lua/cjson ./ || die |
73 |
+ ./genutf8.pl || die |
74 |
+ ./test.lua || die |
75 |
+} |