diff options
author | jmz <jmz@FreeBSD.org> | 1995-03-07 14:41:48 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1995-03-07 14:41:48 +0000 |
commit | 44c6e4fb2f7401c0faf8fd1d6924561553940064 (patch) | |
tree | fe4e3c549e11a7c00877e037053df66fb7b251ec /textproc/ispell/scripts | |
parent | 0c7620c26c3c4d1c8957fdab9abf50030497d329 (diff) | |
download | FreeBSD-ports-44c6e4fb2f7401c0faf8fd1d6924561553940064.zip FreeBSD-ports-44c6e4fb2f7401c0faf8fd1d6924561553940064.tar.gz |
Add support for french dictionary
Diffstat (limited to 'textproc/ispell/scripts')
-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 8d52011..4020ad6 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/^[ ]*$/\ |