Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2024 09:26:14 GMT
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c3af229b02c5 - main - www/tdom: update to 0.9.5
Message-ID:  <202410220926.49M9QEOC083667@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by gahr:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c3af229b02c5854b8419d3149eae2d2f42c78f74

commit c3af229b02c5854b8419d3149eae2d2f42c78f74
Author:     Pietro Cerutti <gahr@FreeBSD.org>
AuthorDate: 2024-10-22 09:23:52 +0000
Commit:     Pietro Cerutti <gahr@FreeBSD.org>
CommitDate: 2024-10-22 09:26:12 +0000

    www/tdom: update to 0.9.5
    
    * Added the asTypedList method to the domDoc and domNode commands.
    * Added the createFromTypedList method to the dom command.
    * Updated to expat 2.6.3.
    * Added the flag -keepTextStart to the expat command.
    * Text node commands created by createNodeCmd of the json type NULL, TRUE or FALSE may be called without argument.
    * Changed the error messages of the dom, domDoc and domNode commands to mostly confirm to ususal Tcl behaviour.
    * Added the asTclValue method to the domDoc and domNode commands.
---
 www/tdom/Makefile                  | 11 +++++------
 www/tdom/distinfo                  |  6 +++---
 www/tdom/files/patch-Makefile.in   |  9 ---------
 www/tdom/files/patch-generic-dom.h |  7 +++----
 www/tdom/files/patch-warnings      | 27 ---------------------------
 www/tdom/pkg-plist                 |  8 ++++----
 6 files changed, 15 insertions(+), 53 deletions(-)

diff --git a/www/tdom/Makefile b/www/tdom/Makefile
index 40580b37ff36..2cdfc8a016dc 100644
--- a/www/tdom/Makefile
+++ b/www/tdom/Makefile
@@ -1,8 +1,8 @@
 PORTNAME=	tDOM
-DISTVERSION=	0.9.4
+DISTVERSION=	0.9.5
 CATEGORIES=	www
 MASTER_SITES=	http://tdom.org/downloads/
-DISTNAME=	${PORTNAME:tl}-${PORTVERSION}-src
+DISTNAME=	${PORTNAME:tl}-${DISTVERSION}-src
 
 MAINTAINER=	ports@virtual-estates.net
 COMMENT=	High performance processing of XML and HTML data with Tcl
@@ -17,10 +17,10 @@ CONFIGURE_ARGS=	--enable-threads --disable-tdomalloc
 EXTRACT_AFTER_ARGS=	--exclude 'expat*/*.c' --exclude 'expat*/[a-mo-z]*.h' \
 			--exclude 'domalloc*' --exclude win
 
-MAKE_ARGS+=	RANLIB_STUB=:
+MAKE_ARGS+=	TESTFLAGS=
 TEST_TARGET=	test
 
-PLIST_SUB=	PORTVERSION=${PORTVERSION}
+PLIST_SUB=	DISTVERSION=${DISTVERSION}
 
 DOCS=		CHANGES README.md
 
@@ -48,7 +48,6 @@ post-patch-EBASE-on:
 	    ${WRKSRC}/generic/tdom.h \
 	    ${WRKSRC}/generic/tclexpat.h
 	${REINPLACE_CMD} 's|-lexpat|-lbsdxml|' ${WRKSRC}/configure
