Subject: pkg/12145: Adding German dictionary to ispell
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 02/07/2001 03:20:24
>Number: 12145
>Category: pkg
>Synopsis: Adding German dictionary to ispell
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Feb 07 03:23:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Thilo Manske
>Release: pkgsrc as of today (Feb 7 2000)
>Organization:
Dies ist Thilos Unix Signature! Viel Spass damit.
>Environment:
System: NetBSD WintelKiller 1.5R NetBSD 1.5R (WintelKiller) #275: Mon Feb 5 00:19:12 MET 2001 thilo@WintelKiller.HEH.Uni-Oldenburg.de:/usr/src/sys/arch/i386/compile/WintelKiller i386
Architecture: i386
Machine: i386
>Description:
Ispell has support for US-English, UK-English and French dictionaries, but
German is missing. This adds the building and installation of a German
dictionary in the same way as the French dictionary.
And I think it fixes the problem of pkg/12144 as well since it raises
MASKBITS from the default (32) to 64 (wich is needed by many languages).
XXX Maybe it's better to split of ispell into a ispell package wich just
builds and install the ispell-binary and support tools like buildhash and
unsq and dictionary packages (ispell-ukenglish, ispell-usenglish,
ispell-french etc...).
XXX By playing around with the definition of WORTE in igerman98's Makefile
it's possible to build Swiss-German and Austrian dictionaries as well.
Also it's possible to build dictionaries wich does not include "old"
or only "old" spellings ("Neue Rechtschreibung" vs "Alte
Rechtschreibung", Germans know what I mean :-). And some other stuff like
including names...
>How-To-Repeat:
>Fix:
--- Makefile.old Sun Jan 2 13:50:54 2000
+++ Makefile Tue Jan 30 14:23:15 2001
@@ -21,8 +21,9 @@
.if exists(/usr/include/inttypes.h)
CFLAGS+= -DHAVE_INTTYPES_H
.endif
+CFLAGS+= -DMASKBITS=64
-BUILD_DEFS+= ISPELL_EXTRA_DICT ISPELL_FR ISPELL_LANG
+BUILD_DEFS+= ISPELL_EXTRA_DICT ISPELL_FR ISPELL_DE ISPELL_LANG
.include "../../mk/bsd.prefs.mk"
@@ -32,6 +33,12 @@
DISTFILES+= ${ISPELL_EXTRA_DICT}
.endif
+.ifdef ISPELL_DE
+ISPELL_EXTRA_DICT= igerman98-20001109.tar.bz2
+MASTER_SITES+= http://www.suse.de/~bjacke/igerman98/dict/
+DISTFILES+= ${ISPELL_EXTRA_DICT}
+.endif
+
pre-extract:
.ifndef ISPELL_LANG
@${ECHO} '*******************************************************'
@@ -39,6 +46,8 @@
@${ECHO} '* typing "${MAKE} british" following a "${MAKE} clean"*'
@${ECHO} '* Note that you can build a french/english version *'
@${ECHO} '* by typing "${MAKE} french" *'
+ @${ECHO} '* Note that you can build a german/english version *'
+ @${ECHO} '* by typing "${MAKE} german" *'
@${ECHO} '*******************************************************'
.endif
@@ -57,5 +66,10 @@
french:
@${ECHO} "Okay, making a french/english version of ispell...."
@${MAKE} ${.MAKEFLAGS} ISPELL_FR=yes
+
+german:
+ @${ECHO} "Okay, making a german version of ispell...."
+ @${MAKE} ${.MAKEFLAGS} ISPELL_DE=yes
+
.include "../../mk/bsd.pkg.mk"
--- scripts/configure.old Fri Aug 7 13:26:08 1998
+++ scripts/configure Tue Jan 30 14:28:56 2001
@@ -25,6 +25,14 @@
(echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo HASH=../../buildhash) \
>> $WRKSRC/languages/francais-IREQ/Makefile
;;
+ igerman98*)
+ mkdir -p $WRKSRC/languages/igerman98
+ LOCAL=' {igerman98}'
+ mv $WRKDIR/igerman98-*/* $WRKSRC/languages/igerman98/
+ (echo RM=rm -f; echo LIBDIR=$PREFIX/lib; echo BUILDHASH=../../buildhash;
+ echo UNSQ=../../../unsq;echo all: german.hash; ) \
+ >> $WRKSRC/languages/igerman98/Makefile
+ ;;
*)
echo "I don't now how to configure ispell with $extra_dict"
exit 1;
>Release-Note:
>Audit-Trail:
>Unformatted: