add hspell.

This commit is contained in:
4fury-c3440d8
2022-12-02 11:38:12 +03:00
parent dad473e28d
commit 3520fc17f7
3 changed files with 143 additions and 0 deletions
+19
View File
@@ -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")
@@ -0,0 +1,54 @@
From 4573c39c4a5bfbcd36941c2ead3d4d93d9ac85e4 Mon Sep 17 00:00:00 2001
From: Dan Kenigsberg <danken@cs.technion.ac.il>
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
+70
View File
@@ -0,0 +1,70 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>hspell</Name>
<Homepage>http://hspell.ivrix.org.il/</Homepage>
<Packager>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Packager>
<License>AGPL-3</License>
<IsA>app:console</IsA>
<PartOf>office.spellcheck</PartOf>
<Summary>A free Hebrew linguistic project.</Summary>
<Description>A free Hebrew spell-checker and morphological analyzer.</Description>
<Archive sha1sum="dc0bcc7847e3a2e87487c45f77436498b788c358" type="targz">
http://hspell.ivrix.org.il/hspell-1.4.tar.gz
</Archive>
<BuildDependencies>
<Dependency>perl</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>hunspell-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level='1'>hspell-1.4-rh-perl.patch</Patch>
</Patches>
</Source>
<Package>
<Name>hspell</Name>
<RuntimeDependencies>
<Dependency>perl</Dependency>
<Dependency>zlib</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/hspell</Path>
<Path fileType="executable">/usr/bin/hspell-i</Path>
<Path fileType="executable">/usr/bin/multispell</Path>
<Path fileType="header">/usr/include/hspell.h</Path>
<Path fileType="header">/usr/include/linginfo.h</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="library">/usr/lib/libhspell.a</Path>
<Path fileType="manpages">/usr/share/man/man1</Path>
<Path fileType="manpages">/usr/share/man/man3</Path>
<Path fileType="data">/usr/share/hspell</Path>
</Files>
</Package>
<Package>
<Name>hunspell-dict-he</Name>
<PartOf>office.dictionary</PartOf>
<RuntimeDependencies>
<Dependency>perl</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/share/hunspell/he_IL.aff</Path>
<Path fileType="data">/usr/share/hunspell/he_IL.dic</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2022-12-02</Date>
<Version>1.4</Version>
<Comment>First build.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
</History>
</PISI>