summaryrefslogtreecommitdiff
path: root/textproc/ispell-russian
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2002-11-19 15:53:25 +0000
committerjschauma <jschauma@pkgsrc.org>2002-11-19 15:53:25 +0000
commit269a90cd4dbb71bec42dcfe2133a2147762e79e5 (patch)
tree68d7e38f511541ffdf6cb5847b5bce0499c20ec6 /textproc/ispell-russian
parent30be41d5307f7158ff51dcfb17ac8aee890c46b2 (diff)
downloadpkgsrc-269a90cd4dbb71bec42dcfe2133a2147762e79e5.tar.gz
Initial import of textproc/ispell-russian as provided by (mishka at terabyte
dot com dot au) in PR pkg/18561 (with minor change by me to update to latest version). ispell-russian is, quite surprisingly, a Russian (KOI8-R) dictionary for ispell. The word list is based on the early one collected by Neal Dalton. After removing illegal words and adding many new rules and words, the dictionaries contain now over 116,200 basic words and produce over 1,116,000 related words (compared to 52,000 words in Neal's version and 952,000 words in the dictionary by K. Knizhnik). Also, this package seems to be the only one that supports the right spelling of words with the Russian letter 'yo' (other dictionaries simply replace the letter 'yo' by 'ye').
Diffstat (limited to 'textproc/ispell-russian')
-rw-r--r--textproc/ispell-russian/DESCR11
-rw-r--r--textproc/ispell-russian/Makefile29
-rw-r--r--textproc/ispell-russian/PLIST3
-rw-r--r--textproc/ispell-russian/distinfo5
-rw-r--r--textproc/ispell-russian/patches/patch-aa77
5 files changed, 125 insertions, 0 deletions
diff --git a/textproc/ispell-russian/DESCR b/textproc/ispell-russian/DESCR
new file mode 100644
index 00000000000..ceb1b1a2ce4
--- /dev/null
+++ b/textproc/ispell-russian/DESCR
@@ -0,0 +1,11 @@
+This is a new Russian (KOI8-R) dictionaries for ispell.
+
+The word list is based on the early one collected by Neal Dalton.
+After removing illegal words and adding many new rules and words,
+the dictionaries contain now over 116,200 basic words and produce
+over 1,116,000 related words (compared to 52,000 words in Neal's
+version and 952,000 words in the dictionary by K. Knizhnik).
+
+Also, this package seems to be the only one that supports the right
+spelling of words with the Russian letter 'yo' (other dictionaries
+simply replace the letter 'yo' by 'ye').
diff --git a/textproc/ispell-russian/Makefile b/textproc/ispell-russian/Makefile
new file mode 100644
index 00000000000..7bb023b8c96
--- /dev/null
+++ b/textproc/ispell-russian/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/11/19 15:53:25 jschauma Exp $
+
+DISTNAME= rus-ispell-0.99f3
+PKGNAME= ispell-russian-0.99.3
+CATEGORIES= textproc
+MASTER_SITES= ftp://scon155.phys.msu.su/pub/russian/ispell/
+
+MAINTAINER= mishka@terabyte.com.ua
+COMMENT= Russian (KOI8-R) ispell dictonary from Alexander Lebedev
+
+DEPENDS+= ispell-base>=3.1.20:../../textproc/ispell-base
+
+WRKSRC= ${WRKDIR}
+
+MAKE_ENV+= CAT=${CAT} RM=${RM} SED=${SED} TR=${TR} UNIQ="uniq"
+
+.ifdef YO
+MAKE_ENV+= YO="defined"
+.endif
+
+post-configure:
+ @${ECHO} '===================================================='
+ @${ECHO} ''
+ @${ECHO} ' To enable native "YO" letter support please add'
+ @${ECHO} ' "YO=yes" option to make(1) when build package.'
+ @${ECHO} ''
+ @${ECHO} '===================================================='
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ispell-russian/PLIST b/textproc/ispell-russian/PLIST
new file mode 100644
index 00000000000..99c77ab1cf7
--- /dev/null
+++ b/textproc/ispell-russian/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/11/19 15:53:25 jschauma Exp $
+lib/russian.aff
+lib/russian.hash
diff --git a/textproc/ispell-russian/distinfo b/textproc/ispell-russian/distinfo
new file mode 100644
index 00000000000..ec4434cf4c9
--- /dev/null
+++ b/textproc/ispell-russian/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/11/19 15:53:25 jschauma Exp $
+
+SHA1 (rus-ispell-0.99f3.tar.gz) = 153644a00d150d71d65e791fa0007cbb24ce2a59
+Size (rus-ispell-0.99f3.tar.gz) = 460756 bytes
+SHA1 (patch-aa) = 341837cb81ba27b8e7ff472a8dcf842ff049536e
diff --git a/textproc/ispell-russian/patches/patch-aa b/textproc/ispell-russian/patches/patch-aa
new file mode 100644
index 00000000000..8302786fe45
--- /dev/null
+++ b/textproc/ispell-russian/patches/patch-aa
@@ -0,0 +1,77 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/11/19 15:53:26 jschauma Exp $
+
+--- Makefile.orig Tue Nov 19 10:43:06 2002
++++ Makefile Tue Nov 19 10:47:30 2002
+@@ -1,40 +1,48 @@
+ # Makefile for Russian ispell dictionary
+
+-LIB=/usr/lib/ispell
++INSTALLDIR= ${PREFIX}/lib
++BUILDHASH= ${PREFIX}/bin/buildhash
++SORTKOI8= ./sortkoi8
+
+-DICT = base.koi abbrev.koi computer.koi for_name.koi geography.koi \
++ENC?= koi
++DICT= base.koi abbrev.koi computer.koi for_name.koi geography.koi \
+ science.koi # rare.koi
+
+-ifdef YO
+-PATT=y
+-else
+-PATT=e
+-YO2E=| tr '\243\263' '\305\345'
+-endif
+-
+-koi iso alt win mac: russian.aff.koi russian.dict.koi
+- sed -e "s/^\#$(PATT)//;s/^\#$@/wordchars/" $< | \
+- ./trans koi $@ > russian.aff
+- cat russian.dict.koi | ./trans koi $@ > russian.dict
+- rm russian.dict.koi
+- buildhash ./russian.dict ./russian.aff ./russian.hash
++# The following 'if' tries speedup the make process
++.ifdef ${ENC} == "koi"
++TRANSKOI= # null
++.else
++TRANSKOI= | ./trans koi ${ENC}
++.endif
++
++.ifdef YO
++PATT= y
++.else
++PATT= e
++YO2E= | ${TR} '\243\263' '\305\345'
++.endif
++
++all: russian.hash
+
+ install:
+- cp russian.hash russian.aff $(LIB)
++ ${BSD_INSTALL_DATA} russian.hash ${INSTALLDIR}
++ ${BSD_INSTALL_DATA} russian.aff ${INSTALLDIR}
++
++russian.hash: russian.aff russian.dict
++ ${BUILDHASH} russian.dict russian.aff $@
+
+-russian.dict.koi: $(DICT)
+- cat $^ $(YO2E) | ./sortkoi8 | uniq > $@
++russian.aff: russian.aff.koi
++ ${SED} -e "s/^\#${PATT}//;s/^\#${ENC}/wordchars/" $> \
++ ${TRANSKOI} > $@
++
++russian.dict: ${DICT}
++ ${CAT} $> ${YO2E} | ${SORTKOI8} | ${UNIQ} \
++ ${TRANSKOI} > $@
+
+ check_dict: $(DICT)
+ for i in `cat $(DICT) | sed 's,/.*$$,,' | sort | uniq -d`; do \
+ grep "^$$i/\|^$$i$$" $(DICT); \
+ done > .temp
+-
+-sort_dict: $(DICT)
+- for i in $(DICT); do \
+- cat $$i | ./sortkoi8 > $$i.temp; \
+- mv -f $$i.temp $$i; \
+- done
+
+ clean:
+ rm -f russian.dict* russian.hash russian.aff .temp