mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
new port: Hebrew spellchecker and morphology engine
A new and innovative spell checker for hebrew. portlint is happy about this. PR: ports/47265 Submitted by: Yonatan@xpert.com <Yonatan@xpert.com>
This commit is contained in:
parent
4f5ee6a36b
commit
2696f3bbe9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77959
@ -3,6 +3,7 @@
|
||||
|
||||
SUBDIR += elmar-fonts
|
||||
SUBDIR += he2
|
||||
SUBDIR += hspell
|
||||
SUBDIR += pine
|
||||
|
||||
.include <bsd.port.subdir.mk>
|
||||
|
23
hebrew/hspell/Makefile
Normal file
23
hebrew/hspell/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# Ports collection makefile for: hspell
|
||||
# Date created: 03 Feb 2003
|
||||
# Whom: Yonatan <Yonatan@xpert.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= hspell
|
||||
PORTVERSION= 0.4
|
||||
CATEGORIES= hebrew
|
||||
MASTER_SITES= http://www.ivrix.org.il/projects/spell-checker/
|
||||
|
||||
MAINTAINER= yonatan@xpert.com
|
||||
COMMENT= Hebrew spellchecker and morphology engine
|
||||
|
||||
USE_PERL= yes
|
||||
|
||||
MAN1= hspell.1
|
||||
|
||||
post-install:
|
||||
@${SED} -e "s:%%PORTSDIR%%:${PORTSDIR}:g" ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
hebrew/hspell/distinfo
Normal file
1
hebrew/hspell/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (hspell-0.4.tar.gz) = 1ede349d43a2a5df4c1dce3c06c95918
|
22
hebrew/hspell/files/patch-Makefile
Normal file
22
hebrew/hspell/files/patch-Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
--- Makefile.orig Sat Mar 8 15:17:03 2003
|
||||
+++ Makefile Wed Apr 2 03:07:35 2003
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
# build and installation paths
|
||||
DESTDIR =
|
||||
-PREFIX = /usr/local
|
||||
+PREFIX ?= /usr/local
|
||||
BIN = $(PREFIX)/bin
|
||||
SHARE = $(PREFIX)/share/hspell
|
||||
LIBEXEC = $(PREFIX)/lib/hspell
|
||||
@@ -42,8 +42,8 @@
|
||||
sed 's+^my @dictionaries=.*$$+my @dictionaries=("zcat $(SHARE)/wordlist.wgz|$(LIBEXEC)/wunzip|");+; s+my @likelyerror.*$$+my @likelyerror_dictionaries=("$(SHARE)/likelyerrors");+; s+@spellinghints_dictionaries=("spellinghints")+@spellinghints_dictionaries=("$(SHARE)/spellinghints")+' < hspell.pl > $@
|
||||
chmod 755 $@
|
||||
|
||||
-CFLAGS=-O
|
||||
-LDFLAGS=-s
|
||||
+CFLAGS?=-O
|
||||
+LDFLAGS?=-s
|
||||
wunzip:
|
||||
|
||||
# experimental, not currently in use:
|
10
hebrew/hspell/pkg-descr
Normal file
10
hebrew/hspell/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
Hspell is a fully working Hebrew spellchecker. On typical documents
|
||||
it should recognize the majority of correct words.
|
||||
Hspell was designed to be 100% and strictly compliant with the
|
||||
official niqqud-less spelling rules ("Ha-ktiv Khasar Ha-niqqud",
|
||||
colloquially known as "Ktiv Male") published by the Academy of
|
||||
the Hebrew Language.
|
||||
|
||||
Hspell was written by Nadav Har'El and Dan Kenigsberg.
|
||||
|
||||
WWW: http://www.ivrix.org.il/projects/spell-checker/
|
13
hebrew/hspell/pkg-message
Normal file
13
hebrew/hspell/pkg-message
Normal file
@ -0,0 +1,13 @@
|
||||
The recommended usage of this port is first to teach your terminal to display
|
||||
hebrew fonts, like this:
|
||||
|
||||
vidcontrol < /dev/ttyv0 -f 8x16 iso08-8x16.fnt
|
||||
|
||||
or set this in /etc/rc.conf:
|
||||
|
||||
font8x16=iso08-8x16.fnt
|
||||
|
||||
Then, it would be wise to install bidiv from %%PORTSDIR%%/textproc/bidiv
|
||||
and run hspell like this:
|
||||
|
||||
hspell file.txt | bidiv
|
13
hebrew/hspell/pkg-plist
Normal file
13
hebrew/hspell/pkg-plist
Normal file
@ -0,0 +1,13 @@
|
||||
@comment $FreeBSD$
|
||||
bin/hspell
|
||||
bin/hspell-i
|
||||
share/hspell/likelyerrors
|
||||
share/hspell/spellinghints
|
||||
share/hspell/biza-nouns
|
||||
share/hspell/biza-verbs
|
||||
share/hspell/extrawords
|
||||
share/hspell/milot
|
||||
share/hspell/out.nouns
|
||||
share/hspell/out.nouns-shemp
|
||||
share/hspell/out.verbs
|
||||
@dirrm share/hspell
|
Loading…
Reference in New Issue
Block a user