Update to 20081106: 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 fixdiff -r1.1.1.1 -r1.2 pkgsrc/textproc/hunspell-de/Makefile
(wiz)
@@ -1,32 +1,38 @@ | @@ -1,32 +1,38 @@ | |||
1 | # $NetBSD: Makefile,v 1.1.1.1 2007/09/11 18:37:27 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2008/11/11 14:17:34 wiz Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | VERSION= 20070829 | 4 | DISTNAME= igerman98-20081106 | |
5 | # bogus by purpose | 5 | PKGNAME= ${DISTNAME:S/igerman98/hunspell-de/} | |
6 | DISTNAME= hunspell-de-${VERSION} | |||
7 | CATEGORIES= textproc | 6 | CATEGORIES= textproc | |
8 | MASTER_SITES= http://www.j3e.de/hunspell/ | 7 | MASTER_SITES= http://www.j3e.de/ispell/igerman98/dict/ | |
9 | DISTFILES= de_AT-${VERSION}.zip de_CH-${VERSION}.zip de_DE-${VERSION}.zip | 8 | EXTRACT_SUFX= .tar.bz2 | |
10 | EXTRACT_SUFX= .zip | |||
11 | 9 | |||
12 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
13 | HOMEPAGE= http://www.j3e.de/ispell/igerman98/ | 11 | HOMEPAGE= http://www.j3e.de/ispell/igerman98/ | |
14 | COMMENT= German dictionaries for hunspell | 12 | COMMENT= German dictionaries for hunspell | |
15 | 13 | |||
16 | DIST_SUBDIR= hunspell-dictionaries | 14 | BUILD_DEPENDS+= ispell-base>=3.1.20nb1:../../textproc/ispell-base | |
17 | # don't want -L | 15 | DEPENDS+= hunspell>=1.1.5:../../textproc/hunspell | |
18 | EXTRACT_OPTS_ZIP= -aqo | |||
19 | 16 | |||
20 | WRKSRC= ${WRKDIR} | |||
21 | USE_LANGUAGES= # none | 17 | USE_LANGUAGES= # none | |
22 | 18 | |||
23 | INSTALLATION_DIRS= share/hunspell share/doc/hunspell-de | 19 | BUILD_TARGET= hunspell-all | |
20 | USE_TOOLS+= gmake perl sed | |||
21 | REPLACE_PERL= bin/clear_affix.pl bin/dic2iso.pl bin/grepl bin/lcfirst.pl \ | |||
22 | bin/sq.pl bin/uniqflag.pl bin/unsq.pl bin/extractlines.pl \ | |||
23 | bin/hunspell-optimize-roothelper.pl bin/myspellfixprefix.pl | |||
24 | ||||
25 | SUBST_CLASSES+= sed | |||
26 | SUBST_FILES.sed= bin/clear_affix bin/dic2iso bin/iso2dic bin/iso2tex \ | |||
27 | bin/tex2iso bin/conv_dict_de_CH | |||
28 | SUBST_SED.sed= -e "s,/bin/sed,${SED}," | |||
29 | SUBST_STAGE.sed= pre-build | |||
30 | SUBST_MESSAGE.sed= Fixing path to sed. | |||
24 | 31 | |||
25 | do-build: | 32 | INSTALLATION_DIRS= share/hunspell | |
26 | 33 | |||
27 | do-install: | 34 | do-install: | |
28 | ${INSTALL_DATA} ${WRKSRC}/de* ${PREFIX}/share/hunspell | 35 | ${INSTALL_DATA} ${WRKSRC}/hunspell/de*aff ${PREFIX}/share/hunspell | |
29 | ${INSTALL_DATA} ${WRKSRC}/[CR]* ${PREFIX}/share/doc/hunspell-de | 36 | ${INSTALL_DATA} ${WRKSRC}/hunspell/de*dic ${PREFIX}/share/hunspell | |
30 | ${INSTALL_DATA} ${WRKSRC}/dict* ${PREFIX}/share/doc/hunspell-de | |||
31 | 37 | |||
32 | .include "../../mk/bsd.pkg.mk" | 38 | .include "../../mk/bsd.pkg.mk" |
@@ -1,16 +1,14 @@ | @@ -1,16 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2007/09/11 18:37:27 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2008/11/11 14:17:34 wiz Exp $ | |
2 | share/doc/hunspell-de/COPYING | |||
3 | share/doc/hunspell-de/COPYING_OASIS | |||
4 | share/doc/hunspell-de/Copyright | |||
5 | share/doc/hunspell-de/dictionary.lst.example | |||
6 | share/doc/hunspell-de/README_de_AT.txt | |||
7 | share/doc/hunspell-de/README_de_CH.txt | |||
8 | share/doc/hunspell-de/README_de_DE.txt | |||
9 | share/hunspell/de_AT.aff | 2 | share/hunspell/de_AT.aff | |
10 | share/hunspell/de_AT.dic | 3 | share/hunspell/de_AT.dic | |
4 | share/hunspell/de_AT_small.aff | |||
5 | share/hunspell/de_AT_small.dic | |||
11 | share/hunspell/de_CH.aff | 6 | share/hunspell/de_CH.aff | |
12 | share/hunspell/de_CH.dic | 7 | share/hunspell/de_CH.dic | |
8 | share/hunspell/de_CH_small.aff | |||
9 | share/hunspell/de_CH_small.dic | |||
13 | share/hunspell/de_DE.aff | 10 | share/hunspell/de_DE.aff | |
14 | share/hunspell/de_DE.dic | 11 | share/hunspell/de_DE.dic | |
12 | share/hunspell/de_DE_small.aff | |||
13 | share/hunspell/de_DE_small.dic | |||
15 | @unexec ${RMDIR} %D/share/hunspell 2>/dev/null || ${TRUE} | 14 | @unexec ${RMDIR} %D/share/hunspell 2>/dev/null || ${TRUE} | |
16 | @dirrm share/doc/hunspell-de |
@@ -1,11 +1,6 @@ | @@ -1,11 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.1.1.1 2007/09/11 18:37:27 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.2 2008/11/11 14:17:34 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (hunspell-dictionaries/de_AT-20070829.zip) = 1753360c700e65ddbd90b2bd5e6804de4ad1fbd5 | 3 | SHA1 (igerman98-20081106.tar.bz2) = 8416e1f07bd53be48bce677622ff14f823001b74 | |
4 | RMD160 (hunspell-dictionaries/de_AT-20070829.zip) = 1820bc3c80dac52f1ced315e1e8dd8487f22eec7 | 4 | RMD160 (igerman98-20081106.tar.bz2) = c6f1ea67302892078b717b4edd03fa74f85d37a0 | |
5 | Size (hunspell-dictionaries/de_AT-20070829.zip) = 299833 bytes | 5 | Size (igerman98-20081106.tar.bz2) = 470769 bytes | |
6 | SHA1 (hunspell-dictionaries/de_CH-20070829.zip) = 79a0575e8e1dcb4226c6609cb74bd3c48c073c68 | 6 | SHA1 (patch-aa) = Size (igerman98-20081106.tar.bz2) = 470769 bytes | |
7 | RMD160 (hunspell-dictionaries/de_CH-20070829.zip) = c91f2a9c4dc0c1b3498cbbdc48ce7aaf5595a68a | |||
8 | Size (hunspell-dictionaries/de_CH-20070829.zip) = 305794 bytes | |||
9 | SHA1 (hunspell-dictionaries/de_DE-20070829.zip) = e81be462afae2a43bb7ff04b3b0b86370027e3d9 | |||
10 | RMD160 (hunspell-dictionaries/de_DE-20070829.zip) = a8e0557b1c487687238f0cd87545f7e8443968f5 | |||
11 | Size (hunspell-dictionaries/de_DE-20070829.zip) = 298720 bytes |
$NetBSD: patch-aa,v 1.1 2008/11/11 14:17:34 wiz Exp $
--- Makefile.orig 2008-11-06 20:04:26.000000000 +0100
+++ Makefile
@@ -192,7 +192,7 @@ myspell/$(1).dic: $$(WORDS_$(1)) $$(WORD
cat $$(WORDS_$(1)) $$(WORDS_de_all) dicts/abkuerzpunkt.txt \
| (test -e ./bin/conv_dict_$(1) && ./bin/conv_dict_$(1) || cat) \
| ./bin/myspell-generic-process.sh > $$@.tmp
- wc -l < $$@.tmp > $$@
+ wc -l < $$@.tmp | sed "s/^ *//" > $$@
cat myspell/de_all.dic.header | $(SED) "s/AFF_VERSION_REPLACE/$(VERSION_STRING)/;s/LANG_REPLACE/$(1)/" >> $$@
./bin/dic2iso < $$@.tmp >> $$@
$(RM_OR_NOT) $$@.tmp
@@ -297,7 +297,7 @@ hunspell/$(1)_small.dic: $$(HUNSPELL_DIC
| (test -e ./bin/conv_dict_$(1) && ./bin/conv_dict_$(1) || cat) \
| ./bin/hunspell-generic-process.sh \
> $$@.tmp
- wc -l < $$@.tmp > $$@
+ wc -l < $$@.tmp | sed "s/^ *//" > $$@
cat myspell/de_all.dic.header | \
$(SED) "s/AFF_VERSION_REPLACE/$(VERSION_STRING)/;s/LANG_REPLACE/$(1)/;s/Myspell/Hunspell/" >> $$@
./bin/dic2iso < $$@.tmp >> $$@
@@ -314,7 +314,7 @@ hunspell/$(1).dic: $$(HUNSPELL_DICTS_ALL
| ./bin/hunspell-generic-process.sh \
| ./bin/hunspell-optimize-roothelper.pl \
> $$@.tmp
- wc -l < $$@.tmp > $$@
+ wc -l < $$@.tmp | sed "s/^ *//" > $$@
cat myspell/de_all.dic.header | $(SED) "s/AFF_VERSION_REPLACE/$$(VERSION_STRING)/;s/LANG_REPLACE/$(1)/;s/Myspell/Hunspell/" >> $$@
./bin/dic2iso < $$@.tmp >> $$@
$(RM_OR_NOT) $$@.tmp
@@ -365,7 +365,7 @@ huntest: hunspell/hunspell-test.txt
# so this is the lesser evil. No perfect solution found so far...
cat hunspell/hunspell-test.txt |$(HUNSPELL) -L -d hunspell/de_DE > $@.tmp 2>&1
@if `grep -q "^0 " $@.tmp`;then echo "Huntest NICHT bestanden:"; cat $@.tmp; exit 1;fi
- @if ! test "`wc -l < $@.tmp`" = "`tail -n 1 $@.tmp | cut -f1 -d:`";then echo "Huntest NICHT bestanden (Zu viele als korrekt erkannte Wörter):"; cat $@.tmp; exit 1;fi
+ @if ! test "`wc -l < $@.tmp | sed 's/^ *//'`" = "`tail -n 1 $@.tmp | cut -f1 -d:`";then echo "Huntest NICHT bestanden (Zu viele als korrekt erkannte Wörter):"; cat $@.tmp; exit 1;fi
###