1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix build with Lua 5.3

- Bump PORTREVISION for package change

PR:		224648
Submitted by:	fluffy
MFH:		2017Q4
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-12-29 18:47:05 +00:00
parent e293b50e02
commit a2648755a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=457522
2 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= libquvi
PORTVERSION= 0.9.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= multimedia devel
MASTER_SITES= SF/quvi/${PORTVERSION:R}/${PORTNAME}/
PKGNAMESUFFIX= 09

View File

@ -0,0 +1,20 @@
--- src/lua/init.c.orig
+++ src/lua/init.c
@@ -80,10 +80,17 @@ QuviError l_init(_quvi_t q)
return (QUVI_ERROR_LUA_INIT);
luaL_openlibs(q->handle.lua);
+#if LUA_VERSION_NUM < 502
luaL_register(q->handle.lua, "quvi", quvi_reg_meth);
luaL_register(q->handle.lua, "quvi.http", quvi_http_reg_meth);
luaL_register(q->handle.lua, "quvi.crypto", quvi_crypto_reg_meth);
luaL_register(q->handle.lua, "quvi.base64", quvi_base64_reg_meth);
+#else
+ luaL_newlib(q->handle.lua, quvi_reg_meth);
+ luaL_newlib(q->handle.lua, quvi_http_reg_meth);
+ luaL_newlib(q->handle.lua, quvi_crypto_reg_meth);
+ luaL_newlib(q->handle.lua, quvi_base64_reg_meth);
+#endif
return (QUVI_OK);
}