Tue Oct 23 11:45:34 2018 UTC ()
Update hunspell to 1.6.2.

1.6.2

Library changes: no. Same as 1.6.1.
Command line tool:
-   Added German translation
-   Fixed bug with wrong output encoding, not respecting system locale.

1.6.1

Library changes:
-   Performance improvements in suggest()
-   Fixes regressions for Hungarian related to compounding.
-   Fixes regressions for Korean related to ICONV.
Command line tool:
-   Added Tajik translation
-   Fix regarding serching of OOo dicts installed in user folder
Manpages:
-   Fix microsoft-cp1251 to cp1251. Dicts should not use the first.
-   Typos.

1.6.0

Changes in the library:
-   Performance improvement in ngsuggest(), suggestions should be faster.
-   Revert MAXWORDLEN to 100 as in 1.3.3 for performance reasons.
-   MAXWORDLEN can be set during build time with -D defines.
-   Fix crash when word with 102 consecutive X is spelled.
Changes in the command line tool:
-   -D shows all loaded dictionares insted of only the first.
-   -D properly lists all available dictionaries on Windows.

1.5.4

Fixes bug related to the Hungarian dictionary and the command COMPOUNDSYLLABLE

1.5.3

Remove a unneded #include header in the public hunspell.hxx

1.5.2

Fixes backward compatibility with 1.4 at API level. Now it should be complete.

1.5.1

-   Lot of stability fixes
-   Fixed compilation errors on various systems (Windows, FreeBSD)
-   Small performance improvement compared to 1.4.0
-   Added new API with C++ types (string, vector), yet full API backward compatibility with 1.4 is kept

1.4.1

Past begin() iterator decrement error

VS Debug build threw error on decrement past begin.

1.4.0

New release that strips out fixed length buffers from large parts of the library
Note: dictmgr.hxx header is dropped


(bsiegert)
diff -r1.27 -r1.28 pkgsrc/textproc/hunspell/Makefile
diff -r1.7 -r1.8 pkgsrc/textproc/hunspell/PLIST
diff -r1.4 -r1.5 pkgsrc/textproc/hunspell/buildlink3.mk
diff -r1.10 -r1.11 pkgsrc/textproc/hunspell/distinfo
diff -r1.2 -r1.3 pkgsrc/textproc/hunspell/patches/patch-aa
diff -r1.1 -r1.2 pkgsrc/textproc/hunspell/patches/patch-ab
diff -r1.1 -r1.2 pkgsrc/textproc/hunspell/patches/patch-ac
diff -r0 -r1.1 pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am
diff -r1.1 -r0 pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.in
diff -r1.1 -r0 pkgsrc/textproc/hunspell/patches/patch-src_tools_hunspell.cxx

cvs diff -r1.27 -r1.28 pkgsrc/textproc/hunspell/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/hunspell/Makefile 2018/10/19 17:57:42 1.27
+++ pkgsrc/textproc/hunspell/Makefile 2018/10/23 11:45:34 1.28
@@ -1,41 +1,46 @@ @@ -1,41 +1,46 @@
1# $NetBSD: Makefile,v 1.27 2018/10/19 17:57:42 bsiegert Exp $ 1# $NetBSD: Makefile,v 1.28 2018/10/23 11:45:34 bsiegert Exp $
2 2
3DISTNAME= hunspell-1.3.3 3DISTNAME= hunspell-1.6.2
4PKGREVISION= 8 
5CATEGORIES= textproc 4CATEGORIES= textproc
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hunspell/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=hunspell/}
 6GITHUB_PROJECT= hunspell
 7GITHUB_TAG= v1.6.2
