Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-compat53 lua-compat53: Update to 0.9



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b75917b5768
branches:  trunk
changeset: 435659:3b75917b5768
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Jul 11 13:48:49 2020 +0000

description:
lua-compat53: Update to 0.9

This update makes it possible to use the module with Lua 5.4.

I added support for testing, but this doesn't seem particularly
useful for non-developers since its output is obscure, but it
can at least be used to demonstrate that the module loads and
the tests don't fail to run.

diffstat:

 devel/lua-compat53/DESCR          |   2 +-
 devel/lua-compat53/Makefile       |  10 +++++-----
 devel/lua-compat53/distinfo       |  10 +++++-----
 devel/lua-compat53/files/Makefile |  10 ++++++++--
 4 files changed, 19 insertions(+), 13 deletions(-)

diffs (85 lines):

diff -r 450f390b7e31 -r 3b75917b5768 devel/lua-compat53/DESCR
--- a/devel/lua-compat53/DESCR  Sat Jul 11 12:56:28 2020 +0000
+++ b/devel/lua-compat53/DESCR  Sat Jul 11 13:48:49 2020 +0000
@@ -1,5 +1,5 @@
 This is a small module that aims to make it easier to write Lua
-code in a Lua-5.3-style that runs on Lua 5.3, 5.2, and 5.1.
+code in a Lua-5.3-style that runs on Lua 5.1+.
 
 It does *not* make Lua 5.2 (or even 5.1) entirely compatible
 with Lua 5.3, but it brings the API closer to that of Lua 5.3.
diff -r 450f390b7e31 -r 3b75917b5768 devel/lua-compat53/Makefile
--- a/devel/lua-compat53/Makefile       Sat Jul 11 12:56:28 2020 +0000
+++ b/devel/lua-compat53/Makefile       Sat Jul 11 13:48:49 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/07/08 14:25:38 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 13:48:49 nia Exp $
 
-DISTNAME=      lua-compat53-0.7
+DISTNAME=      lua-compat53-0.9
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua-//1}
 CATEGORIES=    devel lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=keplerproject/}
@@ -21,9 +21,6 @@
 INSTALLATION_DIRS+=    ${LUA_LDIR}/compat53
 INSTALLATION_DIRS+=    ${LUA_CDIR}/compat53
 
-# Does not make sense to use this with newer Lua versions.
-LUA_VERSIONS_ACCEPTED= 52 51
-
 pre-build:
        ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
 
@@ -32,5 +29,8 @@
        ${INSTALL_DATA} ${WRKSRC}/compat53/*.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/compat53
        ${INSTALL_DATA} ${WRKSRC}/c-api/* ${DESTDIR}${PREFIX}/${LUA_INCDIR}
 
+do-test:
+       cd ${WRKSRC}/tests && ${LUA_INTERPRETER} test.lua
+
 .include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 450f390b7e31 -r 3b75917b5768 devel/lua-compat53/distinfo
--- a/devel/lua-compat53/distinfo       Sat Jul 11 12:56:28 2020 +0000
+++ b/devel/lua-compat53/distinfo       Sat Jul 11 13:48:49 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2020/07/08 14:25:38 nia Exp $
+$NetBSD: distinfo,v 1.2 2020/07/11 13:48:49 nia Exp $
 
-SHA1 (lua-compat53-0.7.tar.gz) = b93fcbfe10e1c6f410dba4db9450f7c217695f43
-RMD160 (lua-compat53-0.7.tar.gz) = b0c5b6cb1c7c69055e42ff49ef91d5e2b99fe836
-SHA512 (lua-compat53-0.7.tar.gz) = 665ece98422a105b818cffd96eea5788696fbb854d2ba41d2d387e8bd25c1fa9de601468e55e22e9e749979a66d4d2e0f7dfd656e5bf27b489d37bb07c96f48d
-Size (lua-compat53-0.7.tar.gz) = 51383 bytes
+SHA1 (lua-compat53-0.9.tar.gz) = e1f2f8052dacb30295c768969547423c882bf3ee
+RMD160 (lua-compat53-0.9.tar.gz) = ae80f773f517885dad3e64863aaf9b56d40d535c
+SHA512 (lua-compat53-0.9.tar.gz) = bec15b6e95cb5cc775785515eba1f094e453059a0ba1eefa433d328b823378b7f48d9c7a34080ad77478cffb2008bead93418f809793afa6021e6046562acc58
+Size (lua-compat53-0.9.tar.gz) = 53599 bytes
diff -r 450f390b7e31 -r 3b75917b5768 devel/lua-compat53/files/Makefile
--- a/devel/lua-compat53/files/Makefile Sat Jul 11 12:56:28 2020 +0000
+++ b/devel/lua-compat53/files/Makefile Sat Jul 11 13:48:49 2020 +0000
@@ -1,13 +1,16 @@
-# $NetBSD: Makefile,v 1.1 2020/07/08 14:25:38 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/11 13:48:49 nia Exp $
 
 CFLAGS+=       -fPIC -Wall
 LDFLAGS+=      -shared
 
-all: utf8.so table.so string.so
+all: utf8.so table.so string.so tests/testmod.so
 
 .c.o:
        $(CC) $(CFLAGS) -c $<
 
+testmod.o: tests/testmod.c
+       $(CC) $(CFLAGS) -Ic-api/ -c $<
+
 utf8.so: lutf8lib.o
        $(CC) $(LDFLAGS) -o $@ lutf8lib.o
 
@@ -16,3 +19,6 @@
 
 string.so: lstrlib.o
        $(CC) $(LDFLAGS) -o $@ lstrlib.o
+
+tests/testmod.so: testmod.o
+       $(CC) $(LDFLAGS) -o $@ testmod.o



Home | Main Index | Thread Index | Old Index