1 |
commit: 3168d3e8c08a121557aca426d3d79b518f70eb0e |
2 |
Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name> |
3 |
AuthorDate: Wed Sep 19 08:19:19 2018 +0000 |
4 |
Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> |
5 |
CommitDate: Wed Sep 19 08:19:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/lua.git/commit/?id=3168d3e8 |
7 |
|
8 |
luacheck: bump; *: added |
9 |
|
10 |
dev-lua/lanes/Manifest | 1 + |
11 |
.../lanes/files/lanes-3.10.0-fix-makefile.patch | 28 +++++++++++++++ |
12 |
dev-lua/lanes/lanes-3.11.ebuild | 31 ++++++++++++++++ |
13 |
dev-lua/lanes/lanes-9999.ebuild | 40 +++++++++++++++++++++ |
14 |
dev-lua/lanes/metadata.xml | 14 ++++++++ |
15 |
dev-lua/lua-xxhash/lua-xxhash-9999.ebuild | 34 ++++++++++++++++++ |
16 |
dev-lua/lua-xxhash/metadata.xml | 14 ++++++++ |
17 |
dev-lua/luacheck/Manifest | 2 +- |
18 |
...acheck-0.22.0.ebuild => luacheck-0.23.0.ebuild} | 8 +++-- |
19 |
dev-lua/luautf8/Manifest | 1 + |
20 |
dev-lua/luautf8/luautf8-9999.ebuild | 42 ++++++++++++++++++++++ |
21 |
dev-lua/luautf8/metadata.xml | 14 ++++++++ |
22 |
dev-lua/randomlua/metadata.xml | 14 ++++++++ |
23 |
dev-lua/randomlua/randomlua-9999.ebuild | 28 +++++++++++++++ |
24 |
dev-lua/resty-xxhash/metadata.xml | 14 ++++++++ |
25 |
dev-lua/resty-xxhash/resty-xxhash-9999.ebuild | 28 +++++++++++++++ |
26 |
eclass/lua.eclass | 25 +++++++------ |
27 |
17 files changed, 325 insertions(+), 13 deletions(-) |
28 |
|
29 |
diff --git a/dev-lua/lanes/Manifest b/dev-lua/lanes/Manifest |
30 |
new file mode 100644 |
31 |
index 0000000..51778fd |
32 |
--- /dev/null |
33 |
+++ b/dev-lua/lanes/Manifest |
34 |
@@ -0,0 +1 @@ |
35 |
+DIST lanes-3.11.tar.gz 233462 SHA256 0a82fadeed96099b7bf90da92ece3862507a5e41a23778a7456b8adaf36e9180 SHA512 00d84ad3d2c4e8d3e6099a68bdd8eb4714e098d5e1af479e42841d708eb4f650cd1f5f0f6ff76860ec6ccc5838225a2961477246662e701bee2587ba8de6ccc2 WHIRLPOOL 15280e988e403aa4498d0afedd27949976fba58c74364983bbc4a6b140d738e757800468c52991a82e82fb18f2b1698bdf08bd8d8db425b900cb26fccc10778a |
36 |
|
37 |
diff --git a/dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch b/dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch |
38 |
new file mode 100644 |
39 |
index 0000000..5254970 |
40 |
--- /dev/null |
41 |
+++ b/dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch |
42 |
@@ -0,0 +1,28 @@ |
43 |
+diff --git a/Makefile b/Makefile |
44 |
+index fc44fac..6c87e89 100644 |
45 |
+--- a/Makefile |
46 |
++++ b/Makefile |
47 |
+@@ -202,17 +202,17 @@ _perftest: |
48 |
+ # |
49 |
+ # LUA_LIBDIR and LUA_SHAREDIR are used by the .rockspec (don't change the names!) |
50 |
+ # |
51 |
+-DESTDIR=/usr/local |
52 |
+-LUA_LIBDIR=$(DESTDIR)/lib/lua/5.1 |
53 |
+-LUA_SHAREDIR=$(DESTDIR)/share/lua/5.1 |
54 |
++PREFIX=/usr/local |
55 |
++LUA_LIBDIR=$(PREFIX)/lib/lua/5.1 |
56 |
++LUA_SHAREDIR=$(PREFIX)/share/lua/5.1 |
57 |
+ |
58 |
+ # |
59 |
+ # AKa 17-Oct: changed to use 'install -m 644' and 'cp -p' |
60 |
+ # |
61 |
+ install: $(_TARGET_SO) src/lanes.lua |
62 |
+- mkdir -p $(LUA_LIBDIR) $(LUA_LIBDIR)/lanes $(LUA_SHAREDIR) |
63 |
+- install -m 644 $(_TARGET_SO) $(LUA_LIBDIR)/lanes |
64 |
+- cp -p src/lanes.lua $(LUA_SHAREDIR) |
65 |
++ mkdir -p $(DESTDIR)$(LUA_LIBDIR)/lanes $(DESTDIR)$(LUA_SHAREDIR) |
66 |
++ install -m 644 $(_TARGET_SO) $(DESTDIR)$(LUA_LIBDIR)/lanes |
67 |
++ cp -p src/lanes.lua $(DESTDIR)$(LUA_SHAREDIR) |
68 |
+ |
69 |
+ |
70 |
+ #--- Packaging --- |
71 |
|
72 |
diff --git a/dev-lua/lanes/lanes-3.11.ebuild b/dev-lua/lanes/lanes-3.11.ebuild |
73 |
new file mode 100644 |
74 |
index 0000000..15a0860 |
75 |
--- /dev/null |
76 |
+++ b/dev-lua/lanes/lanes-3.11.ebuild |
77 |
@@ -0,0 +1,31 @@ |
78 |
+# Copyright 1999-2018 Gentoo Foundation |
79 |
+# Distributed under the terms of the GNU General Public License v2 |
80 |
+ |
81 |
+EAPI=6 |
82 |
+ |
83 |
+inherit cmake-utils lua |
84 |
+ |
85 |
+DESCRIPTION="lightweight, native, lazy evaluating multithreading library" |
86 |
+HOMEPAGE="https://github.com/LuaLanes/lanes" |
87 |
+SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
88 |
+ |
89 |
+LICENSE="MIT" |
90 |
+SLOT="0" |
91 |
+KEYWORDS="amd64" |
92 |
+IUSE="doc" |
93 |
+ |
94 |
+DOCS=(README CHANGES) |
95 |
+HTML_DOCS=(docs/.) |
96 |
+ |
97 |
+each_lua_configure() { |
98 |
+ mycmakeargs=( |
99 |
+ -DINSTALL_CMOD="$(lua_get_pkgvar INSTALL_CMOD)/${PN}" |
100 |
+ -DINSTALL_LMOD="$(lua_get_pkgvar INSTALL_LMOD)" |
101 |
+ ) |
102 |
+ cmake-utils_src_configure |
103 |
+} |
104 |
+ |
105 |
+all_lua_install() { |
106 |
+ lua_default |
107 |
+ rm "${ED}"/usr/share/lanes -r |
108 |
+} |
109 |
|
110 |
diff --git a/dev-lua/lanes/lanes-9999.ebuild b/dev-lua/lanes/lanes-9999.ebuild |
111 |
new file mode 100644 |
112 |
index 0000000..ef74800 |
113 |
--- /dev/null |
114 |
+++ b/dev-lua/lanes/lanes-9999.ebuild |
115 |
@@ -0,0 +1,40 @@ |
116 |
+# Copyright 1999-2018 Gentoo Foundation |
117 |
+# Distributed under the terms of the GNU General Public License v2 |
118 |
+ |
119 |
+EAPI=6 |
120 |
+ |
121 |
+VCS="git" |
122 |
+GITHUB_A="LuaLanes" |
123 |
+ |
124 |
+inherit cmake-utils lua |
125 |
+ |
126 |
+DESCRIPTION="lightweight, native, lazy evaluating multithreading library" |
127 |
+HOMEPAGE="https://github.com/LuaLanes/lanes" |
128 |
+ |
129 |
+LICENSE="MIT" |
130 |
+SLOT="0" |
131 |
+KEYWORDS="" |
132 |
+IUSE="doc" |
133 |
+ |
134 |
+DOCS=(README CHANGES) |
135 |
+HTML_DOCS=(docs/.) |
136 |
+ |
137 |
+all_lua_prepare() { |
138 |
+ sed -r \ |
139 |
+ -e '/^#include "tools.h"$/{h;d};/^#include "universe.h"$/G' \ |
140 |
+ -i src/deep.c |
141 |
+ lua_default |
142 |
+} |
143 |
+ |
144 |
+each_lua_configure() { |
145 |
+ mycmakeargs=( |
146 |
+ -DINSTALL_CMOD="$(lua_get_pkgvar INSTALL_CMOD)/${PN}" |
147 |
+ -DINSTALL_LMOD="$(lua_get_pkgvar INSTALL_LMOD)" |
148 |
+ ) |
149 |
+ cmake-utils_src_configure |
150 |
+} |
151 |
+ |
152 |
+all_lua_install() { |
153 |
+ lua_default |
154 |
+ rm "${ED}"/usr/share/lanes -r |
155 |
+} |
156 |
|
157 |
diff --git a/dev-lua/lanes/metadata.xml b/dev-lua/lanes/metadata.xml |
158 |
new file mode 100644 |
159 |
index 0000000..c1baef2 |
160 |
--- /dev/null |
161 |
+++ b/dev-lua/lanes/metadata.xml |
162 |
@@ -0,0 +1,14 @@ |
163 |
+<?xml version="1.0" encoding="UTF-8"?> |
164 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
165 |
+<pkgmetadata> |
166 |
+ <maintainer type="person"> |
167 |
+ <email>williamh@g.o</email> |
168 |
+ <name>William Hubbs</name> |
169 |
+ </maintainer> |
170 |
+ <longdescription lang="en"> |
171 |
+ lightweight, native, lazy evaluating multithreading library for Lua-5.1 or 5.2. |
172 |
+ </longdescription> |
173 |
+ <upstream> |
174 |
+ <remote-id type="github">LuaLanes/lanes</remote-id> |
175 |
+ </upstream> |
176 |
+</pkgmetadata> |
177 |
|
178 |
diff --git a/dev-lua/lua-xxhash/lua-xxhash-9999.ebuild b/dev-lua/lua-xxhash/lua-xxhash-9999.ebuild |
179 |
new file mode 100644 |
180 |
index 0000000..002afcc |
181 |
--- /dev/null |
182 |
+++ b/dev-lua/lua-xxhash/lua-xxhash-9999.ebuild |
183 |
@@ -0,0 +1,34 @@ |
184 |
+# Copyright 1999-2016 Gentoo Foundation |
185 |
+# Distributed under the terms of the GNU General Public License v2 |
186 |
+ |
187 |
+EAPI=7 |
188 |
+ |
189 |
+VCS="git" |
190 |
+GITHUB_A="mah0x211" |
191 |
+MY_PN="${PN##lua-}" |
192 |
+ |
193 |
+inherit lua |
194 |
+ |
195 |
+DESCRIPTION="Lua bindings for dev-libs/xxhash (XXH32 only for now)" |
196 |
+HOMEPAGE="https://github.com/mah0x211/lua-xxhash" |
197 |
+ |
198 |
+LICENSE="MIT BSD-2" |
199 |
+SLOT="0" |
200 |
+KEYWORDS="" |
201 |
+IUSE="" |
202 |
+ |
203 |
+RDEPEND="dev-libs/xxhash" |
204 |
+DEPEND="${RDEPEND}" |
205 |
+ |
206 |
+DOCS=(README.md) |
207 |
+ |
208 |
+each_lua_compile() { |
209 |
+ append-cflags "-I./src" |
210 |
+ ${CC} ${CFLAGS} -c -o "${MY_PN}.o" "src/${MY_PN}.c" |
211 |
+ ${CC} ${CFLAGS} -c -o "${MY_PN}_bind.o" "src/${MY_PN}_bind.c" |
212 |
+ ${CC} ${LDFLAGS} -lxxhash -o "${MY_PN}".so "${MY_PN}.o" "${MY_PN}_bind.o" |
213 |
+} |
214 |
+ |
215 |
+each_lua_install() { |
216 |
+ dolua "${MY_PN}".so |
217 |
+} |
218 |
|
219 |
diff --git a/dev-lua/lua-xxhash/metadata.xml b/dev-lua/lua-xxhash/metadata.xml |
220 |
new file mode 100644 |
221 |
index 0000000..23da526 |
222 |
--- /dev/null |
223 |
+++ b/dev-lua/lua-xxhash/metadata.xml |
224 |
@@ -0,0 +1,14 @@ |
225 |
+<?xml version="1.0" encoding="UTF-8"?> |
226 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
227 |
+<pkgmetadata> |
228 |
+<maintainer> |
229 |
+ <email>mva@×××.name</email> |
230 |
+ <description> |
231 |
+ If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet. |
232 |
+ </description> |
233 |
+ <name>Vadim A. Misbakh-Soloviov</name> |
234 |
+</maintainer> |
235 |
+<longdescription>FIXME</longdescription> |
236 |
+<use> |
237 |
+</use> |
238 |
+</pkgmetadata> |
239 |
|
240 |
diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest |
241 |
index 113f882..7803633 100644 |
242 |
--- a/dev-lua/luacheck/Manifest |
243 |
+++ b/dev-lua/luacheck/Manifest |
244 |
@@ -1 +1 @@ |
245 |
-DIST luacheck-0.22.0.tar.gz 150685 SHA256 a71806b8ae68f14bd7a40542623fe2377b1184d2972567180f1706254a3bcc72 SHA512 8264000711214e8451307e7f51a45b06d2fcd5da0d3cb49952d54b07a9448431ae3fd68a8cd0a27c73c3b03e6de74e8ae786c139707e16cf938921ab582d3bfd WHIRLPOOL bf00433322f9286e8cbad90606ec80541c7c21da5c2e554c7b1ae206b2ccb9f8cb8d273eaa63ebcda95b2d197f283f7b2cfe6fca98e415d8ee2e26bac1f845e1 |
246 |
+DIST luacheck-0.23.0.tar.gz 158201 SHA256 b4edf3a7702519502696d4ac7372ed1bd6a82ded63bf81f2b1d7e9b37711be2b SHA512 d76e4b22f1e9d868a8531ad51fb98607e5bfb1fbbd55053105d9978ba6c0455de99202c53d4e199733ea997863b26527fb84e7e9717209fd588f1d02db9db028 WHIRLPOOL 009c9163fab48898934ad0987659c4ac106aa88e914bf1703ce00e3875e440ab4cc73d235f1307d5e9657b50d18b42307bea70e4e9f743673f02dd8bf1d0b4bc |
247 |
|
248 |
diff --git a/dev-lua/luacheck/luacheck-0.22.0.ebuild b/dev-lua/luacheck/luacheck-0.23.0.ebuild |
249 |
similarity index 88% |
250 |
rename from dev-lua/luacheck/luacheck-0.22.0.ebuild |
251 |
rename to dev-lua/luacheck/luacheck-0.23.0.ebuild |
252 |
index 29203ab..33bc85a 100644 |
253 |
--- a/dev-lua/luacheck/luacheck-0.22.0.ebuild |
254 |
+++ b/dev-lua/luacheck/luacheck-0.23.0.ebuild |
255 |
@@ -2,7 +2,7 @@ |
256 |
# Distributed under the terms of the GNU General Public License v2 |
257 |
|
258 |
EAPI=6 |
259 |
-LUA_COMPAT="lua51 luajit2" |
260 |
+#LUA_COMPAT="lua51 lua52 lua53 luajit2" |
261 |
inherit lua |
262 |
|
263 |
DESCRIPTION="A tool for linting and static analysis of Lua code" |
264 |
@@ -16,11 +16,15 @@ IUSE="doc test" |
265 |
|
266 |
RDEPEND=" |
267 |
dev-lua/luafilesystem |
268 |
+ dev-lua/lanes |
269 |
" |
270 |
DEPEND="${RDEPEND} |
271 |
virtual/pkgconfig |
272 |
doc? ( dev-python/sphinx ) |
273 |
- test? ( dev-lua/busted )" |
274 |
+ test? ( |
275 |
+ dev-lua/busted |
276 |
+ dev-lua/luautf8 |
277 |
+ )" |
278 |
|
279 |
DOCS=( CHANGELOG.md README.md ) |
280 |
|
281 |
|
282 |
diff --git a/dev-lua/luautf8/Manifest b/dev-lua/luautf8/Manifest |
283 |
new file mode 100644 |
284 |
index 0000000..2c4ba72 |
285 |
--- /dev/null |
286 |
+++ b/dev-lua/luautf8/Manifest |
287 |
@@ -0,0 +1 @@ |
288 |
+DIST UCD.zip 5751718 SHA256 7a0f297f845b38454c1939ef773dbd0355ae6c00eaa34cdc84139de956a7b8a3 SHA512 954a499ff072727c8778e711fb1753834adf09277c9e9a2592c02b59971860f9a407c7e9985ed1e6bdda7a3cf3b1cd6316599c4bffe8b0625413f874486830c1 WHIRLPOOL 7c0bbd8888041bf82c7b45dac7f2c26d5a2fadbeffa688856dd7d31e053eca1a3db04d86ed134f5de45309c7a805eee48b2c08b01959e64ed19db1e5e6fc9f1e |
289 |
|
290 |
diff --git a/dev-lua/luautf8/luautf8-9999.ebuild b/dev-lua/luautf8/luautf8-9999.ebuild |
291 |
new file mode 100644 |
292 |
index 0000000..c39c74b |
293 |
--- /dev/null |
294 |
+++ b/dev-lua/luautf8/luautf8-9999.ebuild |
295 |
@@ -0,0 +1,42 @@ |
296 |
+# Copyright 1999-2018 Gentoo Foundation |
297 |
+# Distributed under the terms of the GNU General Public License v2 |
298 |
+ |
299 |
+EAPI=6 |
300 |
+ |
301 |
+VCS="git" |
302 |
+GITHUB_A="starwing" |
303 |
+ |
304 |
+inherit lua |
305 |
+ |
306 |
+DESCRIPTION="lightweight, native, lazy evaluating multithreading library" |
307 |
+HOMEPAGE="https://github.com/LuaLanes/lanes" |
308 |
+ |
309 |
+SRC_URI="http://unicode.org/Public/UCD/latest/ucd/UCD.zip" |
310 |
+ |
311 |
+LICENSE="MIT" |
312 |
+SLOT="0" |
313 |
+KEYWORDS="" |
314 |
+IUSE="examples" |
315 |
+ |
316 |
+DOCS=(README.md) |
317 |
+EXAMPLES=(test{,_{compat,pm}}.lua) |
318 |
+ |
319 |
+src_unpack() { |
320 |
+ local ucd="${WORKDIR}/all/${P}/ucd"; |
321 |
+ lua_src_unpack |
322 |
+ mkdir "${ucd}" |
323 |
+ mv ${WORKDIR}/all/*.txt "${ucd}" |
324 |
+} |
325 |
+ |
326 |
+all_lua_prepare() { |
327 |
+ lua_default |
328 |
+ lua parseucd.lua |
329 |
+} |
330 |
+ |
331 |
+each_lua_compile() { |
332 |
+ ${CC} ${CFLAGS} ${LDFLAGS} lutf8lib.c -o lua-utf8.so |
333 |
+} |
334 |
+ |
335 |
+each_lua_install() { |
336 |
+ dolua lua-utf8.so |
337 |
+} |
338 |
|
339 |
diff --git a/dev-lua/luautf8/metadata.xml b/dev-lua/luautf8/metadata.xml |
340 |
new file mode 100644 |
341 |
index 0000000..c1baef2 |
342 |
--- /dev/null |
343 |
+++ b/dev-lua/luautf8/metadata.xml |
344 |
@@ -0,0 +1,14 @@ |
345 |
+<?xml version="1.0" encoding="UTF-8"?> |
346 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
347 |
+<pkgmetadata> |
348 |
+ <maintainer type="person"> |
349 |
+ <email>williamh@g.o</email> |
350 |
+ <name>William Hubbs</name> |
351 |
+ </maintainer> |
352 |
+ <longdescription lang="en"> |
353 |
+ lightweight, native, lazy evaluating multithreading library for Lua-5.1 or 5.2. |
354 |
+ </longdescription> |
355 |
+ <upstream> |
356 |
+ <remote-id type="github">LuaLanes/lanes</remote-id> |
357 |
+ </upstream> |
358 |
+</pkgmetadata> |
359 |
|
360 |
diff --git a/dev-lua/randomlua/metadata.xml b/dev-lua/randomlua/metadata.xml |
361 |
new file mode 100644 |
362 |
index 0000000..23da526 |
363 |
--- /dev/null |
364 |
+++ b/dev-lua/randomlua/metadata.xml |
365 |
@@ -0,0 +1,14 @@ |
366 |
+<?xml version="1.0" encoding="UTF-8"?> |
367 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
368 |
+<pkgmetadata> |
369 |
+<maintainer> |
370 |
+ <email>mva@×××.name</email> |
371 |
+ <description> |
372 |
+ If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet. |
373 |
+ </description> |
374 |
+ <name>Vadim A. Misbakh-Soloviov</name> |
375 |
+</maintainer> |
376 |
+<longdescription>FIXME</longdescription> |
377 |
+<use> |
378 |
+</use> |
379 |
+</pkgmetadata> |
380 |
|
381 |
diff --git a/dev-lua/randomlua/randomlua-9999.ebuild b/dev-lua/randomlua/randomlua-9999.ebuild |
382 |
new file mode 100644 |
383 |
index 0000000..c07ded3 |
384 |
--- /dev/null |
385 |
+++ b/dev-lua/randomlua/randomlua-9999.ebuild |
386 |
@@ -0,0 +1,28 @@ |
387 |
+# Copyright 1999-2016 Gentoo Foundation |
388 |
+# Distributed under the terms of the GNU General Public License v2 |
389 |
+ |
390 |
+EAPI=6 |
391 |
+ |
392 |
+VCS="git" |
393 |
+GITHUB_A="linux-man" |
394 |
+ |
395 |
+inherit lua |
396 |
+ |
397 |
+DESCRIPTION="Pure Lua Random Generator" |
398 |
+HOMEPAGE="https://github.com/linux-man/randomlua" |
399 |
+ |
400 |
+LICENSE="MIT" |
401 |
+SLOT="0" |
402 |
+KEYWORDS="" |
403 |
+IUSE="" |
404 |
+ |
405 |
+RDEPEND="" |
406 |
+DEPEND=" |
407 |
+ ${RDEPEND} |
408 |
+" |
409 |
+ |
410 |
+DOCS=(README.md) |
411 |
+ |
412 |
+each_lua_install() { |
413 |
+ dolua "${PN}.lua" |
414 |
+} |
415 |
|
416 |
diff --git a/dev-lua/resty-xxhash/metadata.xml b/dev-lua/resty-xxhash/metadata.xml |
417 |
new file mode 100644 |
418 |
index 0000000..23da526 |
419 |
--- /dev/null |
420 |
+++ b/dev-lua/resty-xxhash/metadata.xml |
421 |
@@ -0,0 +1,14 @@ |
422 |
+<?xml version="1.0" encoding="UTF-8"?> |
423 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
424 |
+<pkgmetadata> |
425 |
+<maintainer> |
426 |
+ <email>mva@×××.name</email> |
427 |
+ <description> |
428 |
+ If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet. |
429 |
+ </description> |
430 |
+ <name>Vadim A. Misbakh-Soloviov</name> |
431 |
+</maintainer> |
432 |
+<longdescription>FIXME</longdescription> |
433 |
+<use> |
434 |
+</use> |
435 |
+</pkgmetadata> |
436 |
|
437 |
diff --git a/dev-lua/resty-xxhash/resty-xxhash-9999.ebuild b/dev-lua/resty-xxhash/resty-xxhash-9999.ebuild |
438 |
new file mode 100644 |
439 |
index 0000000..78b7c60 |
440 |
--- /dev/null |
441 |
+++ b/dev-lua/resty-xxhash/resty-xxhash-9999.ebuild |
442 |
@@ -0,0 +1,28 @@ |
443 |
+# Copyright 1999-2016 Gentoo Foundation |
444 |
+# Distributed under the terms of the GNU General Public License v2 |
445 |
+ |
446 |
+EAPI=7 |
447 |
+ |
448 |
+LUA_COMPAT="luajit2" |
449 |
+VCS="git" |
450 |
+GITHUB_A="sjnam" |
451 |
+GITHUB_PN="luajit-${PN##resty-}" |
452 |
+ |
453 |
+inherit lua |
454 |
+ |
455 |
+DESCRIPTION="LuaJIT bindings for dev-libs/xxhash" |
456 |
+HOMEPAGE="https://github.com/sjnam/luajit-xxhash" |
457 |
+ |
458 |
+LICENSE="MIT" |
459 |
+SLOT="0" |
460 |
+KEYWORDS="" |
461 |
+IUSE="" |
462 |
+ |
463 |
+RDEPEND="dev-libs/xxhash" |
464 |
+DEPEND="${RDEPEND}" |
465 |
+ |
466 |
+DOCS=(README.md) |
467 |
+ |
468 |
+each_lua_install() { |
469 |
+ dolua_jit lib/resty |
470 |
+} |
471 |
|
472 |
diff --git a/eclass/lua.eclass b/eclass/lua.eclass |
473 |
index 07b1e7a..01f74de 100644 |
474 |
--- a/eclass/lua.eclass |
475 |
+++ b/eclass/lua.eclass |
476 |
@@ -436,16 +436,21 @@ lua_src_unpack() { |
477 |
# We don't support an each-unpack, it's either all or nothing! |
478 |
if type all_lua_unpack &>/dev/null; then |
479 |
_lua_invoke_environment all all_lua_unpack |
480 |
- elif [[ -n ${VCS} ]] && declare -f ${VCS}_src_unpack >/dev/null; then |
481 |
- _lua_invoke_environment all ${VCS}_src_unpack |
482 |
- elif declare -f unpacker_src_unpack >/dev/null; then |
483 |
- _lua_invoke_environment all unpacker_src_unpack |
484 |
- elif [[ -n ${A} ]]; then |
485 |
- unpack ${A} |
486 |
- elif [[ -z "${GITHUB_A}" && -z "${BITBUCKET_A}" ]]; then |
487 |
- eerror "Either GITHUB_A or BITBUCKET_A (author nick) should be set for magic SRC/REPO URI filling to work" |
488 |
- eerror "You should either set one of them, or fill the proper URI variable manually!" |
489 |
- die "See above eerror messages." |
490 |
+ else |
491 |
+ if [[ -n ${A} ]]; then |
492 |
+ if declare -f unpacker_src_unpack >/dev/null; then |
493 |
+ _lua_invoke_environment all unpacker_src_unpack |
494 |
+ else |
495 |
+ unpack ${A} |
496 |
+ fi |
497 |
+ fi |
498 |
+ if [[ -n ${VCS} ]] && declare -f ${VCS}_src_unpack >/dev/null; then |
499 |
+ _lua_invoke_environment all ${VCS}_src_unpack |
500 |
+ elif [[ -z "${GITHUB_A}" && -z "${BITBUCKET_A}" && -z "${A}" ]]; then |
501 |
+ eerror "Either GITHUB_A or BITBUCKET_A (author nick) should be set for magic SRC/REPO URI filling to work" |
502 |
+ eerror "You should either set one of them, or fill the proper URI variable manually!" |
503 |
+ die "See above eerror messages." |
504 |
+ fi |
505 |
fi |
506 |
|
507 |
# hack for VCS-eclasses (darcs, for example) which defaults unpack dir to WD/P instead of S |