summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authoragc <agc>1998-01-12 11:16:42 +0000
committeragc <agc>1998-01-12 11:16:42 +0000
commit76c71089d9c35c7777718263281bc1f44cfb8b69 (patch)
tree2cb62c5752c3d4f5f95fcfc4000ceac62e3fd089 /textproc
parentcfa375aa6333ca01c17cef181cc1d53359bf2c15 (diff)
downloadpkgsrc-76c71089d9c35c7777718263281bc1f44cfb8b69.tar.gz
Initial import of ispell-3.1.20, an interactive spelling checker, into
the NetBSD packages collection, from the FreeBSD port.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ispell/Makefile64
-rw-r--r--textproc/ispell/files/md52
-rw-r--r--textproc/ispell/patches/patch-ab30
-rw-r--r--textproc/ispell/pkg/COMMENT1
-rw-r--r--textproc/ispell/pkg/DESCR6
-rw-r--r--textproc/ispell/pkg/PLIST23
-rw-r--r--textproc/ispell/scripts/configure53
7 files changed, 179 insertions, 0 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile
new file mode 100644
index 00000000000..f0d2523bd7d
--- /dev/null
+++ b/textproc/ispell/Makefile
@@ -0,0 +1,64 @@
+# New ports collection makefile for: ispell
+# Version required: 3.1.20
+# Date created: 6 November 1994
+# Whom: jmz
+#
+# FreeBSD Id: Makefile,v 1.21 1997/08/13 23:29:52 jmz Exp
+#
+
+DISTNAME= ispell-3.1
+PKGNAME= ispell-3.1.20
+CATEGORIES= textproc
+MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
+DISTFILES= ispell-3.1.20.tar.gz
+
+MAINTAINER= jmz@FreeBSD.org
+
+MAKE_FLAGS= TMPDIR=${.CURDIR} -f
+MAN1= buildhash.1 findaffix.1 ispell.1 munchlist.1 \
+ sq.1 tryaffix.1 unsq.1
+MAN4= ispell.4 english.4
+
+pre-fetch pre-build pre-install:
+.if !defined(ISPELL_FR)
+ @echo '******************************************************'
+ @echo '* Note that you can build a french/english version *'
+ @echo '* by typing "make french" *'
+ @echo '******************************************************'
+.else
+EXTRA_DICT= francais-IREQ-1.4.tar.gz
+MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/
+DISTFILES+= ${EXTRA_DICT}
+.endif
+
+pre-extract:
+.if !defined(LANG)
+ @echo '******************************************************'
+ @echo '* Note that you can build a british version by *'
+ @echo '* typing "make british" following a "make clean" *'
+ @echo '******************************************************'
+.endif
+
+
+pre-configure:
+.if defined(EXTRA_DICT)
+ @echo ${EXTRA_DICT} > ${WRKDIR}/extra_dict
+.else
+ @echo -n
+.endif
+
+post-configure:
+ @echo "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
+
+british:
+ @echo "Okay, making a british version of ispell...."
+ @${MAKE} ${.MAKEFLAGS} LANG=british all
+
+french:
+ @echo "Okay, making a french/english version of ispell...."
+ @${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes
+
+pre-install:
+ @${MKDIR} ${PREFIX}/share/emacs/site-lisp
+
+.include <bsd.port.mk>
diff --git a/textproc/ispell/files/md5 b/textproc/ispell/files/md5
new file mode 100644
index 00000000000..796ae85972e
--- /dev/null
+++ b/textproc/ispell/files/md5
@@ -0,0 +1,2 @@
+MD5 (ispell-3.1.20.tar.gz) = 92986f940548fe4116428d21b16fd356
+MD5 (francais-IREQ-1.4.tar.gz) = 3871371b0f8e57b554f8895ce3a43b5a
diff --git a/textproc/ispell/patches/patch-ab b/textproc/ispell/patches/patch-ab
new file mode 100644
index 00000000000..1f352c6f6e8
--- /dev/null
+++ b/textproc/ispell/patches/patch-ab
@@ -0,0 +1,30 @@
+--- Makefile.orig Thu Oct 12 20:04:06 1995
++++ Makefile Wed Jun 4 05:05:47 1997
+@@ -253,7 +253,7 @@
+ set -ex; \
+ rm -f $$ELISPDIR/ispell.el; \
+ $$INSTALL ispell.el $$ELISPDIR; \
+- if sh iwhich $$EMACS >/dev/null; then \
++ if sh iwhich ___XXX___$$EMACS >/dev/null; then \
+ echo '(byte-compile-file "'"$$ELISPDIR/ispell.el"'")' \
+ > /tmp/emi$$$$; \
+ $$EMACS -batch -l /tmp/emi$$$$; \
+@@ -508,7 +508,7 @@
+ local.h:
+ set +e; [ -r local.h ] || cp local.h.samp local.h
+
+-msgs.h: config.sh FRC
++msgs.h: config.sh
+ @. ./config.sh; \
+ set $(SHELLDEBUG); \
+ set +e; \
+@@ -522,7 +522,8 @@
+ else \
+ set -x; \
+ rm -f msgs.h; ln $$msgs msgs.h || cp $$msgs msgs.h; \
+- fi
++ fi; \
++ touch msgs.h
+
+ FRC:
+
diff --git a/textproc/ispell/pkg/COMMENT b/textproc/ispell/pkg/COMMENT
new file mode 100644
index 00000000000..753c6d1e0d9
--- /dev/null
+++ b/textproc/ispell/pkg/COMMENT
@@ -0,0 +1 @@
+An interactive spelling checker.
diff --git a/textproc/ispell/pkg/DESCR b/textproc/ispell/pkg/DESCR
new file mode 100644
index 00000000000..1ea398f916b
--- /dev/null
+++ b/textproc/ispell/pkg/DESCR
@@ -0,0 +1,6 @@
+Ispell is a fast screen-oriented spelling checker that shows you your
+errors in the context of the original file, and suggests possible
+corrections when it can figure them out. Compared to UNIX spell, it
+is faster and much easier to use. Ispell can also handle languages
+other than English.
+
diff --git a/textproc/ispell/pkg/PLIST b/textproc/ispell/pkg/PLIST
new file mode 100644
index 00000000000..ccb19b13003
--- /dev/null
+++ b/textproc/ispell/pkg/PLIST
@@ -0,0 +1,23 @@
+bin/buildhash
+bin/findaffix
+bin/icombine
+bin/ijoin
+bin/ispell
+bin/munchlist
+bin/sq
+bin/tryaffix
+bin/unsq
+share/emacs/site-lisp/ispell.el
+lib/american.hash
+lib/americanmed+.hash
+lib/english.aff
+lib/english.hash
+man/man1/buildhash.1.gz
+man/man1/findaffix.1.gz
+man/man1/ispell.1.gz
+man/man1/munchlist.1.gz
+man/man1/sq.1.gz
+man/man1/tryaffix.1.gz
+man/man1/unsq.1.gz
+man/man4/ispell.4.gz
+man/man4/english.4.gz
diff --git a/textproc/ispell/scripts/configure b/textproc/ispell/scripts/configure
new file mode 100644
index 00000000000..23e8e0793fa
--- /dev/null
+++ b/textproc/ispell/scripts/configure
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+if [ "`echo a|sed -e P`" = "aa" ]; then
+ echo You need a newer version of sed. Use sed from -current or gnu sed
+ exit 1
+fi
+if [ ! -f /usr/share/dict/words ]; then
+ echo "you need to install /usr/share/dict/words from the 'dict' distribution first"
+ exit 1
+fi
+cd $WRKSRC || exit 1;
+
+if [ -f $WRKDIR/extra_dict ]; then
+ extra_dict=`cat $WRKDIR/extra_dict`;
+ case $extra_dict in
+ francais-IREQ*)
+ mkdir -p $WRKSRC/languages/francais-IREQ
+ LOCAL=' {francais-IREQ}'
+ for i in $WRKDIR/[A-Za-z]*; do
+ if [ -f $i ]; then cp $i $WRKSRC/languages/francais-IREQ/; fi
+ done
+ (echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo HASH=../../buildhash) \
+ >> $WRKSRC/languages/francais-IREQ/Makefile
+ ;;
+ *)
+ echo "I don't now how to configure ispell with $extra_dict"
+ exit 1;
+ ;;
+ esac
+fi
+
+sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
+echo "#undef NO8BIT" >> local.h
+case $LANG in
+ british)
+ echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=}$LOCAL\"" >>local.h ||exit 1;
+ echo '#define MASTERHASH "britishxlg.hash"' >> local.h
+ break ;;
+ *)
+ echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1;
+ :;;
+esac
+
+echo "#undef WORDS" >> local.h
+echo '#define WORDS "/usr/share/dict/words"' >> local.h
+echo '#undef ELISPDIR' >> local.h
+echo "#define ELISPDIR \"$PREFIX/share/emacs/site-lisp\"" >> local.h
+
+mv Makefile Makefile.orig
+sed -e 's/^[ ]*$/\
+/' <Makefile.orig >Makefile
+
+exit 0;