Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 1BFFF1A9217 for ; Wed, 9 Dec 2020 11:12:50 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 8291584D9B; Wed, 9 Dec 2020 11:12:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BD01C84D8C for ; Wed, 9 Dec 2020 11:12:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id pTFAoNIhPq8F for ; Wed, 9 Dec 2020 11:12:48 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 2750C84CEA for ; Wed, 9 Dec 2020 11:12:48 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 2493CFA9D; Wed, 9 Dec 2020 11:12:48 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1607512368118940" MIME-Version: 1.0 Date: Wed, 9 Dec 2020 11:12:48 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/textproc/lua-stringy To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20201209111248.2493CFA9D@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1607512368118940 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Wed Dec 9 11:12:48 UTC 2020 Modified Files: pkgsrc/textproc/lua-stringy: DESCR Makefile distinfo Added Files: pkgsrc/textproc/lua-stringy/patches: patch-stringy_stringy.c Log Message: lua-stringy: Update to 0.7.0 Adds join function. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/lua-stringy/DESCR \ pkgsrc/textproc/lua-stringy/Makefile pkgsrc/textproc/lua-stringy/distinfo cvs rdiff -u -r0 -r1.1 \ pkgsrc/textproc/lua-stringy/patches/patch-stringy_stringy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1607512368118940 Content-Disposition: inline Content-Length: 3720 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/textproc/lua-stringy/DESCR diff -u pkgsrc/textproc/lua-stringy/DESCR:1.1 pkgsrc/textproc/lua-stringy/DESCR:1.2 --- pkgsrc/textproc/lua-stringy/DESCR:1.1 Wed Jul 8 11:54:53 2020 +++ pkgsrc/textproc/lua-stringy/DESCR Wed Dec 9 11:12:47 2020 @@ -1 +1,2 @@ -Fast Lua string operations for: count, find, startswith, endswith, split +Fast Lua string operations for: count, find, startswith, endswith, split, +strip, join Index: pkgsrc/textproc/lua-stringy/Makefile diff -u pkgsrc/textproc/lua-stringy/Makefile:1.1 pkgsrc/textproc/lua-stringy/Makefile:1.2 --- pkgsrc/textproc/lua-stringy/Makefile:1.1 Wed Jul 8 11:54:53 2020 +++ pkgsrc/textproc/lua-stringy/Makefile Wed Dec 9 11:12:47 2020 @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.1 2020/07/08 11:54:53 nia Exp $ +# $NetBSD: Makefile,v 1.2 2020/12/09 11:12:47 nia Exp $ -DISTNAME= lua-stringy-0.6.1 +DISTNAME= lua-stringy-0.7.0 PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1} CATEGORIES= textproc lua MASTER_SITES= ${MASTER_SITE_GITHUB:=mdeneen/} GITHUB_PROJECT= lua-stringy -GITHUB_TAG= v0.6-1 +GITHUB_TAG= v0.7-0 MAINTAINER= nia@NetBSD.org HOMEPAGE= https://github.com/mdeneen/lua-stringy @@ -24,5 +24,8 @@ do-install: ${INSTALL_LIB} ${WRKSRC}/stringy/stringy.so \ ${DESTDIR}${PREFIX}/${LUA_CDIR}/stringy.so +do-test: + cd ${WRKSRC}/stringy && ${LUA_INTERPRETER} stringy_test.lua + .include "../../lang/lua/module.mk" .include "../../mk/bsd.pkg.mk" Index: pkgsrc/textproc/lua-stringy/distinfo diff -u pkgsrc/textproc/lua-stringy/distinfo:1.1 pkgsrc/textproc/lua-stringy/distinfo:1.2 --- pkgsrc/textproc/lua-stringy/distinfo:1.1 Wed Jul 8 11:54:53 2020 +++ pkgsrc/textproc/lua-stringy/distinfo Wed Dec 9 11:12:47 2020 @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1 2020/07/08 11:54:53 nia Exp $ +$NetBSD: distinfo,v 1.2 2020/12/09 11:12:47 nia Exp $ -SHA1 (lua-stringy-0.6.1.tar.gz) = 25ed808267eb8e09993ecc7b067ad5f0362bcb61 -RMD160 (lua-stringy-0.6.1.tar.gz) = bd2b7d55ca4b53d2258a4c3ed685a51b2540c944 -SHA512 (lua-stringy-0.6.1.tar.gz) = 2c2e07bc0c9981a58da350e13a2c956a250fd3a270aa8c165a8ad4609c6bd1a3c308df89352827f5a936c50d942b5348a4accb68776d628d9bcb66e9afd1ec2a -Size (lua-stringy-0.6.1.tar.gz) = 5826 bytes +SHA1 (lua-stringy-0.7.0.tar.gz) = 1aad5694ac3b5662b6b02165700e79f51832d18e +RMD160 (lua-stringy-0.7.0.tar.gz) = 8996c17b8fb6147cfc693e96d657e41bbfe43a8b +SHA512 (lua-stringy-0.7.0.tar.gz) = e23ea0f04bd4c1db8fe3fdda2d8fb4a18e78b82aadc12edf1114b29b18b68d981f7d304ccd1823711e7cc6dc586694f0d902faba41a91387319a1ceefc29e116 +Size (lua-stringy-0.7.0.tar.gz) = 6213 bytes SHA1 (patch-stringy_Makefile) = de1abbb4e5c5a4b805caea58bd88b1ed4eeff0ae +SHA1 (patch-stringy_stringy.c) = a984b24ec331fc0188b95a119c923f443e08b8a3 Added files: Index: pkgsrc/textproc/lua-stringy/patches/patch-stringy_stringy.c diff -u /dev/null pkgsrc/textproc/lua-stringy/patches/patch-stringy_stringy.c:1.1 --- /dev/null Wed Dec 9 11:12:48 2020 +++ pkgsrc/textproc/lua-stringy/patches/patch-stringy_stringy.c Wed Dec 9 11:12:47 2020 @@ -0,0 +1,18 @@ +$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); --_----------=_1607512368118940--