summaryrefslogtreecommitdiff
path: root/textproc/ispell
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>1995-03-07 14:41:48 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>1995-03-07 14:41:48 +0000
commit8d7f9951a64c6116e29e569479e52a55b73a88a9 (patch)
tree146d2dbff225d661fa828ed773b40d012e3fc0af /textproc/ispell
parentAdded chown bin.bin to the lock dir. (diff)
Add support for french dictionary
Notes
Notes: svn path=/head/; revision=1108
Diffstat (limited to 'textproc/ispell')
-rw-r--r--textproc/ispell/Makefile14
-rw-r--r--textproc/ispell/scripts/configure21
2 files changed, 33 insertions, 2 deletions
diff --git a/textproc/ispell/Makefile b/textproc/ispell/Makefile
index 0356834154c9..4dbc48c2c8f4 100644
--- a/textproc/ispell/Makefile
+++ b/textproc/ispell/Makefile
@@ -1,9 +1,21 @@
DISTFILES= ispell-3.1.18.tar.gz
DISTNAME= ispell-3.1
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
-
MAKE_FLAGS= TMPDIR=${.CURDIR} -f
+# French
+#EXTRA_DICT= francais-IREQ-1.2.tar.gz
+#MASTER_SITES+= ftp://ftp.ireq-robot.hydro.qc.ca/pub/ispell/
+
+DISTFILES+= ${EXTRA_DICT}
+
+pre-configure:
+.if defined(EXTRA_DICT)
+ @echo ${EXTRA_DICT} > ${WRKDIR}/extra_dict
+.else
+ @echo -n
+.endif
+
pre-install:
@mkdir -p ${PREFIX}/bin
@mkdir -p ${PREFIX}/lib
diff --git a/textproc/ispell/scripts/configure b/textproc/ispell/scripts/configure
index 8d520117a329..4020ad6b683e 100644
--- a/textproc/ispell/scripts/configure
+++ b/textproc/ispell/scripts/configure
@@ -6,8 +6,27 @@ if [ "`echo a|sed -e P`" = "aa" ]; then
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 '#define LANGUAGES "{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}"' >>local.h ||exit 1;
+echo "#undef NO8BIT" >> local.h
+echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1;
mv Makefile Makefile.orig
sed -e 's/^[ ]*$/\