svn commit: r457522 - in head/multimedia/libquvi09: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Dec 29 18:47:07 UTC 2017
Author: sunpoet
Date: Fri Dec 29 18:47:05 2017
New Revision: 457522
URL: https://svnweb.freebsd.org/changeset/ports/457522
Log:
Fix build with Lua 5.3
- Bump PORTREVISION for package change
PR: 224648
Submitted by: fluffy
MFH: 2017Q4
Added:
head/multimedia/libquvi09/files/patch-src-lua-init.c (contents, props changed)
Modified:
head/multimedia/libquvi09/Makefile
Modified: head/multimedia/libquvi09/Makefile
==============================================================================
--- head/multimedia/libquvi09/Makefile Fri Dec 29 18:47:00 2017 (r457521)
+++ head/multimedia/libquvi09/Makefile Fri Dec 29 18:47:05 2017 (r457522)
@@ -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
Added: head/multimedia/libquvi09/files/patch-src-lua-init.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/multimedia/libquvi09/files/patch-src-lua-init.c Fri Dec 29 18:47:05 2017 (r457522)
@@ -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);
+ }
More information about the svn-ports-head
mailing list