mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Add an option to allow both american and british dictionaries.
Submitted by: Timothy Bourke <timbob@bigpond.com>
This commit is contained in:
parent
2798ac3b47
commit
6cc4e2a4b2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163178
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME?= ispell
|
||||
PORTVERSION?= 3.2.06
|
||||
PORTREVISION?= 14
|
||||
PORTREVISION?= 15
|
||||
CATEGORIES+= textproc
|
||||
MASTER_SITES= http://fmg-www.cs.ucla.edu/geoff/tars/ \
|
||||
http://distfiles.opendarwin.org/
|
||||
@ -44,7 +44,8 @@ pre-everything::
|
||||
@${ECHO_MSG} '* Use make-flag: *'
|
||||
# @${ECHO_MSG} '* - Afrikaans ISPELL_AF=yes *'
|
||||
@${ECHO_MSG} '* - British ISPELL_BRITISH=yes *'
|
||||
@${ECHO_MSG} '* (replaces the American dictionary) *'
|
||||
@${ECHO_MSG} '* (replaces the American dictionary, specify also *'
|
||||
@${ECHO_MSG} '* ISPELL_INCLAMERICAN=yes to have both) *'
|
||||
@${ECHO_MSG} '* - Brazilian Portuguese ISPELL_BR=yes *'
|
||||
@${ECHO_MSG} '* - Bulgarian ISPELL_BG=yes *'
|
||||
@${ECHO_MSG} '* - Dutch ISPELL_NL=yes *'
|
||||
@ -63,6 +64,9 @@ pre-everything::
|
||||
.else
|
||||
.if defined(ISPELL_BRITISH)
|
||||
SCRIPTS_ENV+= ISPELL_BRITISH=${ISPELL_BRITISH}
|
||||
.if defined(ISPELL_INCLAMERICAN)
|
||||
SCRIPTS_ENV+= ISPELL_INCLAMERICAN=${ISPELL_INCLAMERICAN}
|
||||
.endif
|
||||
.endif
|
||||
.if defined(ISPELL_IT)
|
||||
ITDISTFILE= ispell-it2001.tgz
|
||||
@ -333,6 +337,9 @@ post-install:
|
||||
.endif
|
||||
.if defined(ISPELL_BRITISH)
|
||||
@${CAT} ${MASTERDIR}/pkg-plist.british >> ${TMPPLIST}
|
||||
.if defined(ISPELL_INCLAMERICAN)
|
||||
@${CAT} ${MASTERDIR}/pkg-plist.am >> ${TMPPLIST}
|
||||
.endif
|
||||
.else
|
||||
@${CAT} ${MASTERDIR}/pkg-plist.am >> ${TMPPLIST}
|
||||
.endif
|
||||
|
6
textproc/ispell/scripts/configure
vendored
6
textproc/ispell/scripts/configure
vendored
@ -14,6 +14,12 @@ cd $WRKSRC || exit 1;
|
||||
|
||||
sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
|
||||
echo "#undef NO8BIT" >> local.h
|
||||
|
||||
if [ ! -z "ISPELL_INCLAMERICAN" ] && \
|
||||
[ "$ISPELL_INCLAMERICAN" = "YES" -o "$ISPELL_INCLAMERICAN" = "yes" ]; then
|
||||
LOCAL="{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}"
|
||||
fi
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user