Date: Fri, 29 Dec 2017 18:47:06 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457522 - in head/multimedia/libquvi09: . files Message-ID: <201712291847.vBTIl64v062217@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712291847.vBTIl64v062217>