From d10d511f25620ca0f315cd83dcef6485efc63010 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Thu, 30 Mar 2023 01:43:44 +0200 Subject: [PATCH] [hunspell] fix features tools (#30404) --- ports/hunspell/0001_fix_unistd.patch | 78 ++++++++-------------------- ports/hunspell/portfile.cmake | 2 +- ports/hunspell/vcpkg.json | 2 +- versions/baseline.json | 2 +- versions/h-/hunspell.json | 5 ++ 5 files changed, 29 insertions(+), 60 deletions(-) diff --git a/ports/hunspell/0001_fix_unistd.patch b/ports/hunspell/0001_fix_unistd.patch index 79a48d824f..9ea198b951 100644 --- a/ports/hunspell/0001_fix_unistd.patch +++ b/ports/hunspell/0001_fix_unistd.patch @@ -1,17 +1,12 @@ -From 9f33c841afe51be517eaea318d46985c596c94ff Mon Sep 17 00:00:00 2001 -From: Mikhail Paulyshka -Date: Tue, 25 Jul 2017 01:58:39 +0300 -Subject: [PATCH] tools/hzip: fix build with MSVC - ---- - src/tools/hzip.cxx | 2 ++ - 1 file changed, 2 insertions(+) - diff --git a/src/tools/hzip.cxx b/src/tools/hzip.cxx -index ef1864f..d284c64 100644 +index d7d2d2464..30bb5a32c 100644 --- a/src/tools/hzip.cxx +++ b/src/tools/hzip.cxx -@@ -41,7 +41,9 @@ +@@ -38,10 +38,13 @@ + /* hzip: file compression for sorted dictionaries with optional encryption, + * algorithm: prefix-suffix encoding and 16-bit Huffman encoding */ + ++#include #include #include #include @@ -21,58 +16,27 @@ index ef1864f..d284c64 100644 #include #include --- -2.12.2.windows.2 - -From 840f920bcd370668b9e788b3c8272eca1f20ce3a Mon Sep 17 00:00:00 2001 -From: Mikhail Paulyshka -Date: Tue, 25 Jul 2017 01:55:13 +0300 -Subject: [PATCH] tools/unmunch: fix build with MSVC - ---- - src/tools/unmunch.cxx | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/src/tools/unmunch.cxx b/src/tools/unmunch.cxx -index 44b4cb1..2144370 100644 ---- a/src/tools/unmunch.cxx -+++ b/src/tools/unmunch.cxx -@@ -42,7 +42,9 @@ - #include - #include - #include -+#ifdef HAVE_UNISTD_H - #include -+#endif /* HAVE_UNISTD_H */ - #include - #include - #include --- -2.12.2.windows.2 - -From 1c231aa84624082a0fa52d59be8c449bfe1fadd1 Mon Sep 17 00:00:00 2001 -From: Mikhail Paulyshka -Date: Tue, 25 Jul 2017 01:50:21 +0300 -Subject: [PATCH] tools/munch: fix build with MSVC - -Include only if exists ---- - src/tools/munch.cxx | 2 ++ - 1 file changed, 2 insertions(+) - diff --git a/src/tools/munch.cxx b/src/tools/munch.cxx -index 17fc6fd..8503abe 100644 +index e33ac71e3..1e8342ff5 100644 --- a/src/tools/munch.cxx +++ b/src/tools/munch.cxx -@@ -40,7 +40,9 @@ +@@ -40,7 +40,6 @@ #include #include #include -+#ifdef HAVE_UNISTD_H - #include -+#endif /* HAVE_UNISTD_H */ +-#include + #include + #include + #include +diff --git a/src/tools/unmunch.cxx b/src/tools/unmunch.cxx +index 5a73e6fe9..3d9e31832 100644 +--- a/src/tools/unmunch.cxx ++++ b/src/tools/unmunch.cxx +@@ -42,7 +42,6 @@ + #include + #include + #include +-#include #include #include #include --- -2.12.2.windows.2 diff --git a/ports/hunspell/portfile.cmake b/ports/hunspell/portfile.cmake index ab969ed506..dd441f939f 100644 --- a/ports/hunspell/portfile.cmake +++ b/ports/hunspell/portfile.cmake @@ -5,7 +5,7 @@ vcpkg_from_github( SHA512 472249309aecbbc58a025445781268867173e0651a6147f29644975ad65af043a1e2fbe91f2094934526889c7f9944739dc0a5f0d25328a77d22db1fd8f055ec HEAD_REF master PATCHES - 0001_fix_unistd.patch + 0001_fix_unistd.patch # from https://github.com/hunspell/hunspell/commit/60980f2bfe6678cca98bea2bf37f0b11bb34f4c5 0005-autotools-subdirs.patch ) diff --git a/ports/hunspell/vcpkg.json b/ports/hunspell/vcpkg.json index cf217132ca..5cd54c4819 100644 --- a/ports/hunspell/vcpkg.json +++ b/ports/hunspell/vcpkg.json @@ -1,7 +1,7 @@ { "name": "hunspell", "version": "1.7.1", - "port-version": 2, + "port-version": 3, "description": "The most popular spellchecking library.", "homepage": "https://github.com/hunspell/hunspell", "license": "MPL-1.1 OR LGPL-2.1-or-later OR GPL-2.0-or-later", diff --git a/versions/baseline.json b/versions/baseline.json index 9da5c3aa4f..882b96610a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3098,7 +3098,7 @@ }, "hunspell": { "baseline": "1.7.1", - "port-version": 2 + "port-version": 3 }, "hwloc": { "baseline": "2.9.0", diff --git a/versions/h-/hunspell.json b/versions/h-/hunspell.json index 2388fc117c..61e729b19f 100644 --- a/versions/h-/hunspell.json +++ b/versions/h-/hunspell.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "798ac2e490d16afc2713b95740101c03fa555f84", + "version": "1.7.1", + "port-version": 3 + }, { "git-tree": "eb238e0094c8177b2b9ddfe8146c5e516ccbb7dc", "version": "1.7.1",