From e0dd9c009c02f92afa38adb76ed69962bc5a8479 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Fri, 2 Dec 2022 15:35:39 +0300 Subject: [PATCH] enchant2. --- office/spellcheck/enchant2/actions.py | 38 +++++----- office/spellcheck/enchant2/pspec.xml | 79 +++++++++++++++++---- office/spellcheck/enchant2/translations.xml | 8 +-- 3 files changed, 89 insertions(+), 36 deletions(-) diff --git a/office/spellcheck/enchant2/actions.py b/office/spellcheck/enchant2/actions.py index 92e190f29a..c83a7a8fe3 100644 --- a/office/spellcheck/enchant2/actions.py +++ b/office/spellcheck/enchant2/actions.py @@ -2,26 +2,25 @@ # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. -# See the file http://www.gnu.org/licenses/gpl.txt +# See the file https://www.gnu.org/licenses/gpl-3.0.txt -from pisi.actionsapi import shelltools -from pisi.actionsapi import autotools -from pisi.actionsapi import pisitools -from pisi.actionsapi import get +from pisi.actionsapi import autotools, pisitools, get + +j = ''.join([ + ' --with-aspell', + ' --with-hunspell', + ' --with-nuspell', + ' --with-hspell', + ' --with-voikko', + ' --with-zemberek', + ' --with-hunspell-dir=/usr/share/hunspell', + ' --with-hspell-dir=/usr/share/hspell', + ' --with-voikko-dir=/usr/share/voikko', + ' --disable-static ' + ]) def setup(): - shelltools.system("./bootstrap") - - #suppress g++ warnings - pisitools.cxxflags.add("-Wno-useless-cast -Wno-old-style-cast -Wno-deprecated-declarations\ - -Wno-effc++ -Wno-abi") - #suppress gcc warnings - pisitools.cflags.add("-fno-stack-protector -Wno-suggest-attribute=malloc") - autotools.configure("--disable-static \ - --with-zemberek \ - --with-aspell \ - --with-myspell \ - --with-myspell-dir=/usr/share/hunspell") + autotools.configure(j) #fix unused direct dependency analysis pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") @@ -31,7 +30,6 @@ def build(): def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) - + pisitools.rename("/usr/share/enchant/enchant.ordering", "enchant.ordering-2") - - pisitools.dodoc("AUTHORS", "NEWS", "README", "HACKING") \ No newline at end of file + pisitools.dodoc("AUTHORS", "NEWS") diff --git a/office/spellcheck/enchant2/pspec.xml b/office/spellcheck/enchant2/pspec.xml index 3c40e2d3be..d8e5042b7e 100644 --- a/office/spellcheck/enchant2/pspec.xml +++ b/office/spellcheck/enchant2/pspec.xml @@ -1,5 +1,5 @@ - + enchant2 @@ -8,27 +8,32 @@ PisiLinux Community admins@pisilinux.org - office.spellcheck + office.spellcheck LGPLv2.1 library Spellchecker wrapping library enchant is a library that wraps other spell checking backends. - https://github.com/AbiWord/enchant/archive/v2.3.0.tar.gz + + https://github.com/AbiWord/enchant/releases/download/v2.3.3/enchant-2.3.3.tar.gz + - dbus-glib-devel - hunspell-devel - aspell-devel - glib2-devel gnupg - git + hspell + glib2-devel + aspell-devel + nuspell-devel + hunspell-devel + dbus-glib-devel + libvoikko-devel enchant2 - Spellchecker wrapping library + Spellchecker wrapping library glib2 + libgcc hunspell @@ -36,15 +41,16 @@ /usr/lib /usr/share/man /usr/share/doc - /usr/share/enchant + /usr/share/enchant/enchant.ordering-2 enchant2-aspell - aspell backend for Enchant + aspell backend for enchant enchant2 + glib2 aspell @@ -54,9 +60,12 @@ enchant2-zemberek - zemberek backend for Enchant + zemberek backend for enchant + glib2 + libgcc enchant2 + dbus-glib zemberek-office @@ -64,6 +73,45 @@ + + enchant2-nuspell + + glib2 + icu4c + libgcc + nuspell + + + + /usr/lib/enchant-2/enchant_nuspell.so + + + + + enchant2-hspell + + glib2 + hspell + enchant2 + + + /usr/lib/enchant-2/enchant_hspell.so + + + + + enchant2-voikko + + glib2 + enchant2 + voikko-fi + libvoikko + + + /usr/lib/enchant-2/enchant_voikko.so + + + enchant2-devel Development files for enchant2 @@ -78,6 +126,13 @@ + + 2022-12-02 + 2.3.3 + Version bump. + fury + uglyside@yandex.ru + 2021-06-30 2.3.0 diff --git a/office/spellcheck/enchant2/translations.xml b/office/spellcheck/enchant2/translations.xml index bf4d4518c1..7e9ac84342 100644 --- a/office/spellcheck/enchant2/translations.xml +++ b/office/spellcheck/enchant2/translations.xml @@ -9,18 +9,18 @@ enchant2-aspell Enchant2 için aspell arkaucu - enchant2-aspell, enchant2 için aspell arkaucu sağlar. + enchant2-aspell, enchant2 için aspell arkaucu sağlar. enchant2-zemberek Enchant2 için zemberek arkaucu - enchant2-zemberek, enchant2 için zemberek arkaucu sağlar. + enchant2-zemberek, enchant2 için zemberek arkaucu sağlar. enchant2-devel enchant2 için geliştirme dosyaları - enchant2-devel, enchant2 için geliştirme dosyaları sağlar. + enchant2-devel, enchant2 için geliştirme dosyaları sağlar. - \ No newline at end of file +