Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/swath doc: Updated textproc/swath to 0.6.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c825d20375ee
branches:  trunk
changeset: 436240:c825d20375ee
user:      scole <scole%pkgsrc.org@localhost>
date:      Thu Jul 30 02:13:56 2020 +0000

description:
doc: Updated textproc/swath to 0.6.1


0.6.1 (2018-08-20)
=====
- Updated word break dictionary.
- Fix a defect in RTF parsing, so RTF gets more complete word break positions.
- Compiler warning fixes.
- Minor code cleanups.
- Useful installation instructions in INSTALL file.
  (Thanks @pepa65 for the pull request.)

0.6.0 (2017-11-28)
=====
- Updated word break dictionary.
- Drop undocumented option '-l'.
- Revamped internal word break engine.
- Updated manpage.

0.5.5 (2016-12-25)
=====
- Updated word break dictionary.

0.5.4 (2016-07-08)
=====
- Updated word break dictionary.
- Fix segfault on extremely long input lines.
- Support longer input lines.
  (Bug report by Santi Romeyen)
- Support non-ASCII word break string.
  https://github.com/tlwg/swath/issues/1
- Some source code clean-ups.
- Add test suite.

0.5.3 (2014-09-01)
=====
- Updated word break dictionary.
- Fix premature output ending on long UTF-8 input line.
  (Bug report by Sorawee Porncharoenwase)
- Fix excessive break positions in plain text mode.
  (Bug report by Sorawee Porncharoenwase)
- Remove dead codes, resulting in a little smaller binary.

0.5.2 (2013-12-23)
=====
- Fix infinite loops in LaTeX filter.
  (Bug report and patch by Neutron Soutmun)
- Fix off-by-one character loss in long HTML tokens.
  (Bug report and analysis by Nicolas Brouard)

0.5.1 (2013-10-30)
=====
- Correct word break code for Lambda.
- Updated word break dictionary.
- Adjust file filters to prevent potential buffer overflow.

0.5.0 (2013-02-11)
=====
- Character encoding conversion is now spontaneous, no more buffering via
  temporary file.
- Rewritten RTF filter. It's now tested to work with real RTF document.
- Process characters as Unicode internally, so that characters not present
  in TIS-620 are not lost in output.
- Fix potential buffer overflow vulnerability in Mule mode.
- Updated word break dictionary.
- Significant source clean-ups.
- Switch to XZ tarball compression.

For pkgsrc, use gmake and add patch to compile wchar functions on NetBSD

diffstat:

 textproc/swath/Makefile                        |   7 +-
 textproc/swath/distinfo                        |  11 ++-
 textproc/swath/patches/patch-src_filterrtf.cpp |  68 ++++++++++++++++++++++++++
 3 files changed, 78 insertions(+), 8 deletions(-)

diffs (114 lines):

diff -r cb44a224951c -r c825d20375ee textproc/swath/Makefile
--- a/textproc/swath/Makefile   Thu Jul 30 01:58:03 2020 +0000
+++ b/textproc/swath/Makefile   Thu Jul 30 02:13:56 2020 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.6 2017/09/04 18:08:29 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2020/07/30 02:13:56 scole Exp $
 #
 
-DISTNAME=      swath-0.4.3
+DISTNAME=      swath-0.6.1
 CATEGORIES=    textproc
 MASTER_SITES=  ftp://linux.thai.net/pub/ThaiLinux/software/swath/
 MASTER_SITES+= http://linux.thai.net/pub/ThaiLinux/software/swath/
+EXTRACT_SUFX=  .tar.xz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://linux.thai.net/projects/thailatex
@@ -14,7 +15,7 @@
 GNU_CONFIGURE= yes
 USE_LIBTOOL=   yes
 USE_LANGUAGES= c c++
-USE_TOOLS+=    pkg-config
+USE_TOOLS+=    gmake pkg-config
 
 .include "../../devel/libdatrie/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r cb44a224951c -r c825d20375ee textproc/swath/distinfo
--- a/textproc/swath/distinfo   Thu Jul 30 01:58:03 2020 +0000
+++ b/textproc/swath/distinfo   Thu Jul 30 02:13:56 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 02:00:12 agc Exp $
+$NetBSD: distinfo,v 1.4 2020/07/30 02:13:56 scole Exp $
 