7 8
8MAINTAINER= ahoka@NetBSD.org 9MAINTAINER= ahoka@NetBSD.org
9HOMEPAGE= http://hunspell.sourceforge.net/ 10HOMEPAGE= https://hunspell.github.io/
10COMMENT= Improved spellchecker 11COMMENT= Improved spellchecker
11LICENSE= mpl-1.1 OR gnu-lgpl-v2.1 OR gnu-gpl-v2 12LICENSE= mpl-1.1 OR gnu-lgpl-v2.1 OR gnu-gpl-v2
12 13
13WRKSRC= ${WRKDIR}/${DISTNAME:C/-[0-9]+$//} 14#WRKSRC= ${WRKDIR}/${DISTNAME:C/-[0-9]+$//}
14GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
15USE_LIBTOOL= yes 16USE_LIBTOOL= yes
16USE_TOOLS+= pkg-config perl:run 17USE_TOOLS+= pkg-config perl:run autoreconf autoconf automake
17USE_PKGLOCALEDIR= yes 18USE_PKGLOCALEDIR= yes
18USE_LANGUAGES= c c++03 19USE_LANGUAGES= c c++03
19 20
20CONFIGURE_ARGS+= --with-ui 21CONFIGURE_ARGS+= --with-ui
21 22
22PKGCONFIG_OVERRIDE+= hunspell.pc.in 23PKGCONFIG_OVERRIDE+= hunspell.pc.in
23 24
24SUBST_CLASSES+= paths 25SUBST_CLASSES+= paths
25SUBST_MESSAGE.paths= Fixing default path to dictionaries. 26SUBST_MESSAGE.paths= Fixing default path to dictionaries.
26SUBST_STAGE.paths= pre-configure 27SUBST_STAGE.paths= pre-configure
27SUBST_FILES.paths= man/hunspell.1 man/hu/hunspell.1 src/tools/hunspell.cxx 28SUBST_FILES.paths= man/hunspell.1 man/hu/hunspell.1 src/tools/hunspell.cxx
28SUBST_SED.paths+= -e 's,/usr/share/hunspell,${PREFIX}/share/hunspell,g' 29SUBST_SED.paths+= -e 's,/usr/share/hunspell,${PREFIX}/share/hunspell,g'
29# Trailing slash important to not change hunspell.cxx 30# Trailing slash important to not change hunspell.cxx
30SUBST_SED.paths+= -e 's,/usr/share/myspell/,${PREFIX}/share/hunspell/,g' 31SUBST_SED.paths+= -e 's,/usr/share/myspell/,${PREFIX}/share/hunspell/,g'
31 32
32PLIST_SRC= PLIST 33PLIST_SRC= PLIST
33PLIST_SUBST+= DISTNAME=${DISTNAME} 34PLIST_SUBST+= DISTNAME=${DISTNAME}
34 35
35REPLACE_PERL= src/tools/ispellaff2myspell 36REPLACE_PERL= src/tools/ispellaff2myspell
36 37
 38post-patch:
 39 cd ${WRKSRC} && ${TOOLS_PATH.autoreconf} -v -i
 40
 41
37.include "options.mk" 42.include "options.mk"
38 43
39.include "../../converters/libiconv/buildlink3.mk" 44.include "../../converters/libiconv/buildlink3.mk"
40.include "../../devel/gettext-lib/buildlink3.mk" 45.include "../../devel/gettext-lib/buildlink3.mk"
41.include "../../mk/bsd.pkg.mk" 46.include "../../mk/bsd.pkg.mk"

cvs diff -r1.7 -r1.8 pkgsrc/textproc/hunspell/PLIST (expand / switch to unified diff)

--- pkgsrc/textproc/hunspell/PLIST 2018/10/19 17:57:42 1.7
+++ pkgsrc/textproc/hunspell/PLIST 2018/10/23 11:45:34 1.8
@@ -1,41 +1,28 @@ @@ -1,41 +1,28 @@
1@comment $NetBSD: PLIST,v 1.7 2018/10/19 17:57:42 bsiegert Exp $ 1@comment $NetBSD: PLIST,v 1.8 2018/10/23 11:45:34 bsiegert Exp $
2bin/affixcompress 2bin/affixcompress
3bin/chmorph 3bin/chmorph
4bin/hunspell 4bin/hunspell
5bin/hunspell-analyze 5bin/hunspell-analyze
6bin/hunspell-munch 6bin/hunspell-munch
7bin/hunspell-unmunch 7bin/hunspell-unmunch
8bin/hunzip 8bin/hunzip
9bin/hzip 9bin/hzip
10bin/ispellaff2myspell 10bin/ispellaff2myspell
11bin/makealias 11bin/makealias
12bin/wordforms 12bin/wordforms
13bin/wordlist2hunspell 13bin/wordlist2hunspell
14include/hunspell/affentry.hxx 
15include/hunspell/affixmgr.hxx 
16include/hunspell/atypes.hxx 14include/hunspell/atypes.hxx
17include/hunspell/baseaffix.hxx 
18include/hunspell/csutil.hxx 15include/hunspell/csutil.hxx
19include/hunspell/dictmgr.hxx 
20include/hunspell/filemgr.hxx 
21include/hunspell/hashmgr.hxx 
22include/hunspell/htypes.hxx 16include/hunspell/htypes.hxx
23include/hunspell/hunspell.h 17include/hunspell/hunspell.h
24include/hunspell/hunspell.hxx 18include/hunspell/hunspell.hxx
25include/hunspell/hunvisapi.h 19include/hunspell/hunvisapi.h
26include/hunspell/hunzip.hxx 
27include/hunspell/langnum.hxx 
28include/hunspell/phonet.hxx 
29include/hunspell/replist.hxx 
30include/hunspell/suggestmgr.hxx 
31include/hunspell/w_char.hxx 20include/hunspell/w_char.hxx
32lib/libhunspell-1.3.la 21lib/libhunspell-1.6.la
33lib/pkgconfig/hunspell.pc 22lib/pkgconfig/hunspell.pc
34man/hu/man1/hunspell.1 23man/hu/man1/hunspell.1
35man/man1/hunspell.1 24man/man1/hunspell.1
36man/man1/hunzip.1 25man/man1/hunzip.1
37man/man1/hzip.1 26man/man1/hzip.1
38man/man3/hunspell.3 27man/man3/hunspell.3
39man/man5/hunspell.5 28man/man5/hunspell.5
40share/locale/hu/LC_MESSAGES/hunspell.mo 
41share/locale/it/LC_MESSAGES/hunspell.mo 

cvs diff -r1.4 -r1.5 pkgsrc/textproc/hunspell/buildlink3.mk (expand / switch to unified diff)

--- pkgsrc/textproc/hunspell/buildlink3.mk 2012/02/13 14:46:11 1.4
+++ pkgsrc/textproc/hunspell/buildlink3.mk 2018/10/23 11:45:34 1.5
@@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
1# $NetBSD: buildlink3.mk,v 1.4 2012/02/13 14:46:11 wiz Exp $ 1# $NetBSD: buildlink3.mk,v 1.5 2018/10/23 11:45:34 bsiegert Exp $
2 2
3BUILDLINK_TREE+= hunspell 3BUILDLINK_TREE+= hunspell
4 4
5.if !defined(HUNSPELL_BUILDLINK3_MK) 5.if !defined(HUNSPELL_BUILDLINK3_MK)
6HUNSPELL_BUILDLINK3_MK:= 6HUNSPELL_BUILDLINK3_MK:=
7 7
8BUILDLINK_API_DEPENDS.hunspell+= hunspell>=1.2.2 8BUILDLINK_API_DEPENDS.hunspell+= hunspell>=1.2.2
9BUILDLINK_ABI_DEPENDS.hunspell+= hunspell>=1.3.2 9BUILDLINK_ABI_DEPENDS.hunspell+= hunspell>=1.6.2
10BUILDLINK_PKGSRCDIR.hunspell?= ../../textproc/hunspell 10BUILDLINK_PKGSRCDIR.hunspell?= ../../textproc/hunspell
11.endif # HUNSPELL_BUILDLINK3_MK 11.endif # HUNSPELL_BUILDLINK3_MK
12 12
13BUILDLINK_TREE+= -hunspell 13BUILDLINK_TREE+= -hunspell

cvs diff -r1.10 -r1.11 pkgsrc/textproc/hunspell/distinfo (expand / switch to unified diff)

--- pkgsrc/textproc/hunspell/distinfo 2018/10/19 17:57:42 1.10
+++ pkgsrc/textproc/hunspell/distinfo 2018/10/23 11:45:34 1.11
@@ -1,11 +1,10 @@ @@ -1,11 +1,10 @@
1$NetBSD: distinfo,v 1.10 2018/10/19 17:57:42 bsiegert Exp $ 1$NetBSD: distinfo,v 1.11 2018/10/23 11:45:34 bsiegert Exp $
2 2
3SHA1 (hunspell-1.3.3.tar.gz) = 219b20f305d6690f666ff3864a16e4674908a553 3SHA1 (hunspell-1.6.2.tar.gz) = 6572d1459deafd358b886d4482c179b715bc92e8
4RMD160 (hunspell-1.3.3.tar.gz) = 6e45fdf0c602f0694f414b0cb33de34a5bf95683 4RMD160 (hunspell-1.6.2.tar.gz) = f966f805bfbd4b69bb10e573cc271314a0411ef6
5SHA512 (hunspell-1.3.3.tar.gz) = 7599981d002a4a032c41c83f6287243a4942b0e25c408049a3ba86c16f63ce964800a3ac325ace0402b0d7256690c4a4151a66f19a8f58cc455af0498bb1af04 5SHA512 (hunspell-1.6.2.tar.gz) = a23127f1271da95ac06a1fb2f57b659485e959567b61da05b2bb350684003a0fb7e882b5e524c465fd890f79f513ed03174f38611989a1c09081147c47d6da11
6Size (hunspell-1.3.3.tar.gz) = 986081 bytes 6Size (hunspell-1.6.2.tar.gz) = 721165 bytes
7SHA1 (patch-aa) = b03a51d88bd57786f4a0ac01a3b760b4d8ba385a 7SHA1 (patch-aa) = 8c6102ddb2e449b6f1abc23f679e0f6f38bfd0b5
8SHA1 (patch-ab) = 01ff90fc2ebf1049d791a0669ddcc3f5495729c0 8SHA1 (patch-ab) = ee127b1d8f55ceefa807c2fa440885b4fa5d029c
9SHA1 (patch-ac) = 27cad6078b55bce7144f462ddebac9887392c93b 9SHA1 (patch-ac) = c25cdfe80452cb4ca9850354c9fa8581c787c086
10SHA1 (patch-src_tools_Makefile.in) = f365394c00a52ade0267f7f6469e34dbcb5a2c2a 10SHA1 (patch-src_tools_Makefile.am) = 5a5bdd02f8acc64f0bd55c4d3ec11c2481bef851
11SHA1 (patch-src_tools_hunspell.cxx) = c5fd2ec5c56ee62c1547fbbd69aee760c6002960 

cvs diff -r1.2 -r1.3 pkgsrc/textproc/hunspell/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/textproc/hunspell/patches/patch-aa 2012/02/13 14:42:59 1.2
+++ pkgsrc/textproc/hunspell/patches/patch-aa 2018/10/23 11:45:34 1.3
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1$NetBSD: patch-aa,v 1.2 2012/02/13 14:42:59 wiz Exp $ 1$NetBSD: patch-aa,v 1.3 2018/10/23 11:45:34 bsiegert Exp $
2 2
3--- src/hunspell/hunzip.hxx.orig 2010-04-15 11:22:09.000000000 +0000 3--- src/hunspell/hunzip.hxx.orig 2017-09-03 11:38:44.000000000 +0000
4+++ src/hunspell/hunzip.hxx 4+++ src/hunspell/hunzip.hxx
5@@ -4,6 +4,10 @@ 5@@ -41,6 +41,10 @@
6 #ifndef _HUNZIP_HXX_ 6 #ifndef HUNZIP_HXX_
7 #define _HUNZIP_HXX_ 7 #define HUNZIP_HXX_
8  8
9+#ifdef __SUNPRO_CC 9+#ifdef __SUNPRO_CC
10+#include <iostream> 10+#include <iostream>
11+#endif 11+#endif
12+ 12+
13 #include "hunvisapi.h" 13 #include "hunvisapi.h"
14  14
15 #include <stdio.h> 15 #include <stdio.h>

cvs diff -r1.1 -r1.2 pkgsrc/textproc/hunspell/patches/patch-ab (expand / switch to unified diff)

--- pkgsrc/textproc/hunspell/patches/patch-ab 2009/01/26 20:09:48 1.1
+++ pkgsrc/textproc/hunspell/patches/patch-ab 2018/10/23 11:45:34 1.2
@@ -1,20 +1,20 @@ @@ -1,20 +1,20 @@
1$NetBSD: patch-ab,v 1.1 2009/01/26 20:09:48 sketch Exp $ 1$NetBSD: patch-ab,v 1.2 2018/10/23 11:45:34 bsiegert Exp $
2 2
3--- src/hunspell/phonet.cxx.orig Mon Jan 26 19:59:48 2009 3--- src/hunspell/phonet.cxx.orig 2017-09-03 11:38:44.000000000 +0000
4+++ src/hunspell/phonet.cxx Mon Jan 26 20:05:39 2009 4+++ src/hunspell/phonet.cxx
5@@ -42,6 +42,15 @@ 5@@ -35,6 +35,15 @@
6 #include "csutil.hxx" 6 #include "csutil.hxx"
7 #include "phonet.hxx" 7 #include "phonet.hxx"
8  8
9+#ifdef __SUNPRO_CC 9+#ifdef __SUNPRO_CC
10+using std::isalpha; 10+using std::isalpha;
11+using std::isdigit; 11+using std::isdigit;
12+using std::strchr; 12+using std::strchr;
13+using std::strcpy; 13+using std::strcpy;
14+using std::strlen; 14+using std::strlen;
15+using std::strstr; 15+using std::strstr;
16+#endif 16+#endif
17+ 17+
18 void init_phonet_hash(phonetable & parms)  18 void init_phonet_hash(phonetable& parms) {
19 { 19 for (int i = 0; i < HASHSIZE; i++) {
20 int i, k; 20 parms.hash[i] = -1;

cvs diff -r1.1 -r1.2 pkgsrc/textproc/hunspell/patches/patch-ac (expand / switch to unified diff)

--- pkgsrc/textproc/hunspell/patches/patch-ac 2009/09/22 09:16:51 1.1
+++ pkgsrc/textproc/hunspell/patches/patch-ac 2018/10/23 11:45:34 1.2
@@ -1,20 +1,20 @@ @@ -1,20 +1,20 @@
1$NetBSD: patch-ac,v 1.1 2009/09/22 09:16:51 sketch Exp $ 1$NetBSD: patch-ac,v 1.2 2018/10/23 11:45:34 bsiegert Exp $
2 2
3--- src/hunspell/replist.cxx.orig Sat Nov 1 14:09:51 2008 3--- src/hunspell/replist.cxx.orig 2017-09-03 11:38:44.000000000 +0000
4+++ src/hunspell/replist.cxx Tue Sep 22 10:12:37 2009 4+++ src/hunspell/replist.cxx
5@@ -14,6 +14,15 @@ 5@@ -76,6 +76,15 @@
6 #include "replist.hxx" 6 #include "replist.hxx"
7 #include "csutil.hxx" 7 #include "csutil.hxx"
8  8
9+#ifdef __SUNPRO_CC 9+#ifdef __SUNPRO_CC
10+using std::free; 10+using std::free;
11+using std::malloc; 11+using std::malloc;
12+using std::strcmp; 12+using std::strcmp;
13+using std::strcpy; 13+using std::strcpy;
14+using std::strlen; 14+using std::strlen;
15+using std::strncmp; 15+using std::strncmp;
16+#endif 16+#endif
17+ 17+
18 RepList::RepList(int n) { 18 RepList::RepList(int n) {
19 dat = (replentry **) malloc(sizeof(replentry *) * n); 19 dat = (replentry**)malloc(sizeof(replentry*) * n);
20 if (dat == 0) size = 0; else size = n; 20 if (dat == 0)

File Added: pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am
$NetBSD: patch-src_tools_Makefile.am,v 1.1 2018/10/23 11:45:34 bsiegert Exp $

--- src/tools/Makefile.am.orig	2017-09-03 11:38:44.000000000 +0000
+++ src/tools/Makefile.am
@@ -1,4 +1,4 @@
-bin_PROGRAMS=analyze chmorph hunspell munch unmunch hzip hunzip
+bin_PROGRAMS=hunspell-analyze chmorph hunspell hunspell-munch hunspell-unmunch hzip hunzip
 
 AM_CPPFLAGS=-I${top_builddir}/src/hunspell -I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
 
@@ -6,8 +6,8 @@ hzip_SOURCES=hzip.cxx
 hunzip_SOURCES=hunzip.cxx
 hunzip_LDADD = ../hunspell/libhunspell-1.6.la
 
-munch_SOURCES=munch.cxx munch.h
-unmunch_SOURCES=unmunch.cxx unmunch.h
+hunspell_munch_SOURCES=munch.cxx munch.h
+hunspell_unmunch_SOURCES=unmunch.cxx unmunch.h
 
 example_SOURCES=example.cxx
 example_LDADD = ../hunspell/libhunspell-1.6.la
@@ -16,8 +16,8 @@ hunspell_SOURCES=hunspell.cxx
 hunspell_LDADD = @LIBINTL@ @LIBICONV@ ../parsers/libparsers.a \
 	../hunspell/libhunspell-1.6.la @CURSESLIB@ @READLINELIB@
 
-analyze_SOURCES=analyze.cxx
-analyze_LDADD = ../hunspell/libhunspell-1.6.la
+hunspell_analyze_SOURCES=analyze.cxx
+hunspell_analyze_LDADD = ../hunspell/libhunspell-1.6.la
 
 bulkcheck_SOURCES=bulkcheck.cxx
 bulkcheck_LDADD = ../hunspell/libhunspell-1.6.la

File Deleted: pkgsrc/textproc/hunspell/patches/Attic/patch-src_tools_Makefile.in

File Deleted: pkgsrc/textproc/hunspell/patches/Attic/patch-src_tools_hunspell.cxx