Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/lua-http lua-http: Recognize Lua 5.4's bit library
details: https://anonhg.NetBSD.org/pkgsrc/rev/7711c97847a0
branches: trunk
changeset: 437917:7711c97847a0
user: nia <nia%pkgsrc.org@localhost>
date: Thu Sep 03 07:39:40 2020 +0000
description:
lua-http: Recognize Lua 5.4's bit library
diffstat:
www/lua-http/Makefile | 3 ++-
www/lua-http/patches/patch-http_bit.lua | 15 +++++++++++++++
2 files changed, 17 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r f47cf535222b -r 7711c97847a0 www/lua-http/Makefile
--- a/www/lua-http/Makefile Thu Sep 03 07:34:59 2020 +0000
+++ b/www/lua-http/Makefile Thu Sep 03 07:39:40 2020 +0000
@@ -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
diff -r f47cf535222b -r 7711c97847a0 www/lua-http/patches/patch-http_bit.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-http/patches/patch-http_bit.lua Thu Sep 03 07:39:40 2020 +0000
@@ -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