summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2021-03-11 07:12:01 +0000
committerwiz <wiz@pkgsrc.org>2021-03-11 07:12:01 +0000
commit88c9f5ebffa434abb6198553826df47221125432 (patch)
tree7d1e442ac3983bfdd15aab4b5d71652095066813 /textproc
parentf3ca10dbd2a1b09a978ee7f2736c95051b0fa2aa (diff)
downloadpkgsrc-88c9f5ebffa434abb6198553826df47221125432.tar.gz
hunspell-de: add workaround for sed(1) problem on NetBSD -current
Diffstat (limited to 'textproc')
-rw-r--r--textproc/hunspell-de/Makefile4
-rw-r--r--textproc/hunspell-de/distinfo3
-rw-r--r--textproc/hunspell-de/patches/patch-Makefile15
3 files changed, 19 insertions, 3 deletions
diff --git a/textproc/hunspell-de/Makefile b/textproc/hunspell-de/Makefile
index b2e176b0358..b91aa4a4ee4 100644
--- a/textproc/hunspell-de/Makefile
+++ b/textproc/hunspell-de/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.25 2020/08/31 18:11:42 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2021/03/11 07:12:01 wiz Exp $
DISTNAME= igerman98-20161207
PKGNAME= ${DISTNAME:S/igerman98/hunspell-de/}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= textproc
MASTER_SITES= https://www.j3e.de/ispell/igerman98/dict/
EXTRACT_SUFX= .tar.bz2
diff --git a/textproc/hunspell-de/distinfo b/textproc/hunspell-de/distinfo
index a30a3b25bfa..b1c0310d6cc 100644
--- a/textproc/hunspell-de/distinfo
+++ b/textproc/hunspell-de/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.14 2016/12/12 14:56:34 wiz Exp $
+$NetBSD: distinfo,v 1.15 2021/03/11 07:12:01 wiz Exp $
SHA1 (igerman98-20161207.tar.bz2) = 2dbbaf220db2fe95142fdc03fc7ecb26df77e456
RMD160 (igerman98-20161207.tar.bz2) = 6c8e460d27af7930af5b457e513316410c8321a6
SHA512 (igerman98-20161207.tar.bz2) = 62be84ac76fd2a0acc25439aa4c04339e54a1c7a2f619d76e0e01cfb53eeeca263c5cc335e315f9adeee9bab5cc392d4c473ca55cbed371c04c123d6fa2272aa
Size (igerman98-20161207.tar.bz2) = 470207 bytes
+SHA1 (patch-Makefile) = 9d1b5c130443b7ba5c1e121996add31c5084d7c7
diff --git a/textproc/hunspell-de/patches/patch-Makefile b/textproc/hunspell-de/patches/patch-Makefile
new file mode 100644
index 00000000000..3818556d3bc
--- /dev/null
+++ b/textproc/hunspell-de/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2021/03/11 07:12:01 wiz Exp $
+
+NetBSD sed as of 20210311 does not support \t. Use plain tab character instead.
+
+--- Makefile.orig 2016-12-06 14:02:53.000000000 +0000
++++ Makefile
+@@ -304,7 +304,7 @@ hunspell-capmain-plus_$(1).tmp: $(AFFIX_
+ ./bin/myspellfixprefix.pl < $$@.unfiltered-list0.tmp | (test -e ./bin/conv_dict_$(1) && ./bin/conv_dict_$(1) || cat) | grep -v '^$$$$' > $$@.unfiltered-list.tmp
+ cat $$@.unfiltered-list.tmp | $(AFFIX_EXPAND_COMMAND) > $$@.unfiltered-list-expanded.tmp
+ $(SED) -f ./bin/dic2iso < $$@.unfiltered-list-expanded.tmp |$(SED) "s/qq//g" | $(NL) | $(HUNSPELL) -d hunspell/$(1)_small -L > $$@.unknown.tmp
+- $(SED) "s/^ *\([0-9]*\)\t.*$$$$/\1/" $$@.unknown.tmp > $$@.list-unknown-lines.tmp
++ $(SED) "s/^ *\([0-9]*\) .*$$$$/\1/" $$@.unknown.tmp > $$@.list-unknown-lines.tmp
+ ./bin/extractlines.pl $$@.list-unknown-lines.tmp $$@.unfiltered-list.tmp > $$@.tmp
+ ./bin/hunspell-capmain $$@.tmp | $(SED) -f ./bin/iso2dic > $$@
+ $(RM_OR_NOT) $$@.unfiltered-list0.tmp $$@.unfiltered-list.tmp $$@.unfiltered-list-expanded.tmp $$@.unknown.tmp $$@.list-unknown-lines.tmp $$@.tmp