- fix installation for French language by adding a separate PLIST
- add German language support -- Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
This commit is contained in:
parent
c4bcdffc5e
commit
b679a0f173
@ -1,31 +1,44 @@
|
||||
# $OpenBSD: Makefile,v 1.6 1999/06/21 04:07:05 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 1999/06/21 23:17:01 brad Exp $
|
||||
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
|
||||
|
||||
NEED_VERSION= 1.89
|
||||
|
||||
FRENCH_DICT= francais-IREQ-1.4
|
||||
GERMAN_DICT= hk2-deutch
|
||||
|
||||
DISTNAME= ispell-3.1.20
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
|
||||
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/ \
|
||||
ftp://ftp.robot.ireq.ca/pub/ispell/ \
|
||||
ftp://ftp.informatik.uni-kiel.de/pub/kiel/dicts/
|
||||
SUPDISTFILES= ${DISTNAME}.tar.gz ${FRENCH_DICT}.tar.gz ${GERMAN_DICT}.tar.gz
|
||||
|
||||
PATCH_SITES= ftp://ftp.kiarchive.ru/pub/unix/text/ispell/
|
||||
PATCHFILES= ispell-html-mode.patch
|
||||
|
||||
MAINTAINER= ports@openbsd.org
|
||||
|
||||
WRKSRC= ${WRKDIR}/ispell-3.1
|
||||
|
||||
MAKE_FLAGS= TMPDIR=${WRKDIR} -f
|
||||
|
||||
WRKSRC= ${WRKDIR}/ispell-3.1
|
||||
|
||||
pre-fetch pre-build pre-install:
|
||||
.if !defined(NO_WARNINGS)
|
||||
.if !defined(ISPELL_FR)
|
||||
.if !defined(ISPELL_FR) && !defined(ISPELL_DE)
|
||||
@${ECHO} '******************************************************'
|
||||
@${ECHO} '* Note that you can build a french/english version *'
|
||||
@${ECHO} '* by typing "make french" *'
|
||||
@${ECHO} '* Note that you can build a french/english or a *'
|
||||
@${ECHO} '* german/english version by setting the shell *'
|
||||
@${ECHO} '* variable ISPELL_FR or ISPELL_DE" *'
|
||||
@${ECHO} '******************************************************'
|
||||
.else
|
||||
EXTRA_DICT= francais-IREQ-1.4.tar.gz
|
||||
MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/
|
||||
DISTFILES+= ${EXTRA_DICT}
|
||||
.endif
|
||||
.elif defined(ISPELL_FR)
|
||||
EXTRA_DICT= ${FRENCH_DICT}.tar.gz
|
||||
DISTFILES= ${DISTNAME}.tar.gz ${EXTRA_DICT}
|
||||
PLIST= ${PKGDIR}/PLIST.french
|
||||
.elif defined(ISPELL_DE)
|
||||
EXTRA_DICT= ${GERMAN_DICT}.tar.gz
|
||||
DISTFILES= ${DISTNAME}.tar.gz ${EXTRA_DICT}
|
||||
PLIST= ${PKGDIR}/PLIST.german
|
||||
.endif
|
||||
.endif
|
||||
|
||||
pre-extract:
|
||||
@ -54,6 +67,10 @@ french:
|
||||
@${ECHO} "Okay, making a french/english version of ispell...."
|
||||
@${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes
|
||||
|
||||
german:
|
||||
@${ECHO} "Okay, making a german/english version of ispell...."
|
||||
@${MAKE} ${.MAKEFLAGS} ISPELL_DE=yes
|
||||
|
||||
pre-install:
|
||||
@${MKDIR} ${PREFIX}/share/emacs/site-lisp
|
||||
|
||||
|
@ -1,7 +1,10 @@
|
||||
MD5 (francais-IREQ-1.4.tar.gz) = 3871371b0f8e57b554f8895ce3a43b5a
|
||||
MD5 (hk2-deutsch.tar.gz) = 7fa72ab88d3ef466e35cf0721140b8ec
|
||||
MD5 (ispell-3.1.20.tar.gz) = 92986f940548fe4116428d21b16fd356
|
||||
MD5 (ispell-html-mode.patch) = 1b44441a3748e55b3d509fcff21af4b7
|
||||
RMD160 (hk2-deutsch.tar.gz) = 8fe8dadac0ab8bead960915284b3fd89646db968
|
||||
RMD160 (ispell-3.1.20.tar.gz) = 97ff82cdd3289d9c911093ca41974bc61314a36d
|
||||
RMD160 (ispell-html-mode.patch) = 0a25a3f437cbf132fc90a83180cb39790634654a
|
||||
SHA1 (hk2-deutsch.tar.gz) = 4e6364b65981be8002acbb65618bdbc646eb5663
|
||||
SHA1 (ispell-3.1.20.tar.gz) = f8f849a3868ef3d88c1ba6fe5b49505f75de786e
|
||||
SHA1 (ispell-html-mode.patch) = 70819796a3873453c63d939935f78c398ec98003
|
||||
|
29
textproc/ispell/pkg/PLIST.french
Normal file
29
textproc/ispell/pkg/PLIST.french
Normal file
@ -0,0 +1,29 @@
|
||||
bin/ispell
|
||||
bin/buildhash
|
||||
bin/sq
|
||||
bin/tryaffix
|
||||
bin/ijoin
|
||||
bin/findaffix
|
||||
bin/munchlist
|
||||
bin/icombine
|
||||
bin/unsq
|
||||
@unexec install-info --delete %D/info/ispell %D/info/dir
|
||||
info/ispell
|
||||
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
@exec install-info %D/%F %D/info/dir
|
||||
lib/americanmed+.hash
|
||||
lib/english.aff
|
||||
lib/american.hash
|
||||
lib/english.hash
|
||||
lib/francais.hash
|
||||
lib/francais.aff
|
||||
man/man1/ispell.1
|
||||
man/man1/sq.1
|
||||
man/man1/buildhash.1
|
||||
man/man1/munchlist.1
|
||||
man/man1/findaffix.1
|
||||
man/man1/tryaffix.1
|
||||
man/man1/unsq.1
|
||||
man/man4/ispell.4
|
||||
man/man4/english.4
|
||||
share/emacs/site-lisp/ispell.el
|
29
textproc/ispell/pkg/PLIST.german
Normal file
29
textproc/ispell/pkg/PLIST.german
Normal file
@ -0,0 +1,29 @@
|
||||
bin/ispell
|
||||
bin/buildhash
|
||||
bin/sq
|
||||
bin/tryaffix
|
||||
bin/ijoin
|
||||
bin/findaffix
|
||||
bin/munchlist
|
||||
bin/icombine
|
||||
bin/unsq
|
||||
@unexec install-info --delete %D/info/ispell %D/info/dir
|
||||
info/ispell
|
||||
@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
|
||||
@exec install-info %D/%F %D/info/dir
|
||||
lib/americanmed+.hash
|
||||
lib/english.aff
|
||||
lib/american.hash
|
||||
lib/english.hash
|
||||
lib/deutsch.hash
|
||||
lib/deutsch.aff
|
||||
man/man1/ispell.1
|
||||
man/man1/sq.1
|
||||
man/man1/buildhash.1
|
||||
man/man1/munchlist.1
|
||||
man/man1/findaffix.1
|
||||
man/man1/tryaffix.1
|
||||
man/man1/unsq.1
|
||||
man/man4/ispell.4
|
||||
man/man4/english.4
|
||||
share/emacs/site-lisp/ispell.el
|
14
textproc/ispell/scripts/configure
vendored
14
textproc/ispell/scripts/configure
vendored
@ -22,6 +22,20 @@ if [ -f $WRKDIR/extra_dict ]; then
|
||||
(echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo HASH=../../buildhash) \
|
||||
>> $WRKSRC/languages/francais-IREQ/Makefile
|
||||
;;
|
||||
hk2-deutsch*)
|
||||
OPT="worte.txt verben.txt adjektive.txt klein.txt imperat.txt"
|
||||
OPT="$OPT abkuerz.txt vornamen.txt geographie.txt latein.txt"
|
||||
OPT="$OPT informatik.txt infoabk.txt elektronik.txt alphabeta.txt"
|
||||
OPT="$OPT roemisch.txt orgabk.txt marken.txt worte2.txt zusammen.txt"
|
||||
OPT="$OPT technik.txt compeng.txt geogra2.txt vornam2.txt namen.txt"
|
||||
LOCAL=" {deutsch,DICTOPTIONS=$OPT}"
|
||||
for i in $WRKDIR/*.txt $WRKDIR/*.aff; do
|
||||
if [ -f $i ]; then cp $i $WRKSRC/languages/deutsch/; fi
|
||||
done
|
||||
M=$WRKSRC/languages/deutsch/Makefile
|
||||
cp $M $M.orig
|
||||
sed -e '/7bit/s/^/##/' < $M.orig > $M
|
||||
;;
|
||||
*)
|
||||
echo "I don't now how to configure ispell with $extra_dict"
|
||||
exit 1;
|
||||
|
Loading…
Reference in New Issue
Block a user