pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/lua-compat53



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Jul 11 13:48:49 UTC 2020

Modified Files:
        pkgsrc/devel/lua-compat53: DESCR Makefile distinfo
        pkgsrc/devel/lua-compat53/files: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lua-compat53/DESCR \
    pkgsrc/devel/lua-compat53/Makefile pkgsrc/devel/lua-compat53/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lua-compat53/files/Makefile

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

Modified files:

Index: pkgsrc/devel/lua-compat53/DESCR
diff -u pkgsrc/devel/lua-compat53/DESCR:1.1 pkgsrc/devel/lua-compat53/DESCR:1.2
--- pkgsrc/devel/lua-compat53/DESCR:1.1 Wed Jul  8 14:25:38 2020
+++ pkgsrc/devel/lua-compat53/DESCR     Sat Jul 11 13:48:49 2020
@@ -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.
Index: pkgsrc/devel/lua-compat53/Makefile
diff -u pkgsrc/devel/lua-compat53/Makefile:1.1 pkgsrc/devel/lua-compat53/Makefile:1.2
--- pkgsrc/devel/lua-compat53/Makefile:1.1      Wed Jul  8 14:25:38 2020
+++ pkgsrc/devel/lua-compat53/Makefile  Sat Jul 11 13:48:49 2020
@@ -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} ${LUA_CD
 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 @@ do-install:
        ${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"
Index: pkgsrc/devel/lua-compat53/distinfo
diff -u pkgsrc/devel/lua-compat53/distinfo:1.1 pkgsrc/devel/lua-compat53/distinfo:1.2
--- pkgsrc/devel/lua-compat53/distinfo:1.1      Wed Jul  8 14:25:38 2020
+++ pkgsrc/devel/lua-compat53/distinfo  Sat Jul 11 13:48:49 2020
@@ -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

Index: pkgsrc/devel/lua-compat53/files/Makefile
diff -u pkgsrc/devel/lua-compat53/files/Makefile:1.1 pkgsrc/devel/lua-compat53/files/Makefile:1.2
--- pkgsrc/devel/lua-compat53/files/Makefile:1.1        Wed Jul  8 14:25:38 2020
+++ pkgsrc/devel/lua-compat53/files/Makefile    Sat Jul 11 13:48:49 2020
@@ -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 @@ table.so: ltablib.o
 
 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