pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/lua-web-sanitize lua-web-sanitize: Update to 1.3.0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cc4e94a14517
branches:  trunk
changeset: 381772:cc4e94a14517
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 13 08:44:24 2022 +0000

description:
lua-web-sanitize: Update to 1.3.0. Fix running tests.

This update includes a fix for the stack overflow (too many captures) error produced by LPeg when parsing too large of an input.

diffstat:

 www/lua-web-sanitize/Makefile |  13 +++++++++----
 www/lua-web-sanitize/PLIST    |   3 ++-
 www/lua-web-sanitize/distinfo |   8 ++++----
 3 files changed, 15 insertions(+), 9 deletions(-)

diffs (65 lines):

diff -r 68b6de2ec0a5 -r cc4e94a14517 www/lua-web-sanitize/Makefile
--- a/www/lua-web-sanitize/Makefile     Wed Jul 13 03:57:54 2022 +0000
+++ b/www/lua-web-sanitize/Makefile     Wed Jul 13 08:44:24 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2021/12/09 15:16:11 nia Exp $
+# $NetBSD: Makefile,v 1.3 2022/07/13 08:44:24 nia Exp $
 
-DISTNAME=      web_sanitize-1.1.0
+DISTNAME=      web_sanitize-1.3.0
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/_/-/g}
 CATEGORIES=    www lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=leafo/}
@@ -15,6 +15,11 @@
 USE_LANGUAGES= # none
 NO_BUILD=      yes
 
+LUA_USE_BUSTED=        yes
+
+TEST_DEPENDS+=         ${LUA_PKGPREFIX}-moonscript-[0-9]*:../../lang/lua-moonscript
+TEST_DEPENDS+=         ${LUA_PKGPREFIX}-cjson-[0-9]*:../../textproc/lua-cjson
+
 INSTALLATION_DIRS+=    ${LUA_LDIR}
 INSTALLATION_DIRS+=    ${LUA_LDIR}/web_sanitize
 INSTALLATION_DIRS+=    ${LUA_LDIR}/web_sanitize/query
@@ -27,8 +32,8 @@
        ${INSTALL_DATA} ${WRKSRC}/web_sanitize/query/*.lua \
            ${DESTDIR}${PREFIX}/${LUA_LDIR}/web_sanitize/query
 
-do-test:
-       cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+pre-test:
+       ${PREFIX}/bin/moonc${_LUA_DOT_VERSION} ${WRKSRC}/spec/*.moon
 
 .include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 68b6de2ec0a5 -r cc4e94a14517 www/lua-web-sanitize/PLIST
--- a/www/lua-web-sanitize/PLIST        Wed Jul 13 03:57:54 2022 +0000
+++ b/www/lua-web-sanitize/PLIST        Wed Jul 13 08:44:24 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2021/12/09 15:16:11 nia Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/07/13 08:44:24 nia Exp $
 ${LUA_LDIR}/web_sanitize.lua
 ${LUA_LDIR}/web_sanitize/css.lua
 ${LUA_LDIR}/web_sanitize/css_types.lua
@@ -7,6 +7,7 @@
 ${LUA_LDIR}/web_sanitize/html.lua
 ${LUA_LDIR}/web_sanitize/html_named_entities.lua
 ${LUA_LDIR}/web_sanitize/init.lua
+${LUA_LDIR}/web_sanitize/patterns.lua
 ${LUA_LDIR}/web_sanitize/query.lua
 ${LUA_LDIR}/web_sanitize/query/parse_query.lua
 ${LUA_LDIR}/web_sanitize/query/scan_html.lua
diff -r 68b6de2ec0a5 -r cc4e94a14517 www/lua-web-sanitize/distinfo
--- a/www/lua-web-sanitize/distinfo     Wed Jul 13 03:57:54 2022 +0000
+++ b/www/lua-web-sanitize/distinfo     Wed Jul 13 08:44:24 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2021/12/09 15:16:11 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/07/13 08:44:24 nia Exp $
 
-BLAKE2s (web_sanitize-1.1.0.tar.gz) = 980719a2f743e7387945157a456096c0ae38019e226ac8600a0155e8036f2d24
-SHA512 (web_sanitize-1.1.0.tar.gz) = a9e70636068c807c72b2aadc07b9878202cfc988c40676af4a08565133cefd0f6fa416f2455fa6071969779e133c409499c85611854f3c1354ea820fbfc4dcd1
-Size (web_sanitize-1.1.0.tar.gz) = 44387 bytes
+BLAKE2s (web_sanitize-1.3.0.tar.gz) = 13a976c5121c181fbd00e41c75550d329e15e50b25a35168b6a3f472bcc426a1
+SHA512 (web_sanitize-1.3.0.tar.gz) = b842d4f2cc07bd3a4cda1c57ff8c8684c1318feb22673cfeaa5a0960e5801ec21f5b9a8c16832eeb8dad0954f9e87d241694789ccf431d69c0bb9fba01c81a64
+Size (web_sanitize-1.3.0.tar.gz) = 55057 bytes



Home | Main Index | Thread Index | Old Index