Wed Dec 9 11:12:48 2020 UTC ()
lua-stringy: Update to 0.7.0

Adds join function.


(nia)
diff -r1.1 -r1.2 pkgsrc/textproc/lua-stringy/DESCR
diff -r1.1 -r1.2 pkgsrc/textproc/lua-stringy/Makefile
diff -r1.1 -r1.2 pkgsrc/textproc/lua-stringy/distinfo
diff -r0 -r1.1 pkgsrc/textproc/lua-stringy/patches/patch-stringy_stringy.c

cvs diff -r1.1 -r1.2 pkgsrc/textproc/lua-stringy/DESCR (expand / switch to unified diff)

--- pkgsrc/textproc/lua-stringy/DESCR 2020/07/08 11:54:53 1.1
+++ pkgsrc/textproc/lua-stringy/DESCR 2020/12/09 11:12:47 1.2

cvs diff -r1.1 -r1.2 pkgsrc/textproc/lua-stringy/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/lua-stringy/Makefile 2020/07/08 11:54:53 1.1
+++ pkgsrc/textproc/lua-stringy/Makefile 2020/12/09 11:12:47 1.2
@@ -1,28 +1,31 @@ @@ -1,28 +1,31 @@
1# $NetBSD: Makefile,v 1.1 2020/07/08 11:54:53 nia Exp $ 1# $NetBSD: Makefile,v 1.2 2020/12/09 11:12:47 nia Exp $
2 2
3DISTNAME= lua-stringy-0.6.1 3DISTNAME= lua-stringy-0.7.0
4PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1} 4PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
5CATEGORIES= textproc lua 5CATEGORIES= textproc lua
6MASTER_SITES= ${MASTER_SITE_GITHUB:=mdeneen/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=mdeneen/}
7GITHUB_PROJECT= lua-stringy 7GITHUB_PROJECT= lua-stringy
8GITHUB_TAG= v0.6-1 8GITHUB_TAG= v0.7-0
9 9
10MAINTAINER= nia@NetBSD.org 10MAINTAINER= nia@NetBSD.org
11HOMEPAGE= https://github.com/mdeneen/lua-stringy 11HOMEPAGE= https://github.com/mdeneen/lua-stringy
12COMMENT= Fast Lua string operations 12COMMENT= Fast Lua string operations
13LICENSE= mit 13LICENSE= mit
14 14
15USE_TOOLS+= gmake pkg-config 15USE_TOOLS+= gmake pkg-config
16 16
17BUILD_DIRS= stringy 17BUILD_DIRS= stringy
18 18
19MAKE_FLAGS+= LUA_PC=lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR} 19MAKE_FLAGS+= LUA_PC=lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
20 20
21INSTALLATION_DIRS+= ${LUA_CDIR} 21INSTALLATION_DIRS+= ${LUA_CDIR}
22 22
23do-install: 23do-install:
24 ${INSTALL_LIB} ${WRKSRC}/stringy/stringy.so \ 24 ${INSTALL_LIB} ${WRKSRC}/stringy/stringy.so \
25 ${DESTDIR}${PREFIX}/${LUA_CDIR}/stringy.so 25 ${DESTDIR}${PREFIX}/${LUA_CDIR}/stringy.so
26 26
 27do-test:
 28 cd ${WRKSRC}/stringy && ${LUA_INTERPRETER} stringy_test.lua
 29
27.include "../../lang/lua/module.mk" 30.include "../../lang/lua/module.mk"
28.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/textproc/lua-stringy/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/lua-stringy/distinfo 2020/07/08 11:54:53 1.1
+++ pkgsrc/textproc/lua-stringy/distinfo 2020/12/09 11:12:47 1.2
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.1 2020/07/08 11:54:53 nia Exp $ 1$NetBSD: distinfo,v 1.2 2020/12/09 11:12:47 nia Exp $
2 2
3SHA1 (lua-stringy-0.6.1.tar.gz) = 25ed808267eb8e09993ecc7b067ad5f0362bcb61 3SHA1 (lua-stringy-0.7.0.tar.gz) = 1aad5694ac3b5662b6b02165700e79f51832d18e
4RMD160 (lua-stringy-0.6.1.tar.gz) = bd2b7d55ca4b53d2258a4c3ed685a51b2540c944 4RMD160 (lua-stringy-0.7.0.tar.gz) = 8996c17b8fb6147cfc693e96d657e41bbfe43a8b
5SHA512 (lua-stringy-0.6.1.tar.gz) = 2c2e07bc0c9981a58da350e13a2c956a250fd3a270aa8c165a8ad4609c6bd1a3c308df89352827f5a936c50d942b5348a4accb68776d628d9bcb66e9afd1ec2a 5SHA512 (lua-stringy-0.7.0.tar.gz) = e23ea0f04bd4c1db8fe3fdda2d8fb4a18e78b82aadc12edf1114b29b18b68d981f7d304ccd1823711e7cc6dc586694f0d902faba41a91387319a1ceefc29e116
6Size (lua-stringy-0.6.1.tar.gz) = 5826 bytes 6Size (lua-stringy-0.7.0.tar.gz) = 6213 bytes
7SHA1 (patch-stringy_Makefile) = de1abbb4e5c5a4b805caea58bd88b1ed4eeff0ae 7SHA1 (patch-stringy_Makefile) = de1abbb4e5c5a4b805caea58bd88b1ed4eeff0ae
 8SHA1 (patch-stringy_stringy.c) = a984b24ec331fc0188b95a119c923f443e08b8a3

File Added: pkgsrc/textproc/lua-stringy/patches/patch-stringy_stringy.c
$NetBSD: patch-stringy_stringy.c,v 1.1 2020/12/09 11:12:47 nia Exp $

Argument to ctype functions must be unsigned char.

--- stringy/stringy.c.orig	2020-09-16 18:28:14.000000000 +0000
+++ stringy/stringy.c
@@ -164,9 +164,9 @@ static int strip(lua_State *L) {
     front = luaL_checklstring(L, 1, &size);
     end   = &front[size - 1];
 
-    for ( ; size && isspace(*front) ; size-- , front++)
+    for ( ; size && isspace((unsigned char)*front) ; size-- , front++)
     ;
-    for ( ; size && isspace(*end) ; size-- , end--)
+    for ( ; size && isspace((unsigned char)*end) ; size-- , end--)
     ;
 
     lua_pushlstring(L, front, (size_t)(end - front) + 1);