Gentoo Archives: gentoo-commits

From: "Vadim A. Misbakh-Soloviov" <mva@×××.name>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lua:master commit in: dev-lua/lua-discount/files/patches/99999/, dev-lua/lpeg/, dev-lua/lua-stdlib/, ...
Date: Thu, 15 Feb 2018 13:32:44
Message-Id: 1518701551.e9471abbb2e5ed99bfa5eccba303b663f455bfca.mva@gentoo
1 commit: e9471abbb2e5ed99bfa5eccba303b663f455bfca
2 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
3 AuthorDate: Thu Feb 15 13:32:31 2018 +0000
4 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
5 CommitDate: Thu Feb 15 13:32:31 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/lua.git/commit/?id=e9471abb
7
8 all: fixes
9
10 dev-lua/argparse/argparse-9999.ebuild | 24 +++++++++
11 dev-lua/argparse/metadata.xml | 14 +++++
12 dev-lua/lpeg/lpeg-1.0.1.ebuild | 6 ++-
13 dev-lua/lua-argon2-ffi/lua-argon2-ffi-9999.ebuild | 2 +-
14 .../files/patches/99999/0001_lua52+_support.patch | 21 ++++++++
15 dev-lua/lua-discount/lua-discount-9999.ebuild | 29 +++++++++++
16 dev-lua/lua-discount/metadata.xml | 14 +++++
17 dev-lua/lua-stdlib/lua-stdlib-9999.ebuild | 1 +
18 dev-lua/luadoc/luadoc-3.0.1.ebuild | 1 +
19 dev-lua/luadoc/luadoc-9999.ebuild | 1 +
20 .../files/patches/99999999/compat52-luajit.patch | 59 ----------------------
21 .../files/patches/99999999/makefile.oscp.patch | 13 -----
22 dev-lua/luaossl/luaossl-99999999.ebuild | 2 -
23 dev-lua/moonscript/moonscript-9999.ebuild | 2 +-
24 dev-lua/mpack/mpack-1.0.4.ebuild | 4 ++
25 15 files changed, 115 insertions(+), 78 deletions(-)
26
27 diff --git a/dev-lua/argparse/argparse-9999.ebuild b/dev-lua/argparse/argparse-9999.ebuild
28 new file mode 100644
29 index 0000000..781d001
30 --- /dev/null
31 +++ b/dev-lua/argparse/argparse-9999.ebuild
32 @@ -0,0 +1,24 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +VCS="git"
39 +LUA_COMPAT="lua51 lua52 lua53 luajit2"
40 +GITHUB_A="mpeterv"
41 +
42 +inherit lua
43 +
44 +DESCRIPTION="Feature-rich command line parser for Lua "
45 +HOMEPAGE="https://github.com/mpeterv/argparse"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS=""
50 +IUSE="doc"
51 +
52 +DOCS=(README.md)
53 +
54 +each_lua_install() {
55 + dolua "src/${PN}.lua"
56 +}
57
58 diff --git a/dev-lua/argparse/metadata.xml b/dev-lua/argparse/metadata.xml
59 new file mode 100644
60 index 0000000..23da526
61 --- /dev/null
62 +++ b/dev-lua/argparse/metadata.xml
63 @@ -0,0 +1,14 @@
64 +<?xml version="1.0" encoding="UTF-8"?>
65 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
66 +<pkgmetadata>
67 +<maintainer>
68 + <email>mva@×××.name</email>
69 + <description>
70 + If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet.
71 + </description>
72 + <name>Vadim A. Misbakh-Soloviov</name>
73 +</maintainer>
74 +<longdescription>FIXME</longdescription>
75 +<use>
76 +</use>
77 +</pkgmetadata>
78
79 diff --git a/dev-lua/lpeg/lpeg-1.0.1.ebuild b/dev-lua/lpeg/lpeg-1.0.1.ebuild
80 index c64c8c0..bef220a 100644
81 --- a/dev-lua/lpeg/lpeg-1.0.1.ebuild
82 +++ b/dev-lua/lpeg/lpeg-1.0.1.ebuild
83 @@ -13,8 +13,10 @@ SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz"
84
85 LICENSE="MIT"
86 SLOT="0"
87 -KEYWORDS="amd64 ~arm ~hppa ~mips x86"
88 -IUSE="debug doc"
89 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~x86"
90 +IUSE="debug doc luajit"
91 +
92 +REQUIRED_USE="luajit? ( lua_targets_luajit2 )"
93
94 PATCHES=("${FILESDIR}/${P}-makefile.patch")
95 DOCS=(HISTORY)
96
97 diff --git a/dev-lua/lua-argon2-ffi/lua-argon2-ffi-9999.ebuild b/dev-lua/lua-argon2-ffi/lua-argon2-ffi-9999.ebuild
98 index ad52d48..c4fdcc3 100644
99 --- a/dev-lua/lua-argon2-ffi/lua-argon2-ffi-9999.ebuild
100 +++ b/dev-lua/lua-argon2-ffi/lua-argon2-ffi-9999.ebuild
101 @@ -33,5 +33,5 @@ each_lua_test() {
102 src_compile() { :; }
103
104 each_lua_install() {
105 - dolua_jit "src/${PN%%-ffi}.lua"
106 + dolua_jit "src/argon2.lua"
107 }
108
109 diff --git a/dev-lua/lua-discount/files/patches/99999/0001_lua52+_support.patch b/dev-lua/lua-discount/files/patches/99999/0001_lua52+_support.patch
110 new file mode 100644
111 index 0000000..0c33143
112 --- /dev/null
113 +++ b/dev-lua/lua-discount/files/patches/99999/0001_lua52+_support.patch
114 @@ -0,0 +1,21 @@
115 +diff --git a/ldiscount.c b/ldiscount.c
116 +index 063ae55..5e45198 100644
117 +--- a/ldiscount.c 2017-11-19 01:35:45.812631259 +0700
118 ++++ b/ldiscount.c 2017-11-19 01:35:38.342881222 +0700
119 +@@ -6,6 +6,15 @@
120 +
121 + #include "mkdio.h"
122 +
123 ++#ifndef luaL_reg
124 ++/* Taken from Lua5.1's lauxlib.h */
125 ++#define luaL_reg luaL_Reg
126 ++#endif
127 ++
128 ++#if LUA_VERSION_NUM > 501
129 ++#define luaL_register(L,n,f) luaL_setfuncs(L,f,0)
130 ++#endif
131 ++
132 + static const char *const discount_opts[] = {
133 + "nolinks",
134 + "noimages",
135 +
136
137 diff --git a/dev-lua/lua-discount/lua-discount-9999.ebuild b/dev-lua/lua-discount/lua-discount-9999.ebuild
138 new file mode 100644
139 index 0000000..bfcca08
140 --- /dev/null
141 +++ b/dev-lua/lua-discount/lua-discount-9999.ebuild
142 @@ -0,0 +1,29 @@
143 +# Copyright 1999-2017 Gentoo Foundation
144 +# Distributed under the terms of the GNU General Public License v2
145 +
146 +EAPI=6
147 +
148 +VCS="git"
149 +#IS_MULTILIB=true
150 +GITHUB_A="craigbarnes"
151 +
152 +inherit lua
153 +
154 +DESCRIPTION="Lua binding to app-text/discount"
155 +HOMEPAGE="https://github.com/asb/lua-discount"
156 +
157 +LICENSE="ISC"
158 +SLOT="0"
159 +KEYWORDS=""
160 +IUSE="doc"
161 +
162 +RDEPEND="
163 + app-text/discount
164 +"
165 +DEPEND="${RDEPEND}"
166 +
167 +DOCS=(README.md)
168 +
169 +each_lua_install() {
170 + dolua discount.so
171 +}
172
173 diff --git a/dev-lua/lua-discount/metadata.xml b/dev-lua/lua-discount/metadata.xml
174 new file mode 100644
175 index 0000000..23da526
176 --- /dev/null
177 +++ b/dev-lua/lua-discount/metadata.xml
178 @@ -0,0 +1,14 @@
179 +<?xml version="1.0" encoding="UTF-8"?>
180 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
181 +<pkgmetadata>
182 +<maintainer>
183 + <email>mva@×××.name</email>
184 + <description>
185 + If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet.
186 + </description>
187 + <name>Vadim A. Misbakh-Soloviov</name>
188 +</maintainer>
189 +<longdescription>FIXME</longdescription>
190 +<use>
191 +</use>
192 +</pkgmetadata>
193
194 diff --git a/dev-lua/lua-stdlib/lua-stdlib-9999.ebuild b/dev-lua/lua-stdlib/lua-stdlib-9999.ebuild
195 index 0788ac1..0cfe7b0 100644
196 --- a/dev-lua/lua-stdlib/lua-stdlib-9999.ebuild
197 +++ b/dev-lua/lua-stdlib/lua-stdlib-9999.ebuild
198 @@ -19,6 +19,7 @@ IUSE="doc"
199 DOCS=(README.md NEWS.md STYLE.md)
200
201 all_lua_prepare() {
202 + lua_default
203 mkdir -p html
204 sed \
205 -e '/^dir/s@"."@"../html"@' \
206
207 diff --git a/dev-lua/luadoc/luadoc-3.0.1.ebuild b/dev-lua/luadoc/luadoc-3.0.1.ebuild
208 index 8fa3fec..4d7f5d0 100644
209 --- a/dev-lua/luadoc/luadoc-3.0.1.ebuild
210 +++ b/dev-lua/luadoc/luadoc-3.0.1.ebuild
211 @@ -26,6 +26,7 @@ HTML_DOCS=(doc/us/.)
212 all_lua_prepare() {
213 # >=lua-5.1.3
214 find . -name '*.lua' | xargs sed -e "s/gfind/gmatch/g" -i || die
215 + default
216 }
217
218 each_lua_install() {
219
220 diff --git a/dev-lua/luadoc/luadoc-9999.ebuild b/dev-lua/luadoc/luadoc-9999.ebuild
221 index 7c8b203..ec577d9 100644
222 --- a/dev-lua/luadoc/luadoc-9999.ebuild
223 +++ b/dev-lua/luadoc/luadoc-9999.ebuild
224 @@ -27,6 +27,7 @@ HTML_DOCS=( doc/us/. )
225 all_lua_prepare() {
226 # >=lua-5.1.3
227 find . -name '*.lua' | xargs sed -e "s/gfind/gmatch/g" -i || die
228 + default
229 }
230
231 each_lua_install() {
232
233 diff --git a/dev-lua/luaossl/files/patches/99999999/compat52-luajit.patch b/dev-lua/luaossl/files/patches/99999999/compat52-luajit.patch
234 deleted file mode 100644
235 index 1da7c7a..0000000
236 --- a/dev-lua/luaossl/files/patches/99999999/compat52-luajit.patch
237 +++ /dev/null
238 @@ -1,59 +0,0 @@
239 -diff -NaurBwd a/compat52.h b/compat52.h
240 ---- a/src/compat52.h 2017-05-10 02:07:08.039072892 +0700
241 -+++ b/src/compat52.h 2017-05-10 02:06:55.224543285 +0700
242 -@@ -32,20 +32,19 @@
243 -
244 - #if LUA_VERSION_NUM < 502
245 -
246 --#define LUA_OK 0
247 -
248 --
249 -+#ifndef LUA_OK
250 - static void luaL_setmetatable(lua_State *L, const char *tname) {
251 - luaL_getmetatable(L, tname);
252 - lua_setmetatable(L, -2);
253 - } /* luaL_setmetatable() */
254 --
255 -+#endif
256 -
257 - static int lua_absindex(lua_State *L, int idx) {
258 - return (idx > 0 || idx <= LUA_REGISTRYINDEX)? idx : lua_gettop(L) + idx + 1;
259 - } /* lua_absindex() */
260 --
261 -
262 -+#ifndef LUA_OK
263 - static void *luaL_testudata(lua_State *L, int arg, const char *tname) {
264 - void *p = lua_touserdata(L, arg);
265 - int eq;
266 -@@ -70,8 +69,10 @@
267 -
268 - return (eq)? p : 0;
269 - } /* luaL_testudate() */
270 -+#endif
271 -
272 -
273 -+#ifndef LUA_OK
274 - static void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup) {
275 - int i, t = lua_absindex(L, -1 - nup);
276 -
277 -@@ -84,13 +85,18 @@
278 -
279 - lua_pop(L, nup);
280 - } /* luaL_setfuncs() */
281 -+#endif
282 -
283 --
284 -+#ifndef LUA_OK
285 - #define luaL_newlibtable(L, l) \
286 - lua_createtable(L, 0, (sizeof (l) / sizeof *(l)) - 1)
287 -+#endif
288 -
289 -+#ifndef LUA_OK
290 - #define luaL_newlib(L, l) \
291 - (luaL_newlibtable((L), (l)), luaL_setfuncs((L), (l), 0))
292 -+#endif
293 -+#define LUA_OK 0
294 -
295 -
296 - static void luaL_requiref(lua_State *L, const char *modname, lua_CFunction openf, int glb) {
297 -
298
299 diff --git a/dev-lua/luaossl/files/patches/99999999/makefile.oscp.patch b/dev-lua/luaossl/files/patches/99999999/makefile.oscp.patch
300 deleted file mode 100644
301 index 9b0e008..0000000
302 --- a/dev-lua/luaossl/files/patches/99999999/makefile.oscp.patch
303 +++ /dev/null
304 @@ -1,13 +0,0 @@
305 -diff -NaurBwd a/src/GNUmakefile b/src/GNUmakefile
306 ---- a/src/GNUmakefile 2017-05-10 15:08:48.672212014 +0700
307 -+++ b/src/GNUmakefile 2017-05-10 15:10:23.462693220 +0700
308 -@@ -150,7 +150,7 @@
309 - $$(MKDIR) -p $$(@D)
310 - $$(CP) -p $$< $$@
311 -
312 --$$(DESTDIR)$(3)/openssl/ssl/%.lua: $$(d)/openssl.ssl.%.lua
313 -+$$(DESTDIR)$(3)/openssl/ocsp/%.lua: $$(d)/openssl.ocsp.%.lua
314 - $$(LUAC$(1)_$(d)) -p $$<
315 - $$(MKDIR) -p $$(@D)
316 - $$(CP) -p $$< $$@
317 -
318
319 diff --git a/dev-lua/luaossl/luaossl-99999999.ebuild b/dev-lua/luaossl/luaossl-99999999.ebuild
320 index 1a65994..70d04fd 100644
321 --- a/dev-lua/luaossl/luaossl-99999999.ebuild
322 +++ b/dev-lua/luaossl/luaossl-99999999.ebuild
323 @@ -25,8 +25,6 @@ RDEPEND="${DEPEND}"
324 DOCS=(doc/.)
325 EXAMPLES=(examples/.)
326
327 -PATCHES=("${FILESDIR}/patches/${PV}")
328 -
329 all_lua_prepare() {
330 sed -r \
331 -e "s@(^prefix ).*@\1=/usr@" \
332
333 diff --git a/dev-lua/moonscript/moonscript-9999.ebuild b/dev-lua/moonscript/moonscript-9999.ebuild
334 index bbb9a33..cc3598e 100644
335 --- a/dev-lua/moonscript/moonscript-9999.ebuild
336 +++ b/dev-lua/moonscript/moonscript-9999.ebuild
337 @@ -22,7 +22,7 @@ RDEPEND="
338 dev-lua/lulpeg[lpeg_replace]
339 )
340 dev-lua/luafilesystem
341 - dev-lua/alt-getopt
342 + dev-lua/argparse
343 inotify? ( dev-lua/linotify )
344 "
345 DEPEND="${RDEPEND}"
346
347 diff --git a/dev-lua/mpack/mpack-1.0.4.ebuild b/dev-lua/mpack/mpack-1.0.4.ebuild
348 index c6ba6f3..f192064 100644
349 --- a/dev-lua/mpack/mpack-1.0.4.ebuild
350 +++ b/dev-lua/mpack/mpack-1.0.4.ebuild
351 @@ -48,6 +48,10 @@ each_lua_prepare() {
352 -e '/^LUA_/d' \
353 -i Makefile
354
355 + sed \
356 + -e '692i /* fallthrough */' \
357 + -i "${S}/lmpack.c"
358 +
359 if lua_is_jit; then
360 # fixed in git HEAD
361 sed \