pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/lua-http



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Sep  3 07:39:40 UTC 2020

Modified Files:
        pkgsrc/www/lua-http: Makefile
Added Files:
        pkgsrc/www/lua-http/patches: patch-http_bit.lua

Log Message:
lua-http: Recognize Lua 5.4's bit library


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/lua-http/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/www/lua-http/patches/patch-http_bit.lua

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/lua-http/Makefile
diff -u pkgsrc/www/lua-http/Makefile:1.2 pkgsrc/www/lua-http/Makefile:1.3
--- pkgsrc/www/lua-http/Makefile:1.2    Thu Sep  3 07:34:59 2020
+++ pkgsrc/www/lua-http/Makefile        Thu Sep  3 07:39:40 2020
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2020/09/03 07:34:59 nia Exp $
+# $NetBSD: Makefile,v 1.3 2020/09/03 07:39:40 nia Exp $
 
 DISTNAME=      lua-http-0.3
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/lua-//1}
+PKGREVISION=   1
 CATEGORIES=    www lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=daurnimator/}
 GITHUB_PROJECT=        lua-http

Added files:

Index: pkgsrc/www/lua-http/patches/patch-http_bit.lua
diff -u /dev/null pkgsrc/www/lua-http/patches/patch-http_bit.lua:1.1
--- /dev/null   Thu Sep  3 07:39:40 2020
+++ pkgsrc/www/lua-http/patches/patch-http_bit.lua      Thu Sep  3 07:39:40 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-http_bit.lua,v 1.1 2020/09/03 07:39:40 nia Exp $
+
+Recognize Lua 5.4.
+
+--- http/bit.lua.orig  2019-02-13 11:43:45.000000000 +0000
++++ http/bit.lua
+@@ -8,7 +8,7 @@ This means we can ignore the differences
+ ]]
+ 
+ -- Lua 5.3 has built-in bit operators, wrap them in a function.
+-if _VERSION == "Lua 5.3" then
++if _VERSION == "Lua 5.3" or _VERSION == "Lua 5.4" then
+       -- Use debug.getinfo to get correct file+line numbers for loaded snippet
+       local info = debug.getinfo(1, "Sl")
+       return assert(load(("\n"):rep(info.currentline+1)..[[return {



Home | Main Index | Thread Index | Old Index