Update to 20081106. NOTE: Now installs de_AT, de_CH, and de_DE dictionaries instead of "german" before. since 20071211: - fix a wrong encoded umlaut and enhance the check for that in the Makefile - words added and shifted around - additionaly put the dictionary under GPLv3 - allow Ispell F prefix flag to be combined with suffixes - eliminate absolutely useless G flag (prefix ge) - deactivate K suffix flag: unused - eliminate H suffix flag: was almost unused - remove Q and q redundancy: every Q flagged word needs a q now, too - fix build issue with de_CH hunspell dictionary (a missing ß/ss conversion) - better empty-line fault tolerance of dictionaries - revise the aspell Makefile target using the myspell format now for aspell - simplify W flag - use sha256 checksums and prevent checksumming temporary files since 20070829: - words added and shifted around - Hunspell affix fix since 20030222: - in order to make use of Hunspell's compound word support, categorise noun word lists into compoundable end and non-end words. - add blacklists to prevent by compound rules wrongly accepted words to be accepted - add Binnen-I support - add "nosuggest" flag used by Hunspell to some words where it's appropriate - in order to support as well Hunspell optimized dictionary builts and ispell and myspell builts, a complete Makefile rewrite was done. The Makefile might now require GNU make, sorry if that causes trouble. The good news is that makefile dependencies are clean now and make -j is possible - igerman98 names the Ispell dictionaries after ISO 639 language codes now (de_{AT,CH,DE}.{aff,hash}) - isowordlist is obsoleted by isowordlist-de_{AT,CH,DE} nowdiff -r1.13 -r1.14 pkgsrc/textproc/ispell-german/Makefile
(wiz)
@@ -1,32 +1,27 @@ | @@ -1,32 +1,27 @@ | |||
1 | # $NetBSD: Makefile,v 1.13 2006/03/04 21:30:47 jlam Exp $ | 1 | # $NetBSD: Makefile,v 1.14 2008/11/10 18:15:05 wiz Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= igerman98-20030222 | 4 | DISTNAME= igerman98-20081106 | |
5 | PKGNAME= ispell-german-20030222 | 5 | PKGNAME= ispell-german-20081106 | |
6 | PKGREVISION= 1 | |||
7 | CATEGORIES= textproc | 6 | CATEGORIES= textproc | |
8 | MASTER_SITES= http://j3e.de/ispell/igerman98/dict/ | 7 | MASTER_SITES= http://j3e.de/ispell/igerman98/dict/ | |
9 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
10 | 9 | |||
11 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
12 | HOMEPAGE= http://j3e.de/ispell/igerman98/ | 11 | HOMEPAGE= http://j3e.de/ispell/igerman98/ | |
13 | COMMENT= German dictionary for interactive spelling checker | 12 | COMMENT= German dictionary for interactive spelling checker | |
14 | 13 | |||
15 | DEPENDS+= ispell-base>=3.1.20nb1:../../textproc/ispell-base | 14 | DEPENDS+= ispell-base>=3.1.20nb1:../../textproc/ispell-base | |
16 | 15 | |||
17 | BUILD_TARGET= german.hash | 16 | BUILD_TARGET= ispell/de_DE.aff ispell/de_DE.hash ispell/de_AT.aff ispell/de_AT.hash ispell/de_CH.aff ispell/de_CH.hash | |
18 | USE_TOOLS+= gmake perl | 17 | USE_TOOLS+= gmake perl | |
19 | REPLACE_PERL= bin/dic2iso.pl bin/grepl bin/sq.pl bin/myspellfixprefix.pl \ | 18 | REPLACE_PERL= bin/dic2iso.pl bin/grepl bin/sq.pl bin/myspellfixprefix.pl \ | |
20 | bin/clear_affix.pl bin/unsq.pl bin/uniqflag.pl | 19 | bin/clear_affix.pl bin/unsq.pl bin/uniqflag.pl | |
21 | 20 | |||
22 | INSTALLATION_DIRS= lib | 21 | INSTALLATION_DIRS= lib | |
23 | 22 | |||
24 | do-install: | 23 | do-install: | |
25 | ${INSTALL_DATA} ${WRKSRC}/german.aff ${PREFIX}/lib | 24 | ${INSTALL_DATA} ${WRKSRC}/ispell/*.aff ${PREFIX}/lib | |
26 | ${INSTALL_DATA} ${WRKSRC}/german.hash ${PREFIX}/lib | 25 | ${INSTALL_DATA} ${WRKSRC}/ispell/*.hash ${PREFIX}/lib | |
27 | (cd ${PREFIX}/lib && ${LN} -s german.aff deutsch.aff) | |||
28 | (cd ${PREFIX}/lib && ${LN} -s german.hash deutsch.hash) | |||
29 | (cd ${PREFIX}/lib && ${LN} -s german.aff ngerman.aff) | |||
30 | (cd ${PREFIX}/lib && ${LN} -s german.hash ngerman.hash) | |||
31 | 26 | |||
32 | .include "../../mk/bsd.pkg.mk" | 27 | .include "../../mk/bsd.pkg.mk" |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2004/03/12 19:54:51 recht Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2008/11/10 18:15:05 wiz Exp $ | |
2 | lib/deutsch.aff | 2 | lib/de_AT.aff | |
3 | lib/deutsch.hash | 3 | lib/de_AT.hash | |
4 | lib/german.aff | 4 | lib/de_CH.aff | |
5 | lib/german.hash | 5 | lib/de_CH.hash | |
6 | lib/ngerman.aff | 6 | lib/de_DE.aff | |
7 | lib/ngerman.hash | 7 | lib/de_DE.hash |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.8 2005/02/24 14:48:43 agc Exp $ | 1 | $NetBSD: distinfo,v 1.9 2008/11/10 18:15:05 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (igerman98-20030222.tar.bz2) = 3c453257cab294260fc2157b175a3ab1318c5ade | 3 | SHA1 (igerman98-20081106.tar.bz2) = 8416e1f07bd53be48bce677622ff14f823001b74 | |
4 | RMD160 (igerman98-20030222.tar.bz2) = f532e14e3c60e6a7b543f92e173f8dca1a5aad63 | 4 | RMD160 (igerman98-20081106.tar.bz2) = c6f1ea67302892078b717b4edd03fa74f85d37a0 | |
5 | Size (igerman98-20030222.tar.bz2) = 305783 bytes | 5 | Size (igerman98-20081106.tar.bz2) = 470769 bytes | |
6 | SHA1 (patch-aa) = a9905826bf120cdf3a54a387cd08ef2ed5428f99 | 6 | SHA1 (patch-aa) = 2ee4437296f744a8481b7f9f9f0458ff762587b3 |
@@ -1,33 +1,15 @@ | @@ -1,33 +1,15 @@ | |||
1 | $NetBSD: patch-aa,v 1.4 2004/12/01 12:27:44 markd Exp $ | 1 | $NetBSD: patch-aa,v 1.5 2008/11/10 18:15:05 wiz Exp $ | |
2 | 2 | |||
3 | --- Makefile.orig 2003-02-08 01:40:58.000000000 +1300 | 3 | --- Makefile.orig 2008-11-06 19:04:26.000000000 +0000 | |
4 | +++ Makefile | 4 | +++ Makefile | |
5 | @@ -50,8 +50,8 @@ DESTDIR = | 5 | @@ -80,8 +80,8 @@ HUNSPELL_BIN = hunspell | |
6 | MAKE = make | 6 | # we need to make sure we use latin1: | |
7 | BUILDHASH = buildhash | 7 | HUNSPELL = $(HUNSPELL_BIN) `$(HUNSPELL_BIN) -h 2>&1 | grep -q "hunspell \\-i" && echo "-i latin1"` | |
8 | ISPELL = ispell | 8 | ||
9 | -SQ = sq | 9 | -SQ = sq | |
10 | -UNSQ = unsq | 10 | -UNSQ = unsq | |
11 | +SQ = ../bin/sq.pl | 11 | +SQ = ../bin/sq.pl | |
12 | +UNSQ = ../bin/unsq.pl | 12 | +UNSQ = ../bin/unsq.pl | |
13 | # if for some reason you don't have Ispell's unsq use my Perl sq/unsq | 13 | # if for some reason you don't have Ispell's unsq use my Perl sq/unsq | |
14 | # and put it into a directory known by your PATH variable! | 14 | # and put it into a directory known by your PATH variable! | |
15 | #UNSQ = unsq.pl | 15 | #UNSQ = unsq.pl | |
16 | @@ -209,14 +209,14 @@ clean: | |||
17 | ||||
18 | sort: | |||
19 | @if grep [äöüÄÖÜß] dicts/*.txt ;then echo "!!! wrong characters in dictionay files !!!";exit 1;fi | |||
20 | - cd dicts; find . -name "*.txt" |while read i; do sort -u -o $$i $$i; done | |||
21 | + cd dicts; find . -name "*.txt" -print |while read i; do sort -u -o $$i $$i; done | |||
22 | ||||
23 | pack: sort | |||
24 | rm -f unpack | |||
25 | - cd dicts; find . -name "*.txt" |while read i; do $(SQ) < $$i > $$i.sq && rm $$i; done | |||
26 | + cd dicts; find . -name "*.txt" -print |while read i; do $(SQ) < $$i > $$i.sq && rm $$i; done | |||
27 | ||||
28 | unpack: | |||
29 | - cd dicts; find . -name "*.sq" |while read i; do $(UNSQ) < $$i > `basename $$i .sq` && rm $$i; done | |||
30 | + cd dicts; find . -name "*.sq" -print |while read i; do $(UNSQ) < $$i > `basename $$i .sq` && rm $$i; done | |||
31 | touch unpack | |||
32 | ||||
33 | dist: sort pack clean |