pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/hunspell Update hunspell to 1.6.2.
details: https://anonhg.NetBSD.org/pkgsrc/rev/10d2355c9e9d
branches: trunk
changeset: 324571:10d2355c9e9d
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Tue Oct 23 11:45:34 2018 +0000
description:
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
diffstat:
textproc/hunspell/Makefile | 19 +++++---
textproc/hunspell/PLIST | 17 +------
textproc/hunspell/buildlink3.mk | 4 +-
textproc/hunspell/distinfo | 19 +++----
textproc/hunspell/patches/patch-aa | 10 ++--
textproc/hunspell/patches/patch-ab | 14 +++---
textproc/hunspell/patches/patch-ac | 12 ++--
textproc/hunspell/patches/patch-src_tools_Makefile.am | 32 +++++++++++++
textproc/hunspell/patches/patch-src_tools_Makefile.in | 42 ------------------
textproc/hunspell/patches/patch-src_tools_hunspell.cxx | 15 ------
10 files changed, 75 insertions(+), 109 deletions(-)
diffs (296 lines):
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/Makefile
--- a/textproc/hunspell/Makefile Tue Oct 23 10:45:01 2018 +0000
+++ b/textproc/hunspell/Makefile Tue Oct 23 11:45:34 2018 +0000
@@ -1,19 +1,20 @@
-# $NetBSD: Makefile,v 1.27 2018/10/19 17:57:42 bsiegert Exp $
+# $NetBSD: Makefile,v 1.28 2018/10/23 11:45:34 bsiegert Exp $
-DISTNAME= hunspell-1.3.3
-PKGREVISION= 8
+DISTNAME= hunspell-1.6.2
CATEGORIES= textproc
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=hunspell/}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hunspell/}
+GITHUB_PROJECT= hunspell
+GITHUB_TAG= v1.6.2
MAINTAINER= ahoka%NetBSD.org@localhost
-HOMEPAGE= http://hunspell.sourceforge.net/
+HOMEPAGE= https://hunspell.github.io/
COMMENT= Improved spellchecker
LICENSE= mpl-1.1 OR gnu-lgpl-v2.1 OR gnu-gpl-v2
-WRKSRC= ${WRKDIR}/${DISTNAME:C/-[0-9]+$//}
+#WRKSRC= ${WRKDIR}/${DISTNAME:C/-[0-9]+$//}
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
-USE_TOOLS+= pkg-config perl:run
+USE_TOOLS+= pkg-config perl:run autoreconf autoconf automake
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c c++03
@@ -34,6 +35,10 @@
REPLACE_PERL= src/tools/ispellaff2myspell
+post-patch:
+ cd ${WRKSRC} && ${TOOLS_PATH.autoreconf} -v -i
+
+
.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/PLIST
--- a/textproc/hunspell/PLIST Tue Oct 23 10:45:01 2018 +0000
+++ b/textproc/hunspell/PLIST Tue Oct 23 11:45:34 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2018/10/19 17:57:42 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.8 2018/10/23 11:45:34 bsiegert Exp $
bin/affixcompress
bin/chmorph
bin/hunspell
@@ -11,25 +11,14 @@
bin/makealias
bin/wordforms
bin/wordlist2hunspell
-include/hunspell/affentry.hxx
-include/hunspell/affixmgr.hxx
include/hunspell/atypes.hxx
-include/hunspell/baseaffix.hxx
include/hunspell/csutil.hxx
-include/hunspell/dictmgr.hxx
-include/hunspell/filemgr.hxx
-include/hunspell/hashmgr.hxx
include/hunspell/htypes.hxx
include/hunspell/hunspell.h
include/hunspell/hunspell.hxx
include/hunspell/hunvisapi.h
-include/hunspell/hunzip.hxx
-include/hunspell/langnum.hxx
-include/hunspell/phonet.hxx
-include/hunspell/replist.hxx
-include/hunspell/suggestmgr.hxx
include/hunspell/w_char.hxx
-lib/libhunspell-1.3.la
+lib/libhunspell-1.6.la
lib/pkgconfig/hunspell.pc
man/hu/man1/hunspell.1
man/man1/hunspell.1
@@ -37,5 +26,3 @@
man/man1/hzip.1
man/man3/hunspell.3
man/man5/hunspell.5
-share/locale/hu/LC_MESSAGES/hunspell.mo
-share/locale/it/LC_MESSAGES/hunspell.mo
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/buildlink3.mk
--- a/textproc/hunspell/buildlink3.mk Tue Oct 23 10:45:01 2018 +0000
+++ b/textproc/hunspell/buildlink3.mk Tue Oct 23 11:45:34 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2012/02/13 14:46:11 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2018/10/23 11:45:34 bsiegert Exp $
BUILDLINK_TREE+= hunspell
@@ -6,7 +6,7 @@
HUNSPELL_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.hunspell+= hunspell>=1.2.2
-BUILDLINK_ABI_DEPENDS.hunspell+= hunspell>=1.3.2
+BUILDLINK_ABI_DEPENDS.hunspell+= hunspell>=1.6.2
BUILDLINK_PKGSRCDIR.hunspell?= ../../textproc/hunspell
.endif # HUNSPELL_BUILDLINK3_MK
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/distinfo
--- a/textproc/hunspell/distinfo Tue Oct 23 10:45:01 2018 +0000
+++ b/textproc/hunspell/distinfo Tue Oct 23 11:45:34 2018 +0000
@@ -1,11 +1,10 @@
-$NetBSD: distinfo,v 1.10 2018/10/19 17:57:42 bsiegert Exp $
+$NetBSD: distinfo,v 1.11 2018/10/23 11:45:34 bsiegert Exp $
-SHA1 (hunspell-1.3.3.tar.gz) = 219b20f305d6690f666ff3864a16e4674908a553
-RMD160 (hunspell-1.3.3.tar.gz) = 6e45fdf0c602f0694f414b0cb33de34a5bf95683
-SHA512 (hunspell-1.3.3.tar.gz) = 7599981d002a4a032c41c83f6287243a4942b0e25c408049a3ba86c16f63ce964800a3ac325ace0402b0d7256690c4a4151a66f19a8f58cc455af0498bb1af04
-Size (hunspell-1.3.3.tar.gz) = 986081 bytes
-SHA1 (patch-aa) = b03a51d88bd57786f4a0ac01a3b760b4d8ba385a
-SHA1 (patch-ab) = 01ff90fc2ebf1049d791a0669ddcc3f5495729c0
-SHA1 (patch-ac) = 27cad6078b55bce7144f462ddebac9887392c93b
-SHA1 (patch-src_tools_Makefile.in) = f365394c00a52ade0267f7f6469e34dbcb5a2c2a
-SHA1 (patch-src_tools_hunspell.cxx) = c5fd2ec5c56ee62c1547fbbd69aee760c6002960
+SHA1 (hunspell-1.6.2.tar.gz) = 6572d1459deafd358b886d4482c179b715bc92e8
+RMD160 (hunspell-1.6.2.tar.gz) = f966f805bfbd4b69bb10e573cc271314a0411ef6
+SHA512 (hunspell-1.6.2.tar.gz) = a23127f1271da95ac06a1fb2f57b659485e959567b61da05b2bb350684003a0fb7e882b5e524c465fd890f79f513ed03174f38611989a1c09081147c47d6da11
+Size (hunspell-1.6.2.tar.gz) = 721165 bytes
+SHA1 (patch-aa) = 8c6102ddb2e449b6f1abc23f679e0f6f38bfd0b5
+SHA1 (patch-ab) = ee127b1d8f55ceefa807c2fa440885b4fa5d029c
+SHA1 (patch-ac) = c25cdfe80452cb4ca9850354c9fa8581c787c086
+SHA1 (patch-src_tools_Makefile.am) = 5a5bdd02f8acc64f0bd55c4d3ec11c2481bef851
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/patches/patch-aa
--- a/textproc/hunspell/patches/patch-aa Tue Oct 23 10:45:01 2018 +0000
+++ b/textproc/hunspell/patches/patch-aa Tue Oct 23 11:45:34 2018 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-aa,v 1.2 2012/02/13 14:42:59 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2018/10/23 11:45:34 bsiegert Exp $
---- src/hunspell/hunzip.hxx.orig 2010-04-15 11:22:09.000000000 +0000
+--- src/hunspell/hunzip.hxx.orig 2017-09-03 11:38:44.000000000 +0000
+++ src/hunspell/hunzip.hxx
-@@ -4,6 +4,10 @@
- #ifndef _HUNZIP_HXX_
- #define _HUNZIP_HXX_
+@@ -41,6 +41,10 @@
+ #ifndef HUNZIP_HXX_
+ #define HUNZIP_HXX_
+#ifdef __SUNPRO_CC
+#include <iostream>
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/patches/patch-ab
--- a/textproc/hunspell/patches/patch-ab Tue Oct 23 10:45:01 2018 +0000
+++ b/textproc/hunspell/patches/patch-ab Tue Oct 23 11:45:34 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1 2009/01/26 20:09:48 sketch Exp $
+$NetBSD: patch-ab,v 1.2 2018/10/23 11:45:34 bsiegert Exp $
---- src/hunspell/phonet.cxx.orig Mon Jan 26 19:59:48 2009
-+++ src/hunspell/phonet.cxx Mon Jan 26 20:05:39 2009
-@@ -42,6 +42,15 @@
+--- src/hunspell/phonet.cxx.orig 2017-09-03 11:38:44.000000000 +0000
++++ src/hunspell/phonet.cxx
+@@ -35,6 +35,15 @@
#include "csutil.hxx"
#include "phonet.hxx"
@@ -15,6 +15,6 @@
+using std::strstr;
+#endif
+
- void init_phonet_hash(phonetable & parms)
- {
- int i, k;
+ void init_phonet_hash(phonetable& parms) {
+ for (int i = 0; i < HASHSIZE; i++) {
+ parms.hash[i] = -1;
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/patches/patch-ac
--- a/textproc/hunspell/patches/patch-ac Tue Oct 23 10:45:01 2018 +0000
+++ b/textproc/hunspell/patches/patch-ac Tue Oct 23 11:45:34 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1 2009/09/22 09:16:51 sketch Exp $
+$NetBSD: patch-ac,v 1.2 2018/10/23 11:45:34 bsiegert Exp $
---- src/hunspell/replist.cxx.orig Sat Nov 1 14:09:51 2008
-+++ src/hunspell/replist.cxx Tue Sep 22 10:12:37 2009
-@@ -14,6 +14,15 @@
+--- src/hunspell/replist.cxx.orig 2017-09-03 11:38:44.000000000 +0000
++++ src/hunspell/replist.cxx
+@@ -76,6 +76,15 @@
#include "replist.hxx"
#include "csutil.hxx"
@@ -16,5 +16,5 @@
+#endif
+
RepList::RepList(int n) {
- dat = (replentry **) malloc(sizeof(replentry *) * n);
- if (dat == 0) size = 0; else size = n;
+ dat = (replentry**)malloc(sizeof(replentry*) * n);
+ if (dat == 0)
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/patches/patch-src_tools_Makefile.am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/hunspell/patches/patch-src_tools_Makefile.am Tue Oct 23 11:45:34 2018 +0000
@@ -0,0 +1,32 @@
+$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
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/patches/patch-src_tools_Makefile.in
--- a/textproc/hunspell/patches/patch-src_tools_Makefile.in Tue Oct 23 10:45:01 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-$NetBSD: patch-src_tools_Makefile.in,v 1.1 2018/10/19 17:57:42 bsiegert Exp $
-
---- src/tools/Makefile.in.orig 2014-04-25 21:02:00.000000000 +0000
-+++ src/tools/Makefile.in
-@@ -36,8 +36,8 @@ POST_UNINSTALL = :
- build_triplet = @build@
- host_triplet = @host@
- target_triplet = @target@
--bin_PROGRAMS = analyze$(EXEEXT) chmorph$(EXEEXT) hunspell$(EXEEXT) \
-- munch$(EXEEXT) unmunch$(EXEEXT) hzip$(EXEEXT) hunzip$(EXEEXT)
-+bin_PROGRAMS = hunspell-analyze$(EXEEXT) chmorph$(EXEEXT) hunspell$(EXEEXT) \
-+ hunspell-munch$(EXEEXT) hunspell-unmunch$(EXEEXT) hzip$(EXEEXT) hunzip$(EXEEXT)
- noinst_PROGRAMS = example$(EXEEXT)
- subdir = src/tools
- DIST_COMMON = $(dist_bin_SCRIPTS) $(srcdir)/Makefile.am \
-@@ -432,8 +432,8 @@ clean-noinstPROGRAMS:
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
--analyze$(EXEEXT): $(analyze_OBJECTS) $(analyze_DEPENDENCIES) $(EXTRA_analyze_DEPENDENCIES)
-- @rm -f analyze$(EXEEXT)
-+hunspell-analyze$(EXEEXT): $(analyze_OBJECTS) $(analyze_DEPENDENCIES) $(EXTRA_analyze_DEPENDENCIES)
-+ @rm -f hunspell-analyze$(EXEEXT)
- $(CXXLINK) $(analyze_OBJECTS) $(analyze_LDADD) $(LIBS)
- chmorph$(EXEEXT): $(chmorph_OBJECTS) $(chmorph_DEPENDENCIES) $(EXTRA_chmorph_DEPENDENCIES)
- @rm -f chmorph$(EXEEXT)
-@@ -450,11 +450,11 @@ hunzip$(EXEEXT): $(hunzip_OBJECTS) $(hun
- hzip$(EXEEXT): $(hzip_OBJECTS) $(hzip_DEPENDENCIES) $(EXTRA_hzip_DEPENDENCIES)
- @rm -f hzip$(EXEEXT)
- $(LINK) $(hzip_OBJECTS) $(hzip_LDADD) $(LIBS)
--munch$(EXEEXT): $(munch_OBJECTS) $(munch_DEPENDENCIES) $(EXTRA_munch_DEPENDENCIES)
-- @rm -f munch$(EXEEXT)
-+hunspell-munch$(EXEEXT): $(munch_OBJECTS) $(munch_DEPENDENCIES) $(EXTRA_munch_DEPENDENCIES)
-+ @rm -f hunspell-munch$(EXEEXT)
- $(LINK) $(munch_OBJECTS) $(munch_LDADD) $(LIBS)
--unmunch$(EXEEXT): $(unmunch_OBJECTS) $(unmunch_DEPENDENCIES) $(EXTRA_unmunch_DEPENDENCIES)
-- @rm -f unmunch$(EXEEXT)
-+hunspell-unmunch$(EXEEXT): $(unmunch_OBJECTS) $(unmunch_DEPENDENCIES) $(EXTRA_unmunch_DEPENDENCIES)
-+ @rm -f hunspell-unmunch$(EXEEXT)
- $(LINK) $(unmunch_OBJECTS) $(unmunch_LDADD) $(LIBS)
- install-dist_binSCRIPTS: $(dist_bin_SCRIPTS)
- @$(NORMAL_INSTALL)
diff -r 096e2abcbe99 -r 10d2355c9e9d textproc/hunspell/patches/patch-src_tools_hunspell.cxx
--- a/textproc/hunspell/patches/patch-src_tools_hunspell.cxx Tue Oct 23 10:45:01 2018 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_tools_hunspell.cxx,v 1.1 2018/01/25 10:43:59 jperkin Exp $
-
-C++11 requires a space between literal and identifier
-
---- src/tools/hunspell.cxx.orig 2018-01-24 18:44:15.895346290 +0000
-+++ src/tools/hunspell.cxx
-@@ -17,7 +17,7 @@
- #define HUNSPELL_VERSION VERSION
- #define INPUTLEN 50
-
--#define HUNSPELL_PIPE_HEADING "@(#) International Ispell Version 3.2.06 (but really Hunspell "VERSION")\n"
-+#define HUNSPELL_PIPE_HEADING "@(#) International Ispell Version 3.2.06 (but really Hunspell " VERSION ")\n"
- #define HUNSPELL_HEADING "Hunspell "
- #define ODF_EXT "odt|ott|odp|otp|odg|otg|ods|ots"
- #define ENTITY_APOS "'"
Home |
Main Index |
Thread Index |
Old Index