clean up and add swedish dictionary.
This commit is contained in:
parent
28ce0e9db5
commit
4117a251b5
@ -1,31 +1,39 @@
|
||||
# $OpenBSD: Makefile,v 1.21 2001/05/05 20:26:47 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.22 2001/07/09 17:34:11 jakob Exp $
|
||||
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
|
||||
|
||||
COMMENT= interactive spelling checker
|
||||
COMMENT-french= ispell dictionary for French
|
||||
COMMENT-german= ispell dictionary for German
|
||||
COMMENT= interactive spelling checker
|
||||
COMMENT-french= ispell dictionary for French
|
||||
COMMENT-german= ispell dictionary for German
|
||||
COMMENT-swedish= ispell dictionary for Swedish
|
||||
|
||||
V= 3.1.20
|
||||
DISTNAME= ispell-$V
|
||||
VERSION= 3.1.20
|
||||
DISTNAME= ispell-${VERSION}
|
||||
CATEGORIES= textproc
|
||||
NEED_VERSION= 1.361
|
||||
|
||||
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
||||
|
||||
HOMEPAGE= http://fmg-www.cs.ucla.edu/geoff/ispell.html
|
||||
|
||||
MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/
|
||||
MASTER_SITES0= ftp://ftp.robot.ireq.ca/pub/ispell/
|
||||
MASTER_SITES1= ftp://ftp.informatik.uni-kiel.de/pub/kiel/dicts/
|
||||
MASTER_SITES2= ftp://ftp.kiarchive.ru/pub/unix/text/ispell/
|
||||
MASTER_SITES3= http://www.sslug.dk/locale/ispell/iswedish/
|
||||
|
||||
DIST_SUBDIR= ispell
|
||||
|
||||
FRENCH_DICT= francais-IREQ-1.4
|
||||
GERMAN_DICT= hk2-deutsch
|
||||
DISTFILES= ${DISTNAME}.tar.gz ${FRENCH_DICT}.tar.gz:0 ${GERMAN_DICT}.tar.gz:1
|
||||
EXTRACT_ONLY= ${DISTNAME}.tar.gz ${GERMAN_DICT}.tar.gz
|
||||
HOMEPAGE= http://fmg-www.cs.ucla.edu/geoff/ispell.html
|
||||
SWEDISH_DICT= iswedish-1.2.1
|
||||
|
||||
DISTFILES= ${DISTNAME}.tar.gz ${FRENCH_DICT}.tar.gz:0 ${GERMAN_DICT}.tar.gz:1 ${SWEDISH_DICT}.tar.gz:3
|
||||
EXTRACT_ONLY= ${DISTNAME}.tar.gz ${SWEDISH_DICT}.tar.gz
|
||||
PATCHFILES= ispell-html-mode.patch:2
|
||||
|
||||
MAINTAINER= ports@openbsd.org
|
||||
|
||||
MULTI_PACKAGES= -french -german
|
||||
MULTI_PACKAGES= -french -german -swedish
|
||||
.for i in ${MULTI_PACKAGES}
|
||||
PKGNAME$i= ispell$i-$V
|
||||
PKGNAME$i= ispell$i-${VERSION}
|
||||
.endfor
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
@ -37,8 +45,13 @@ WRKDIST= ${WRKDIR}/ispell-3.1
|
||||
MAKE_FLAGS= TMPDIR=${WRKDIR}
|
||||
|
||||
post-extract:
|
||||
@mkdir ${WRKDIST}/languages/francais-IREQ
|
||||
@(cd ${WRKDIST}/languages/francais-IREQ; tar zxf ${DISTDIR}/${FRENCH_DICT}.tar.gz)
|
||||
@mkdir -p ${WRKDIR}/french
|
||||
@(cd ${WRKDIR}/french; \
|
||||
tar xzf ${DISTDIR}/${DIST_SUBDIR}/${FRENCH_DICT}.tar.gz)
|
||||
|
||||
@mkdir -p ${WRKDIR}/german
|
||||
@(cd ${WRKDIR}/german; \
|
||||
tar xzf ${DISTDIR}/${DIST_SUBDIR}/${GERMAN_DICT}.tar.gz)
|
||||
|
||||
post-configure:
|
||||
@echo "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h
|
||||
@ -47,6 +60,16 @@ post-build:
|
||||
@sed "s%/usr/local%${PREFIX}%g" ${SCRIPTDIR}/ispell-config > \
|
||||
${WRKDIST}/ispell-config
|
||||
|
||||
@(cd ${WRKDIR}/french; \
|
||||
$(MAKE) RM='rm -f' HASH=${WRKDIST}/buildhash)
|
||||
|
||||
@(cd ${WRKDIR}/german; \
|
||||
sort -u *.txt | ./tex2iso >all.words; \
|
||||
${WRKDIST}/buildhash all.words deutsch.aff deutsch.hash)
|
||||
|
||||
@(cd ${WRKDIR}/${SWEDISH_DICT}; \
|
||||
${WRKDIST}/buildhash svenska.datalista svenska.aff svenska.hash)
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIST}/ispell ${PREFIX}/bin/ispell
|
||||
${INSTALL_PROGRAM} ${WRKDIST}/buildhash ${PREFIX}/bin/buildhash
|
||||
@ -81,15 +104,15 @@ do-install:
|
||||
${INSTALL_DATA} ${WRKDIST}/languages/british/britishxlg.hash \
|
||||
${PREFIX}/lib/ispell/britishxlg.hash
|
||||
ln -s britishxlg.hash ${PREFIX}/lib/ispell/british.hash
|
||||
${INSTALL_DATA} ${WRKDIST}/languages/deutsch/deutsch.aff \
|
||||
${PREFIX}/lib/ispell/deutsch.aff
|
||||
${INSTALL_DATA} ${WRKDIST}/languages/deutsch/deutsch.hash \
|
||||
${PREFIX}/lib/ispell/deutsch.hash
|
||||
${INSTALL_DATA} ${WRKDIST}//languages/francais-IREQ/francais.aff \
|
||||
${PREFIX}/lib/ispell/francais.aff
|
||||
${INSTALL_DATA} ${WRKDIST}/languages/francais-IREQ/francais.hash \
|
||||
${PREFIX}/lib/ispell/francais.hash
|
||||
|
||||
ln -s american.aff ${PREFIX}/lib/ispell/default.aff
|
||||
ln -s american.hash ${PREFIX}/lib/ispell/default.hash
|
||||
|
||||
|
||||
${INSTALL_DATA} ${WRKDIR}/german/deutsch.{aff,hash} \
|
||||
${PREFIX}/lib/ispell
|
||||
${INSTALL_DATA} ${WRKDIR}/french/francais.{aff,hash} \
|
||||
${PREFIX}/lib/ispell
|
||||
${INSTALL_DATA} ${WRKDIR}/${SWEDISH_DICT}/svenska.{aff,hash} \
|
||||
${PREFIX}/lib/ispell
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,12 +1,15 @@
|
||||
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 (francais-IREQ-1.4.tar.gz) = 9f11a627d84488c9cbbd37b75fbeae9060803f3d
|
||||
RMD160 (hk2-deutsch.tar.gz) = 8fe8dadac0ab8bead960915284b3fd89646db968
|
||||
RMD160 (ispell-3.1.20.tar.gz) = 97ff82cdd3289d9c911093ca41974bc61314a36d
|
||||
RMD160 (ispell-html-mode.patch) = 0a25a3f437cbf132fc90a83180cb39790634654a
|
||||
SHA1 (francais-IREQ-1.4.tar.gz) = 940712167cd2d40c27e673246b8ce9f99595a309
|
||||
SHA1 (hk2-deutsch.tar.gz) = 4e6364b65981be8002acbb65618bdbc646eb5663
|
||||
SHA1 (ispell-3.1.20.tar.gz) = f8f849a3868ef3d88c1ba6fe5b49505f75de786e
|
||||
SHA1 (ispell-html-mode.patch) = 70819796a3873453c63d939935f78c398ec98003
|
||||
MD5 (ispell/francais-IREQ-1.4.tar.gz) = 3871371b0f8e57b554f8895ce3a43b5a
|
||||
MD5 (ispell/hk2-deutsch.tar.gz) = 7fa72ab88d3ef466e35cf0721140b8ec
|
||||
MD5 (ispell/ispell-3.1.20.tar.gz) = 92986f940548fe4116428d21b16fd356
|
||||
MD5 (ispell/ispell-html-mode.patch) = 1b44441a3748e55b3d509fcff21af4b7
|
||||
MD5 (ispell/iswedish-1.2.1.tar.gz) = b546aeb88d7614c32e541488d55f32fe
|
||||
RMD160 (ispell/francais-IREQ-1.4.tar.gz) = 9f11a627d84488c9cbbd37b75fbeae9060803f3d
|
||||
RMD160 (ispell/hk2-deutsch.tar.gz) = 8fe8dadac0ab8bead960915284b3fd89646db968
|
||||
RMD160 (ispell/ispell-3.1.20.tar.gz) = 97ff82cdd3289d9c911093ca41974bc61314a36d
|
||||
RMD160 (ispell/ispell-html-mode.patch) = 0a25a3f437cbf132fc90a83180cb39790634654a
|
||||
RMD160 (ispell/iswedish-1.2.1.tar.gz) = 4d5a040018b12d06f4d8f45f89eb775ba6f88aab
|
||||
SHA1 (ispell/francais-IREQ-1.4.tar.gz) = 940712167cd2d40c27e673246b8ce9f99595a309
|
||||
SHA1 (ispell/hk2-deutsch.tar.gz) = 4e6364b65981be8002acbb65618bdbc646eb5663
|
||||
SHA1 (ispell/ispell-3.1.20.tar.gz) = f8f849a3868ef3d88c1ba6fe5b49505f75de786e
|
||||
SHA1 (ispell/ispell-html-mode.patch) = 70819796a3873453c63d939935f78c398ec98003
|
||||
SHA1 (ispell/iswedish-1.2.1.tar.gz) = c26c851123a427b495ca9ac10c443ec23efa8e3a
|
||||
|
@ -3,4 +3,3 @@ errors in the context of the original file, and suggests possible
|
||||
corrections when it can figure them out. Compared to UNIX spell, it
|
||||
is faster and much easier to use. This package add a French
|
||||
dictionary that can be used by ispell.
|
||||
|
||||
|
@ -3,4 +3,3 @@ errors in the context of the original file, and suggests possible
|
||||
corrections when it can figure them out. Compared to UNIX spell, it
|
||||
is faster and much easier to use. This package adds a German
|
||||
dictionary that can be used by ispell.
|
||||
|
||||
|
5
textproc/ispell/pkg/DESCR-swedish
Normal file
5
textproc/ispell/pkg/DESCR-swedish
Normal file
@ -0,0 +1,5 @@
|
||||
Ispell is a fast screen-oriented spelling checker that shows you your
|
||||
errors in the context of the original file, and suggests possible
|
||||
corrections when it can figure them out. Compared to UNIX spell, it
|
||||
is faster and much easier to use. This package adds a Swedish
|
||||
dictionary that can be used by ispell.
|
6
textproc/ispell/pkg/PLIST-swedish
Normal file
6
textproc/ispell/pkg/PLIST-swedish
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST-swedish,v 1.1 2001/07/09 17:34:13 jakob Exp $
|
||||
@pkgdep ispell-3.1.20
|
||||
lib/ispell/svenska.aff
|
||||
lib/ispell/svenska.hash
|
||||
@exec echo 'invoking %D/bin/ispell-config'
|
||||
@exec %D/bin/ispell-config
|
28
textproc/ispell/scripts/configure
vendored
28
textproc/ispell/scripts/configure
vendored
@ -10,36 +10,8 @@ if [ ! -f /usr/share/dict/words ]; then
|
||||
fi
|
||||
cd $WRKSRC || exit 1;
|
||||
|
||||
# Setup french dictionary
|
||||
LOCAL=' {francais-IREQ}'
|
||||
(echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo HASH=../../buildhash) \
|
||||
>> $WRKSRC/languages/francais-IREQ/Makefile
|
||||
|
||||
# Setup german dictionary
|
||||
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="${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
|
||||
|
||||
sed -e s:/usr/local:$PREFIX: <local.h.samp >local.h || exit 1;
|
||||
echo "#undef NO8BIT" >> local.h
|
||||
#case $LANG in
|
||||
# british)
|
||||
# echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=}$LOCAL\"" >>local.h ||exit 1;
|
||||
# echo '#define MASTERHASH "britishxlg.hash"' >> local.h
|
||||
# break ;;
|
||||
# *)
|
||||
# echo "#define LANGUAGES \"{american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >>local.h ||exit 1;
|
||||
# :;;
|
||||
#esac
|
||||
|
||||
echo "#define LANGUAGES \"{british,MASTERDICTS=british.xlg,HASHFILES=britishxlg.hash,EXTRADICT=} {american,MASTERDICTS=american.med+,HASHFILES=americanmed+.hash,EXTRADICT=/usr/share/dict/words}$LOCAL\"" >> local.h || exit 1;
|
||||
echo '#define MASTERHASH "britishxlg.hash"' >> local.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user