From: Don Armstrong Date: Fri, 20 Oct 2017 20:09:37 +0000 (-0700) Subject: add missing diff and install files from the hunspell patch X-Git-Tag: debian/2017.08.24-1~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3bd1786b37c493b950f96258e75f5427cf80dc0d;p=deb_pkgs%2Fscowl.git add missing diff and install files from the hunspell patch --- diff --git a/debian/hunspell-en-au.install b/debian/hunspell-en-au.install new file mode 100644 index 0000000..2431636 --- /dev/null +++ b/debian/hunspell-en-au.install @@ -0,0 +1,3 @@ +./speller/en_AU.aff usr/share/hunspell +./speller/en_AU.dic usr/share/hunspell + diff --git a/debian/hunspell-en-ca.install b/debian/hunspell-en-ca.install new file mode 100644 index 0000000..b564b3c --- /dev/null +++ b/debian/hunspell-en-ca.install @@ -0,0 +1,3 @@ +./speller/en_CA.aff usr/share/hunspell +./speller/en_CA.dic usr/share/hunspell + diff --git a/debian/hunspell-en-us.install b/debian/hunspell-en-us.install new file mode 100644 index 0000000..54f004b --- /dev/null +++ b/debian/hunspell-en-us.install @@ -0,0 +1,3 @@ +./speller/en_US.aff usr/share/hunspell +./speller/en_US.dic usr/share/hunspell + diff --git a/debian/patches/no-zips.diff b/debian/patches/no-zips.diff new file mode 100644 index 0000000..9e49b10 --- /dev/null +++ b/debian/patches/no-zips.diff @@ -0,0 +1,39 @@ +Description: avoid worldlist*zip and hunspell*zip for hunspell + Let's not create worldlist*zip and hunspell*zip for hunspell. We are not going + to distribute them or use them in any way. Saves us a zip build-depdency + but more importantly it does not create "binary" files in speller/hunspell + we would need to manually remove it clean. +Author: Rene Engelhard + +--- +Origin: vendor +Forwarded: no +Last-Update: 2017-10-20 + +--- scowl-2017.01.22.orig/speller/make-hunspell-dict ++++ scowl-2017.01.22/speller/make-hunspell-dict +@@ -56,12 +56,8 @@ doit() { + cat $3 >> README_$1.txt + fi + +- rm -f hunspell-$fn.zip +- zip -9 hunspell-$fn.zip README_$1.txt $1.dic $1.aff +- + if [ -z "$3" ]; then + mkdir -p hunspell +- cp hunspell-$fn.zip hunspell/ + + #echo check + +@@ -70,11 +66,6 @@ doit() { + #hunspell -l -d ./$1 < $1.dic.tocheck > misspelled + + cat $1.tocheck | iconv -f iso-8859-1 -t utf-8 | $UNIX2DOS > $1.txt +- cat < README.txt +-This zip file contains the words found in the corresponding Hunspell +-dictionary. See the file README_$1.txt. +-EOF +- zip -9 hunspell/wordlist-$fn.zip README.txt README_$1.txt $1.txt + fi + } +