diff options
Diffstat (limited to 'textproc/ispell/files')
-rw-r--r-- | textproc/ispell/files/AF.patch | 11 | ||||
-rw-r--r-- | textproc/ispell/files/BR.patch | 52 | ||||
-rw-r--r-- | textproc/ispell/files/DA.patch | 28 | ||||
-rw-r--r-- | textproc/ispell/files/DENEU.makefile | 10 | ||||
-rw-r--r-- | textproc/ispell/files/DENEU.patch | 31 | ||||
-rw-r--r-- | textproc/ispell/files/ES.patch | 20 | ||||
-rw-r--r-- | textproc/ispell/files/FR.patch | 26 | ||||
-rw-r--r-- | textproc/ispell/files/IT.patch | 12 | ||||
-rw-r--r-- | textproc/ispell/files/NL.patch | 11 | ||||
-rw-r--r-- | textproc/ispell/files/NO.patch | 65 | ||||
-rw-r--r-- | textproc/ispell/files/SE.patch | 17 | ||||
-rw-r--r-- | textproc/ispell/files/patch-aa | 17 | ||||
-rw-r--r-- | textproc/ispell/files/patch-ab | 11 | ||||
-rw-r--r-- | textproc/ispell/files/patch-ispell.1X | 53 | ||||
-rw-r--r-- | textproc/ispell/files/patch-ispell.c | 108 | ||||
-rw-r--r-- | textproc/ispell/files/patch-ispell.h | 10 | ||||
-rw-r--r-- | textproc/ispell/files/patch-term.c | 108 | ||||
-rw-r--r-- | textproc/ispell/files/unsq.pl | 85 |
18 files changed, 0 insertions, 675 deletions
diff --git a/textproc/ispell/files/AF.patch b/textproc/ispell/files/AF.patch deleted file mode 100644 index 9443efc08a3f..000000000000 --- a/textproc/ispell/files/AF.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- ispell-sa-1.0.0/Makefile.orig Wed Jan 10 12:52:01 2001 -+++ ispell-sa-1.0.0/Makefile Wed Jan 10 12:52:16 2001 -@@ -7,7 +7,7 @@ - install -o root -g root -m 0644 afrikaans.aff $(installdir) - - afrikaans.hash: afrikaans.aff woordelys -- buildhash woordelys afrikaans.aff afrikaans.hash -+ ${BUILDHASH} woordelys afrikaans.aff afrikaans.hash - - clean: - rm -f woordelys.stat afrikaans.hash woordelys.cnt *~ diff --git a/textproc/ispell/files/BR.patch b/textproc/ispell/files/BR.patch deleted file mode 100644 index 888bb2c13cd4..000000000000 --- a/textproc/ispell/files/BR.patch +++ /dev/null @@ -1,52 +0,0 @@ ---- Makefile.orig Mon Oct 18 19:15:22 1999 -+++ Makefile Thu Feb 10 17:04:59 2000 -@@ -16,12 +16,11 @@ - # VDIR - aqui será colocado o banco de verbos - # MANDIR - aqui será colocada a man page do conjugue - # --prefix=/usr/local --BINDIR=$(prefix)/bin --HASHDIR=/usr/lib/ispell --VDIR=$(prefix)/lib --MANDIR=$(prefix)/man --AWK=/usr/bin/gawk -+BINDIR=$(PREFIX)/bin -+HASHDIR=$(PREFIX)/lib -+VDIR=$(PREFIX)/lib -+MANDIR=$(PREFIX)/man -+AWK=/usr/bin/awk - - # - # Daqui para baixo não mexa mais em nada -@@ -66,25 +65,21 @@ - br.hash: v.ispell - cat v.ispell E.ispell|sort|uniq >br.tmp - mv -f br.tmp br.ispell -- buildhash br.ispell br.aff br.hash -+ ${BUILDHASH} br.ispell br.aff br.hash - - # - # Instala o br.hash - # --install-hash: br.ispell -- install -d $(HASHDIR) -- install --mode=644 br.hash br.aff $(HASHDIR) -+install-hash: br.hash -+ ${BSD_INSTALL_DATA} br.hash br.aff $(HASHDIR) - - # - # Instala o conjugue - # - install-conjugue: conjugue -- install -d $(BINDIR) -- install --mode=755 conjugue $(BINDIR)/conjugue -- install -d $(VDIR) -- install --mode=644 verbos $(VDIR)/verbos -- install -d $(MANDIR)/man1 -- install --mode=644 conjugue.1 $(MANDIR)/man1/conjugue.1 -+ ${BSD_INSTALL_SCRIPT} conjugue $(BINDIR) -+ ${BSD_INSTALL_DATA} verbos $(VDIR) -+ ${BSD_INSTALL_MAN} conjugue.1 $(MANDIR)/man1 - - # - # instala tudo diff --git a/textproc/ispell/files/DA.patch b/textproc/ispell/files/DA.patch deleted file mode 100644 index 64f61ad4e749..000000000000 --- a/textproc/ispell/files/DA.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- ispell-da-1.7.31/Makefile.orig 2010-01-21 12:03:30.000000000 +0100 -+++ ispell-da-1.7.31/Makefile 2010-01-21 12:04:02.000000000 +0100 -@@ -9,13 +9,13 @@ - lang=da - version=1.7.31 - --installdir=`ispell -vv | grep LIBDIR | cut -d'"' -f2` -+installdir=`${ISPELL} -vv | grep LIBDIR | cut -d'"' -f2` - - all: maskbits $(sprog).hash - - maskbits: -- @test "`ispell -vv | grep MASKBITS`" != "" || ( echo Ispell should be compiled with MASKBITS set to at least 64. ; exit -2 ) -- @test `ispell -vv | grep MASKBITS | cut -d= -f2` -ge 64 || ( echo Ispell should be compiled with MASKBITS set to at least 64. ; exit -3 ) -+ @test "`${ISPELL} -vv | grep MASKBITS`" != "" || ( echo Ispell should be compiled with MASKBITS set to at least 64. ; exit -2 ) -+ @test `${ISPELL} -vv | grep MASKBITS | cut -d= -f2` -ge 64 || ( echo Ispell should be compiled with MASKBITS set to at least 64. ; exit -3 ) - - install: maskbits $(sprog).hash $(sprog).aff - install -o root -g root -m 0644 $(sprog).hash $(installdir) -@@ -26,7 +26,7 @@ - ln -fs $(installdir)/$(sprog).aff $(installdir)/$(sprog_en_lower_case).aff - - $(sprog).hash: maskbits $(sprog).aff words-$(language_code).ispell -- buildhash words-$(language_code).ispell $(sprog).aff $(sprog).hash -+ ${BUILDHASH} words-$(language_code).ispell $(sprog).aff $(sprog).hash - - clean: - rm -f words-$(language_code).ispell.stat $(sprog).hash words-$(language_code).ispell.cnt *~ diff --git a/textproc/ispell/files/DENEU.makefile b/textproc/ispell/files/DENEU.makefile deleted file mode 100644 index a587050fbcfa..000000000000 --- a/textproc/ispell/files/DENEU.makefile +++ /dev/null @@ -1,10 +0,0 @@ - - -german.hash: - gmake ispell/de_DE.aff ispell/de_DE.hash - cp ispell/de_DE.hash german.hash - cp ispell/de_DE.aff german.aff - -install: - gmake install - diff --git a/textproc/ispell/files/DENEU.patch b/textproc/ispell/files/DENEU.patch deleted file mode 100644 index e88e5bcc9cfc..000000000000 --- a/textproc/ispell/files/DENEU.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- Makefile.orig 2007-12-11 15:52:44.000000000 +0100 -+++ Makefile 2008-04-01 15:44:16.000000000 +0200 -@@ -62,16 +62,16 @@ - #ZIP_OPTS = -j -r -9 -X - ZIP = 7z - ZIP_OPTS = a -tzip -mx=9 --BUILDHASH = buildhash -+BUILDHASH = ../ispell-3.3.02/buildhash - --ISPELL = ispell -+ISPELL = ../ispell-3.3.02/ispell - HUNSPELL_BIN = hunspell - # Hunspell starting with 1.1.9 (?) uses automatic charset transcoding, - # we need to make sure we use latin1: - HUNSPELL = $(HUNSPELL_BIN) `$(HUNSPELL_BIN) -h 2>&1 | grep -q "hunspell \\-i" && echo "-i latin1"` - - SQ = sq --UNSQ = unsq -+UNSQ = ../ispell-3.3.02/unsq - # if for some reason you don't have Ispell's unsq use my Perl sq/unsq - # and put it into a directory known by your PATH variable! - #UNSQ = unsq.pl -@@ -113,7 +113,7 @@ - $$(BUILDHASH) all.words.$(1).tmp ./ispell/$(1).aff $$@ - - all.words.$(1).tmp: all.words.$(1).raw ispell/$(1).aff -- munchlist -l ./ispell/$(1).aff all.words.$(1).raw > $$@ -+ ../ispell-3.3.02/munchlist -l ./ispell/$(1).aff all.words.$(1).raw > $$@ - - all.words.$(1).raw: $$(WORDS_$(1)) $$(WORDS_de_all) dicts/abkuerzpunkt.txt - sed "s/qq//g;s/\.//;s/\-.*//" dicts/abkuerzpunkt.txt $$(WORDS_$(1)) $$(WORDS_de_all) \ diff --git a/textproc/ispell/files/ES.patch b/textproc/ispell/files/ES.patch deleted file mode 100644 index 182971346db1..000000000000 --- a/textproc/ispell/files/ES.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- espa~nol-1.10/Makefile.orig 2008-07-05 16:49:20.000000000 -0500 -+++ espa~nol-1.10/Makefile 2008-07-05 16:51:23.000000000 -0500 -@@ -54,7 +54,7 @@ - MAKE = make - - PATHADDER = ../.. --BUILDHASH = buildhash -+BUILDHASH = %%BH%% - UNSQ = unsq - FIX8BIT = fix8bit - -@@ -79,7 +79,7 @@ - - $(HASHFILE): $(AFFIXES) $(DICTIONARY) - rm -f $(HASHFILE) -- munchlist -v -l $(AFFIXES) $(DICTIONARY) > $(LANGUAGE).words+ -+ %%MH%% -v -l $(AFFIXES) $(DICTIONARY) > $(LANGUAGE).words+ - $(BUILDHASH) $(LANGUAGE).words+ $(AFFIXES) $(HASHFILE) - - build: diff --git a/textproc/ispell/files/FR.patch b/textproc/ispell/files/FR.patch deleted file mode 100644 index 4f3a6f68215b..000000000000 --- a/textproc/ispell/files/FR.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- francais-IREQ/Makefile.old Fri Dec 31 10:23:00 1999 -+++ francais-IREQ/Makefile Fri Dec 31 10:27:35 1999 -@@ -13,10 +13,10 @@ - #------------------------------------------------------------------------------ - - # Prendre soin de bien définir cette variable: --LIBDIR = /depot/public/lib/ispell -+LIBDIR = ${PREFIX}/lib - - # Il peut être requis de changer celle-ci aussi: --HASH = $(LIBDIR)/buildhash -+HASH=${BUILDHASH} - - # buildict n'est pas requis pour l'utilisation de francais-IREQ, - # mais si vous décidez de modifier le dictionnaire, la variable suivante -@@ -48,8 +48,8 @@ - > $@' - - francais.hash: francais.dico -- $(RM) francais.dico.cnt francais.dico.stat -- $(HASH) francais.dico $(AFFIXES) francais.hash -+ @rm -f francais.dico.cnt francais.dico.stat -+ @${HASH} francais.dico $(AFFIXES) francais.hash - - install: francais.hash - install francais.hash $(LIBDIR) diff --git a/textproc/ispell/files/IT.patch b/textproc/ispell/files/IT.patch deleted file mode 100644 index 4b433d231dba..000000000000 --- a/textproc/ispell/files/IT.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- ispell-it/Makefile.orig Sun Apr 21 16:28:51 2002 -+++ ispell-it/Makefile Sun Apr 21 16:29:01 2002 -@@ -1,7 +1,7 @@ - SHELL = /bin/sh - MAKE = make --BUILDHASH = buildhash --MUNCHLIST = munchlist -+BUILDHASH = %%BH%% -+MUNCHLIST = %%MH%% - LANGUAGE = italian - AFFIXES = $(LANGUAGE).aff - DICTIONARY = $(LANGUAGE).words diff --git a/textproc/ispell/files/NL.patch b/textproc/ispell/files/NL.patch deleted file mode 100644 index 9b8c904bf0d1..000000000000 --- a/textproc/ispell/files/NL.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- ispell-nl-1.0.0/Makefile.orig Tue Jan 9 16:50:24 2001 -+++ ispell-nl-1.0.0/Makefile Tue Jan 9 16:50:41 2001 -@@ -9,7 +9,7 @@ - install -o root -g root -m 0644 nederlands.aff $(installdir) - - nederlands.hash: nederlands.aff words-nl.ispell -- buildhash words-nl.ispell nederlands.aff nederlands.hash -+ ${BUILDHASH} words-nl.ispell nederlands.aff nederlands.hash - - clean: - rm -f words-nl.ispell.stat nederlands.hash words-nl.ispell.cnt *~ diff --git a/textproc/ispell/files/NO.patch b/textproc/ispell/files/NO.patch deleted file mode 100644 index 11b5d573335c..000000000000 --- a/textproc/ispell/files/NO.patch +++ /dev/null @@ -1,65 +0,0 @@ ---- Makefile.orig Tue Sep 5 23:50:30 2000 -+++ Makefile Sat Mar 31 14:57:58 2001 -@@ -8,9 +8,9 @@ - SHELL = /bin/sh - MAKE = make - --CONFIG = ../../config.sh --PATHADDER = ../.. --BUILDHASH = ../../buildhash -+CONFIG = ../ispell-3.1/config.sh -+PATHADDER = ../ispell-3.1 -+BUILDHASH ?= ../ispell-3.1/buildhash - - # The following variables make it easy to adapt this Makefile to - # numerous languages. -@@ -269,7 +269,7 @@ - echo -e 'suffixes\nflag *z:\nY Y Y Y Y > YYYYYY' >> $@ - - norsk.words: norsk.words.sq -- unsq < norsk.words.sq > norsk.words -+ $(UNSQ) < norsk.words.sq > norsk.words - - # The following ugly code munches a part of the base file, keeping the - # indications of the frequency of the words. It also removes some -@@ -292,19 +292,23 @@ - # Nasty bug, and very silent. - PATH=$(PATHADDER):$$PATH; \ - export PATH; \ -+ TMPDIR=/tmp; \ -+ export TMPDIR; \ - ${CATNOHEADER} \ - | grep -e '$(subst munched.,,$@)$$' \ - | sed -e 's/ .*//' -e 's/-/î/g' -e 's/ \*//' \ - | grep '^[${UCH}]' \ -- | munchlist -v -l ${AFFIXES}.munch \ -+ | $(MUNCHLIST) -v -l ${AFFIXES}.munch \ - > munch1.tmp - PATH=$(PATHADDER):$$PATH; \ - export PATH; \ -+ TMPDIR=/tmp; \ -+ export TMPDIR; \ - ${CATNOHEADER} \ - | grep -e '$(subst munched.,,$@)$$' \ - | sed -e 's/ .*//' -e 's/-/î/g' -e 's/ \*//' \ - | grep -v '^[${UCH}]' \ -- | munchlist -v -l ${AFFIXES}.munch \ -+ | $(MUNCHLIST) -v -l ${AFFIXES}.munch \ - >> munch1.tmp - cat munch1.tmp \ - | sed -e 's/\(zyzyzy\|ZYZYZY\)/\1\/\` /' \ -@@ -459,11 +463,13 @@ - nynorsk.mch: norsk.words ny${AFFIXES}.munch - PATH=$(PATHADDER):$$PATH; \ - export PATH; \ -+ TMPDIR=/tmp; \ -+ export TMPDIR; \ - ${CATNOHEADER} \ - | grep '\*' \ - | sed -e 's/ .*//' \ - | tr -d '-' \ -- | munchlist -v -l ny${AFFIXES}.munch \ -+ | $(MUNCHLIST) -v -l ny${AFFIXES}.munch \ - | sed -e N -e 's/^\(\([-${CH}]\)*\)er\/\(.*F.*\)\n\1rar\/M$$/\1er\/\3D/' \ - -e '$$ p' -e '$$ d' -e P -e D \ - > $@ diff --git a/textproc/ispell/files/SE.patch b/textproc/ispell/files/SE.patch deleted file mode 100644 index 75d9bd56041b..000000000000 --- a/textproc/ispell/files/SE.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- iswedish-1.2.1/Makefile.orig Fri Dec 31 11:32:49 1999 -+++ iswedish-1.2.1/Makefile Fri Dec 31 11:33:14 1999 -@@ -1,4 +1,5 @@ - installdir=/usr/lib/ispell -+BUILDHASH=../ispell-3.1/buildhash - - all: svenska.hash - -@@ -7,7 +8,7 @@ - install -o root -g root -m 0644 svenska.aff $(installdir) - - svenska.hash: svenska.aff svenska.datalista -- buildhash svenska.datalista svenska.aff svenska.hash -+ ${BUILDHASH} svenska.datalista svenska.aff svenska.hash - - clean: - rm -f svenska.datalista.stat svenska.hash svenska.datalista.cnt *~ diff --git a/textproc/ispell/files/patch-aa b/textproc/ispell/files/patch-aa deleted file mode 100644 index 10afd57e634a..000000000000 --- a/textproc/ispell/files/patch-aa +++ /dev/null @@ -1,17 +0,0 @@ ---- config.X.orig Wed Jul 25 23:51:45 2001 -+++ config.X Thu Mar 25 19:54:53 2004 -@@ -168,9 +168,11 @@ - - #include <sys/param.h> - #include <sys/types.h> --#ifndef USG --#include <sys/dir.h> --#endif /* USG */ -+ -+/* Support MAXNAMLEN greater than 14 on FreeBSD; this is not in -+ * sys/param.h for obvious reasons. -+ */ -+#include <dirent.h> - - /* - ** Things that normally go in a Makefile. Define these just like you diff --git a/textproc/ispell/files/patch-ab b/textproc/ispell/files/patch-ab deleted file mode 100644 index f27b79a2709f..000000000000 --- a/textproc/ispell/files/patch-ab +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile~ Thu Jun 7 21:06:33 2001 -+++ Makefile Fri Jun 22 23:36:46 2001 -@@ -474,7 +474,7 @@ - set +e; \ - [ -r local.h ] || (cp local.h.samp local.h; chmod u+w local.h) - --msgs.h: config.sh FRC -+msgs.h: config.sh - @. ./config.sh; \ - set $(SHELLDEBUG); \ - set +e; \ diff --git a/textproc/ispell/files/patch-ispell.1X b/textproc/ispell/files/patch-ispell.1X deleted file mode 100644 index 2c9158f903f7..000000000000 --- a/textproc/ispell/files/patch-ispell.1X +++ /dev/null @@ -1,53 +0,0 @@ ---- ispell.1X.orig Wed Jul 25 17:51:46 2001 -+++ ispell.1X Sat Feb 22 14:51:32 2003 -@@ -106,7 +106,7 @@ - .\" - .TH ISPELL 1 local - .SH NAME --ispell, buildhash, munchlist, findaffix, tryaffix, icombine, ijoin \- Interactive -+ispell, spell, buildhash, munchlist, findaffix, tryaffix, icombine, ijoin \- Interactive - spelling checking - .SH SYNOPSIS - .B ispell -@@ -148,6 +148,11 @@ - .br - .B ispell - .BR \-v [ v ] -+.br -+.B ispell -+.BR \-u -+.RB [ files ] -+.br - .IP \fIcommon-flags\fP: - .RB [ \-t ] - .RB [ \-n ] -@@ -174,6 +179,9 @@ - .RB [ \-F - .IR program ] - .PP -+.B spell -+.RB [ files ] -+.PP - .B buildhash - .RB [ \-s ] - .I -@@ -737,6 +745,19 @@ - or "list" option to - .I ispell - is used to produce a list of misspelled words from the standard input. -+.PP -+The -+.B \-u -+option to -+.I ispell -+provides backwards compatibility with the Unix spell command. -+When -+.I ispell -+is invoked as -+.I spell -+the -+.B \-u -+option is implied. - .PP - The - .B \-a diff --git a/textproc/ispell/files/patch-ispell.c b/textproc/ispell/files/patch-ispell.c deleted file mode 100644 index 3af7e8bd12c8..000000000000 --- a/textproc/ispell/files/patch-ispell.c +++ /dev/null @@ -1,108 +0,0 @@ ---- ispell.c.orig 2005-05-25 09:13:53.000000000 -0500 -+++ ispell.c 2008-07-04 12:12:02.000000000 -0500 -@@ -235,6 +235,7 @@ - #include <fcntl.h> - #endif /* NO_FCNTL_H */ - #include <sys/stat.h> -+#include <libgen.h> - - static void usage P ((void)); - int main P ((int argc, char * argv[])); -@@ -272,6 +273,7 @@ - char ** versionp; - char * wchars = NULL; - char * preftype = NULL; -+ char * cmdname; - static char libdictname[sizeof DEFHASH]; - char logfilename[MAXPATHLEN]; - static char outbuf[BUFSIZ]; -@@ -280,6 +282,11 @@ - - Cmd = *argv; - -+ cmdname = (char *)basename(argv[0]); -+ if (strncmp(cmdname, "spell", 5) == 0) { -+ uflag++; -+ } -+ - Trynum = 0; - - p = getenv (LIBRARYVAR); -@@ -851,6 +858,11 @@ - LibDict = p + 1; - } - break; -+ case 'u': -+ if (arglen > 2) -+ usage (); -+ uflag++; -+ break; - case 'V': /* Display 8-bit characters as M-xxx */ - if (arglen > 2) - usage (); -@@ -886,7 +898,7 @@ - argc--; - } - -- if (!argc && !lflag && !aflag && !eflag && !dumpflag) -+ if (!argc && !lflag && !aflag && !eflag && !dumpflag && !uflag) - { - if (argc != 0) - usage (); -@@ -907,7 +919,7 @@ - if (access (argv[argno], R_OK) >= 0) - break; - } -- if (argno >= argc && !lflag && !aflag && !eflag && !dumpflag) -+ if (argno >= argc && !lflag && !aflag && !eflag && !dumpflag && !uflag) - { - (void) fprintf (stderr, - argc == 1 ? ISPELL_C_NO_FILE : ISPELL_C_NO_FILES); -@@ -988,9 +1000,9 @@ - exit (0); - } - --#ifndef __bsdi__ -+#ifndef BSD4_4 - setbuf (stdout, outbuf); --#endif /* __bsdi__ */ -+#endif /* BSD4_4 */ - if (lflag) - { - infile = setupdefmt(NULL, NULL); -@@ -999,6 +1011,35 @@ - exit (0); - } - -+ if (uflag) -+ { -+ lflag++; -+ if (!argc) -+ { -+ infile = setupdefmt(NULL, NULL); -+ outfile = stdout; -+ checkfile (); -+ exit (0); -+ } -+ else -+ { -+ while (argc--) -+ { -+ if ((infile = setupdefmt (*argv, NULL)) == NULL) -+ { -+ (void) fprintf (stderr, CANT_OPEN, *argv); -+ (void) sleep ((unsigned) 2); -+ } else { -+ outfile = stdout; -+ checkfile (); -+ (void) fclose (infile); -+ } -+ argv++; -+ } -+ exit (0); -+ } -+ } -+ - /* - * If there is a log directory, open a log file. If the open - * fails, we just won't log. diff --git a/textproc/ispell/files/patch-ispell.h b/textproc/ispell/files/patch-ispell.h deleted file mode 100644 index 534477727137..000000000000 --- a/textproc/ispell/files/patch-ispell.h +++ /dev/null @@ -1,10 +0,0 @@ ---- ispell.h.orig Sat Feb 22 13:53:04 2003 -+++ ispell.h Sat Feb 22 14:11:29 2003 -@@ -702,6 +702,7 @@ - INIT (int deftflag, -1); /* Default deformatting mode, chosen */ - /* ..from DEFORMAT_* values */ - INIT (int tflag, DEFTEXFLAG); /* Deformatting for current file */ -+INIT (int uflag, 0); /* NZ if -u (spell compat) option */ - INIT (int prefstringchar, -1); /* Preferred string character type */ - - INIT (int insidehtml, 0); /* Flag to indicate we're amid HTML */ diff --git a/textproc/ispell/files/patch-term.c b/textproc/ispell/files/patch-term.c deleted file mode 100644 index 7f25ea9a1f3c..000000000000 --- a/textproc/ispell/files/patch-term.c +++ /dev/null @@ -1,108 +0,0 @@ ---- term.c.orig 2008-07-04 11:42:14.000000000 -0500 -+++ term.c 2008-07-04 11:55:44.000000000 -0500 -@@ -86,8 +86,12 @@ - #include "ispell.h" - #include "proto.h" - #include "msgs.h" -+#ifdef BSD4_4 -+#define USG -+#endif - #ifdef USG --#include <termio.h> -+#include <unistd.h> -+#include <termios.h> - #else - #ifndef __DJGPP__ - #include <sgtty.h> -@@ -166,8 +170,8 @@ - } - - #ifdef USG --static struct termio sbuf; --static struct termio osbuf; -+static struct termios sbuf; -+static struct termios osbuf; - #else - static struct sgttyb sbuf; - static struct sgttyb osbuf; -@@ -276,7 +280,7 @@ - (void) fprintf (stderr, TERM_C_NO_BATCH); - exit (1); - } -- (void) ioctl (0, TCGETA, (char *) &osbuf); -+ tcgetattr(STDIN_FILENO, &osbuf); - termchanged = 1; - - sbuf = osbuf; -@@ -285,7 +289,7 @@ - sbuf.c_iflag &= ~(INLCR | IGNCR | ICRNL); - sbuf.c_cc[VMIN] = 1; - sbuf.c_cc[VTIME] = 1; -- (void) ioctl (0, TCSETAW, (char *) &sbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &sbuf); - - uerasechar = osbuf.c_cc[VERASE]; - ukillchar = osbuf.c_cc[VKILL]; -@@ -373,7 +377,7 @@ - if (te) - tputs (te, 1, iputch); - #ifdef USG -- (void) ioctl (0, TCSETAW, (char *) &osbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &osbuf); - #else - (void) ioctl (0, TIOCSETP, (char *) &osbuf); - #ifdef TIOCSLTC -@@ -394,7 +398,7 @@ - if (te) - tputs (te, 1, iputch); - #ifdef USG -- (void) ioctl (0, TCSETAW, (char *) &osbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &osbuf); - #else - (void) ioctl (0, TIOCSETP, (char *) &osbuf); - #ifdef TIOCSLTC -@@ -413,7 +417,7 @@ - if (termchanged) - { - #ifdef USG -- (void) ioctl (0, TCSETAW, (char *) &sbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &sbuf); - #else - (void) ioctl (0, TIOCSETP, (char *) &sbuf); - #ifdef TIOCSLTC -@@ -481,7 +485,7 @@ - argv[i] = NULL; - - #ifdef USG -- (void) ioctl (0, TCSETAW, (char *) &osbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &osbuf); - #else - (void) ioctl (0, TIOCSETP, (char *) &osbuf); - #ifdef TIOCSLTC -@@ -527,7 +531,7 @@ - #endif - - #ifdef USG -- (void) ioctl (0, TCSETAW, (char *) &sbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &sbuf); - #else - (void) ioctl (0, TIOCSETP, (char *) &sbuf); - #ifdef TIOCSLTC -@@ -563,7 +567,7 @@ - #endif - - #ifdef USG -- (void) ioctl (0, TCSETAW, (char *) &osbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &osbuf); - #else - (void) ioctl (0, TIOCSETP, (char *) &osbuf); - #ifdef TIOCSLTC -@@ -611,7 +615,7 @@ - #endif - - #ifdef USG -- (void) ioctl (0, TCSETAW, (char *) &sbuf); -+ tcsetattr(STDIN_FILENO, TCSANOW, &sbuf); - #else - (void) ioctl (0, TIOCSETP, (char *) &sbuf); - #ifdef TIOCSLTC diff --git a/textproc/ispell/files/unsq.pl b/textproc/ispell/files/unsq.pl deleted file mode 100644 index 6134c75c3eb6..000000000000 --- a/textproc/ispell/files/unsq.pl +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/perl - -# sq(eeze) / unsq(eeze) - pre-compressor for sorted word lists -# Copyright (C) 2000 Björn Jacke <bjoern.jacke@gmx.de> -# -# This program comes with ABSOLUTELY NO WARRANTY; it may be copied or modified -# under the terms of the GNU General Public License version 2 as published -# by the Free Software Foundation. - -# This is a `multi-call-program'. If it's called as `unsq' or `unsq.pl' -# it decompresses -- otherwise it is in compress mode. Input and Output only -# via STDIN and STDOUT. It does almost the same job as the sq/unsq from -# Ispell -- just better ;-) -# -# PS: For best compression results use POSIX sorting order in spite of any -# other locale-depending sorting order (set LC_ALL and LC_COLLATE to POSIX) - -# version 1.2 - - -@size_arr = qw(0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J - K L M N O P Q R S T U V W X Y Z a b c d - e f g h i j k l m n o p q r s t u v w x y z); -$MAX_PREFIX = $#size_arr; - - -sub trunc { - - if ($word eq $prev) { - $same = length($word); - } - else { - $same = 0; - while (substr($word,$same,1) eq substr($prev,$same,1)) { - $same++; - } - } - - if ($same > $MAX_PREFIX) { - $same = $MAX_PREFIX; - } - - print STDOUT $size_arr[$same], substr($word,$same); - - $prev = $word; -} - - -sub expand { - - # keep relevant part of previous word: - $prev = substr($prev, 0, $to_num{substr($word,0,1)} ); - # strip first (meta)-character from word: - $word = substr($word,1); - # concatenate new word and name it prev ... - $prev = "$prev$word"; - print STDOUT $prev; -} - - - -###### main ###### - -$0 =~ s/.*?unsq(\.pl)?$/unsq/i; - -$prev = ""; - - -if ($0 eq "unsq") { - - $i = 0; - foreach (@size_arr) { - $to_num{$_} = $i++; - } - $do_it = \&expand; -} - -else { - $do_it = \&trunc; -} - - -while ($word = <STDIN>) { - &$do_it; -} |