From 3520fc17f727ecadad8afb1533ccfe61aa36a852 Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Fri, 2 Dec 2022 11:38:12 +0300 Subject: [PATCH] add hspell. --- office/spellcheck/hspell/actions.py | 19 +++++ .../hspell/files/hspell-1.4-rh-perl.patch | 54 ++++++++++++++ office/spellcheck/hspell/pspec.xml | 70 +++++++++++++++++++ 3 files changed, 143 insertions(+) create mode 100644 office/spellcheck/hspell/actions.py create mode 100644 office/spellcheck/hspell/files/hspell-1.4-rh-perl.patch create mode 100644 office/spellcheck/hspell/pspec.xml diff --git a/office/spellcheck/hspell/actions.py b/office/spellcheck/hspell/actions.py new file mode 100644 index 0000000000..630e2193ab --- /dev/null +++ b/office/spellcheck/hspell/actions.py @@ -0,0 +1,19 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import autotools, pisitools, get + +def setup(): + autotools.configure("--enable-shared --enable-linginfo --enable-fatverb") + +def build(): + autotools.make("PERL_USE_UNSAFE_INC=1 hunspell") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.insinto("/usr/share/hunspell", "he.aff", "he_IL.aff") + pisitools.insinto("/usr/share/hunspell", "he.dic", "he_IL.dic") diff --git a/office/spellcheck/hspell/files/hspell-1.4-rh-perl.patch b/office/spellcheck/hspell/files/hspell-1.4-rh-perl.patch new file mode 100644 index 0000000000..a02a581fc1 --- /dev/null +++ b/office/spellcheck/hspell/files/hspell-1.4-rh-perl.patch @@ -0,0 +1,54 @@ +From 4573c39c4a5bfbcd36941c2ead3d4d93d9ac85e4 Mon Sep 17 00:00:00 2001 +From: Dan Kenigsberg +Date: Sat, 15 Jul 2017 21:28:03 +0300 +Subject: [PATCH] require local module explicitly + +this allows build hspell when perl runs in taint mode which does not +include the current directory in @INC +--- + binarize-desc.pl | 2 +- + genprefixes.pl | 2 +- + pmerge | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/binarize-desc.pl b/binarize-desc.pl +index dbf0b1c..f62ebc6 100755 +--- a/binarize-desc.pl ++++ b/binarize-desc.pl +@@ -8,7 +8,7 @@ + + use Carp; + +-require "PrefixBits.pl"; ++require "./PrefixBits.pl"; + + # "perl -w" warns about variables only used once (it assumes they are a + # typo). This ugliness gets rid of this warning. Is there a more sensible way? +diff --git a/genprefixes.pl b/genprefixes.pl +index 450a7ca..9ae9e50 100755 +--- a/genprefixes.pl ++++ b/genprefixes.pl +@@ -1,6 +1,6 @@ + #!/usr/bin/perl -w + +-require "PrefixBits.pl"; ++require "./PrefixBits.pl"; + + sub find_prefixes { + my $INQUISITIVE_HE=shift; +diff --git a/pmerge b/pmerge +index 83ad949..9ceb9de 100755 +--- a/pmerge ++++ b/pmerge +@@ -8,7 +8,7 @@ + use IO::File; + use Carp; + +-require "PrefixBits.pl"; ++require "./PrefixBits.pl"; + + # "perl -w" warns about variables only used once (it assumes they are a + # typo). This ugliness gets rid of this warning. Is there a more sensible way? +-- +2.9.4 + diff --git a/office/spellcheck/hspell/pspec.xml b/office/spellcheck/hspell/pspec.xml new file mode 100644 index 0000000000..ca99cfc9fe --- /dev/null +++ b/office/spellcheck/hspell/pspec.xml @@ -0,0 +1,70 @@ + + + + + hspell + http://hspell.ivrix.org.il/ + + fury + uglyside@yandex.ru + + AGPL-3 + app:console + office.spellcheck + A free Hebrew linguistic project. + A free Hebrew spell-checker and morphological analyzer. + + http://hspell.ivrix.org.il/hspell-1.4.tar.gz + + + perl + zlib-devel + hunspell-devel + + + hspell-1.4-rh-perl.patch + + + + + hspell + + perl + zlib + + + /usr/bin/hspell + /usr/bin/hspell-i + /usr/bin/multispell + /usr/include/hspell.h + /usr/include/linginfo.h + /usr/lib + /usr/lib/libhspell.a + /usr/share/man/man1 + /usr/share/man/man3 + /usr/share/hspell + + + + + hunspell-dict-he + office.dictionary + + perl + + + /usr/share/hunspell/he_IL.aff + /usr/share/hunspell/he_IL.dic + + + + + + 2022-12-02 + 1.4 + First build. + fury + uglyside@yandex.ru + + +