aboutsummaryrefslogtreecommitdiff
path: root/textproc/ispell/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/ispell/scripts')
-rw-r--r--textproc/ispell/scripts/configure10
1 files changed, 4 insertions, 6 deletions
diff --git a/textproc/ispell/scripts/configure b/textproc/ispell/scripts/configure
index eef66742e868..ad00cb61f210 100644
--- a/textproc/ispell/scripts/configure
+++ b/textproc/ispell/scripts/configure
@@ -12,15 +12,13 @@ cd $WRKSRC || exit 1;
sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
echo "#undef NO8BIT" >> local.h
-case $ISPELL_LANG in
- british)
+if [ ! -z "$ISPELL_BRITISH" ] && \
+ [ "$ISPELL_BRITISH" = "YES" -o "$ISPELL_BRITISH" = "yes" ]; then
echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=}$LOCAL\"" >>local.h ||exit 1;
echo '#define MASTERHASH "britishxlg.hash"' >> local.h
- break ;;
- *)
+ else
echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1;
- :;;
-esac
+ fi
echo "#undef WORDS" >> local.h
echo '#define WORDS "/usr/share/dict/words"' >> local.h