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