diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 1995-03-07 14:41:48 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 1995-03-07 14:41:48 +0000 |
commit | 8d7f9951a64c6116e29e569479e52a55b73a88a9 (patch) | |
tree | 146d2dbff225d661fa828ed773b40d012e3fc0af /textproc/ispell/scripts/configure | |
parent | Added chown bin.bin to the lock dir. (diff) |
Add support for french dictionary
Notes
Notes:
svn path=/head/; revision=1108
Diffstat (limited to '')
-rw-r--r-- | textproc/ispell/scripts/configure | 21 |
1 files changed, 20 insertions, 1 deletions
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/^[ ]*$/\ |