-SHA1 (swath-0.4.3.tar.gz) = 0c9f0e583ed0678b867c56f0b14cb2781cece012
-RMD160 (swath-0.4.3.tar.gz) = 0852978e2e854c161362483e6c3d2fc73e49eb10
-SHA512 (swath-0.4.3.tar.gz) = 2ad6e8e3fe8bce70b1ab15deee641107a191a4726b56182f73502f18ded7641278a3bf0cad00a617be1d764951512706626e43084ae575b6b07f62b0887ae756
-Size (swath-0.4.3.tar.gz) = 481773 bytes
+SHA1 (swath-0.6.1.tar.xz) = a2c8ce01401220e36c4a9280a1791045382b38c5
+RMD160 (swath-0.6.1.tar.xz) = 4aaca89c33a0b4c84878ada6f4909dfc706ed45f
+SHA512 (swath-0.6.1.tar.xz) = 26f97dffe95ebb2089df54660992a22b3dd36fb3710daae49eea0f6b4de4f3de29f5ebed889dab314aba6f36da34a694baa2909bd2581c9c9293120c91c5c62b
+Size (swath-0.6.1.tar.xz) = 613236 bytes
+SHA1 (patch-src_filterrtf.cpp) = 58bdce561267080937300bded096c6b935afb47e
diff -r cb44a224951c -r c825d20375ee textproc/swath/patches/patch-src_filterrtf.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/swath/patches/patch-src_filterrtf.cpp    Thu Jul 30 02:13:56 2020 +0000
@@ -0,0 +1,68 @@
+$NetBSD: patch-src_filterrtf.cpp,v 1.1 2020/07/30 02:13:56 scole Exp $
+
+Use wchar functions available on NetBSD
+
+--- src/filterrtf.cpp.orig     2018-08-14 05:33:16.000000000 +0000
++++ src/filterrtf.cpp
+@@ -3,6 +3,7 @@
+ //////////////////////////////////////////////////////////////////////
+ #include <string.h>
+ #include <ctype.h>
++#include <wchar.h>
+ #include <wctype.h>
+ #include "filterrtf.h"
+ #include "conv/utf8.h"
+@@ -109,7 +110,7 @@ FilterRTF::GetNextToken (wchar_t* token,
+     {
+       *thaiFlag = isThaiUni (strbuff[0]);
+       nCopy = min<int> (tokenSz - 1, wcslen (strbuff));
+-      token = wcpncpy (token, strbuff, nCopy);
++      token = wcsncpy (token, strbuff, nCopy);
+       *token = 0;
+       tokenSz -= nCopy;
+       wmemmove (strbuff, strbuff + nCopy, wcslen (strbuff + nCopy) + 1);
+@@ -155,7 +156,7 @@ FilterRTF::GetNextToken (wchar_t* token,
+                     int len = strlen (rtfToken.getVal());
+                     if (len + 2 <= tokenSz - 1)
+                       {
+-                        token = wcpcpy (token, L"\\u");
++                        token = wcscpy (token, L"\\u");
+                         token = Ascii2WcsCopy (token, rtfToken.getVal());
+                         tokenSz -= len + 2;
+                       }
+@@ -177,7 +178,7 @@ FilterRTF::GetNextToken (wchar_t* token,
+                       int len = strlen (rtfToken.getVal());
+                       if (len + 2 <= tokenSz - 1)
+                         {
+-                          token = wcpcpy (token, L"\\'");
++                          token = wcscpy (token, L"\\'");
+                           token = Ascii2WcsCopy (token, rtfToken.getVal());
+                           tokenSz -= len + 2;
+                         }
+@@ -251,7 +252,7 @@ thai_flag_determined:
+                 else
+                   {
+                     // non-Thai text is found -> prepare to stop
+-                    wchar_t* p = wcpcpy (strbuff, L"\\u");
++                    wchar_t* p = wcscpy (strbuff, L"\\u");
+                     Ascii2WcsCopy (p, rtfToken.getVal());
+                     isCopySkipBytes = true;
+                   }
+@@ -339,7 +340,7 @@ thai_flag_determined:
+                     int len = strlen (rtfToken.getVal());
+                     if (len + 2 <= tokenSz - 1)
+                       {
+-                        token = wcpcpy (token, L"\\u");
++                        token = wcscpy (token, L"\\u");
+                         token = Ascii2WcsCopy (token, rtfToken.getVal());
+                         tokenSz -= len + 2;
+                       }
+@@ -359,7 +360,7 @@ thai_flag_determined:
+                       int len = strlen (rtfToken.getVal());
+                       if (len + 2 <= tokenSz - 1)
+                         {
+-                          token = wcpcpy (token, L"\\'");
++                          token = wcscpy (token, L"\\'");
+                           token = Ascii2WcsCopy (token, rtfToken.getVal());
+                           tokenSz -= len + 2;
+                         }



Home | Main Index | Thread Index | Old Index