-	${REINPLACE_CMD} '553s|$$|knownBug} {|' ${WRKSRC}/tests/dom.test
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
@@ -56,6 +55,6 @@ post-install-DOCS-on:
 	${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/html/
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/tdom0.9.4/libtdom0.9.4.so
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${TCL_PKG:tl}/lib${TCL_PKG_LIB_PREFIX}${TCL_PKG:tl}.so
 
 .include <bsd.port.mk>
diff --git a/www/tdom/distinfo b/www/tdom/distinfo
index 535a11f1862f..11e2cad75820 100644
--- a/www/tdom/distinfo
+++ b/www/tdom/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1723737191
-SHA256 (tdom-0.9.4-src.tar.gz) = f947d38cbb7978ec1510e3cf894a672a4ad18cb823b8c9bb3604934ebe4c4546
-SIZE (tdom-0.9.4-src.tar.gz) = 1447298
+TIMESTAMP = 1729089057
+SHA256 (tdom-0.9.5-src.tar.gz) = ce22e3f42da9f89718688bf413b82fbf079b40252ba4dd7f2a0e752232bb67e8
+SIZE (tdom-0.9.5-src.tar.gz) = 1512934
diff --git a/www/tdom/files/patch-Makefile.in b/www/tdom/files/patch-Makefile.in
deleted file mode 100644
index 6d360066ee0d..000000000000
--- a/www/tdom/files/patch-Makefile.in
+++ /dev/null
@@ -1,9 +0,0 @@
---- Makefile.in	2018-07-23 18:03:51.409385897 -0400
-+++ Makefile.in	2018-10-14 10:04:41.681243000 -0400
-@@ -114,5 +114,5 @@
- EXEEXT		= @EXEEXT@
- LDFLAGS_DEFAULT	= @LDFLAGS_DEFAULT@
--MAKE_LIB	= @MAKE_LIB@
-+MAKE_LIB	= @MAKE_LIB@ ${LDFLAGS_DEFAULT}
- MAKE_SHARED_LIB	= @MAKE_SHARED_LIB@
- MAKE_STATIC_LIB	= @MAKE_STATIC_LIB@
diff --git a/www/tdom/files/patch-generic-dom.h b/www/tdom/files/patch-generic-dom.h
index 4b5ca5a4a46b..8af052f0c01d 100644
--- a/www/tdom/files/patch-generic-dom.h
+++ b/www/tdom/files/patch-generic-dom.h
@@ -1,6 +1,6 @@
---- generic/dom.h	2018-09-24 12:17:05.706742000 +0000
-+++ generic/dom.h	2024-08-15 12:03:29.000000000 -0400
-@@ -41,8 +41,7 @@
+--- generic/dom.h.orig	2024-10-22 09:14:54 UTC
++++ generic/dom.h
+@@ -39,7 +39,6 @@ +-----------------------------------------------------
  #include <string.h>
  #include <ctype.h>
  #include <expat.h>
@@ -8,4 +8,3 @@
  #include <limits.h>
  
  /*
-  * tDOM provides it's own memory allocator which is optimized for
diff --git a/www/tdom/files/patch-warnings b/www/tdom/files/patch-warnings
deleted file mode 100644
index 3aa70de9d035..000000000000
--- a/www/tdom/files/patch-warnings
+++ /dev/null
@@ -1,27 +0,0 @@
-Remove the set-but-unused variable (nHash). Pointed out by
-clang...
-
-	-mi
-
---- generic/domxslt.c	2024-07-25 20:20:32.000000000 -0400
-+++ generic/domxslt.c	2024-08-15 12:08:27.351920000 -0400
-@@ -1152,5 +1152,5 @@
-     char wrongFormat[] = "Unable to interpret format pattern.";
-     domLength l, zl, gLen;
--    int i, j, k, g, nHash, nZero, fHash, fZero, isNeg;
-+    int i, j, k, g, nZero, fHash, fZero, isNeg;
-     int prefixMinux, percentMul = 0, perMilleMul = 0;
-     Tcl_DString  dStr, s;
-@@ -1219,5 +1219,5 @@
-     }
-     prefix1[i] = '\0';
--    nHash = nZero = fHash = fZero = 0;
-+    nZero = fHash = fZero = 0;
-     gLen = -2222;
-     while (*p) {
-@@ -1227,5 +1227,4 @@
-                 goto xsltFormatNumberError;
-             }
--            nHash++; 
-         }
-         else if (*p==df->zeroDigit) { nZero++; }
diff --git a/www/tdom/pkg-plist b/www/tdom/pkg-plist
index 4c332c81d4c1..be41a865f330 100644
--- a/www/tdom/pkg-plist
+++ b/www/tdom/pkg-plist
@@ -1,8 +1,8 @@
 include/tdom.h
-lib/tdom%%PORTVERSION%%/libtdom%%PORTVERSION%%.so
-lib/tdom%%PORTVERSION%%/libtdomstub%%PORTVERSION%%.a
-lib/tdom%%PORTVERSION%%/pkgIndex.tcl
-lib/tdom%%PORTVERSION%%/tdom.tcl
+lib/tdom%%DISTVERSION%%/lib%%TCL_PKG_LIB_PREFIX%%tdom%%DISTVERSION%%.so
+lib/tdom%%DISTVERSION%%/libtdomstub%%TCL_PKG_STUB_POSTFIX%%.a
+lib/tdom%%DISTVERSION%%/pkgIndex.tcl
+lib/tdom%%DISTVERSION%%/tdom.tcl
 lib/tdomConfig.sh
 share/man/mann/dom.n.gz
 share/man/mann/domDoc.n.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410220926.49M9QEOC083667>