Patch for creating a myspell-nl package
Hi,
Here is a patch that creates a myspell-nl package from the "dutch"
source package.
You need to have dictionaries-common-dev installed to build the package.
I didn't yet add this to the build-dependencies.
Best regards,
Wouter
diff -urN dutch-0.1e.old/debian/control dutch-0.1e/debian/control
--- dutch-0.1e.old/debian/control 2004-12-14 14:00:48.000000000 +0100
+++ dutch-0.1e/debian/control 2004-12-14 13:19:32.000000000 +0100
@@ -33,3 +33,14 @@
A Dutch spelling dictionary for the spelling checker aspell.
The dictionary contains ${count:Roots} roots, which expand to ${count:Count} words.
For a simple word list, see the wdutch package instead.
+
+Package: myspell-nl
+Section: text
+Architecture: all
+Depends: dictionaries-common (>= 0.10) | openoffice.org-updatedicts
+Conflicts: openoffice.org (<= 1.0.3-2)
+Provides: myspell-dictionary, myspell-dictionary-nl
+Description: Dutch dictionary for myspell
+ This is the Dutch dictionary for use with the myspell spellchecker
+ which is currently used within OpenOffice.org and the mozilla
+ spellchecker.
diff -urN dutch-0.1e.old/debian/myspell-nl.dirs dutch-0.1e/debian/myspell-nl.dirs
--- dutch-0.1e.old/debian/myspell-nl.dirs 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/debian/myspell-nl.dirs 2004-12-14 13:26:35.000000000 +0100
@@ -0,0 +1,2 @@
+usr/share/myspell/dicts
+usr/share/myspell/infos/ooo
diff -urN dutch-0.1e.old/debian/myspell-nl.docs dutch-0.1e/debian/myspell-nl.docs
--- dutch-0.1e.old/debian/myspell-nl.docs 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/debian/myspell-nl.docs 2004-12-14 13:32:05.000000000 +0100
@@ -0,0 +1 @@
+debian/README.MySpell_nl_NL
diff -urN dutch-0.1e.old/debian/myspell-nl.info-myspell dutch-0.1e/debian/myspell-nl.info-myspell
--- dutch-0.1e.old/debian/myspell-nl.info-myspell 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/debian/myspell-nl.info-myspell 2004-12-14 13:31:38.000000000 +0100
@@ -0,0 +1,2 @@
+# Dutch dictionary
+DICT nl NL nl_NL
diff -urN dutch-0.1e.old/debian/postinst.debhelper dutch-0.1e/debian/postinst.debhelper
--- dutch-0.1e.old/debian/postinst.debhelper 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/debian/postinst.debhelper 2004-12-14 13:37:28.000000000 +0100
@@ -0,0 +1,5 @@
+# Automatically added by installdeb-myspell
+if [ "$1" = "configure" ]; then
+ update-openoffice-dicts
+fi
+# End automatically added section
diff -urN dutch-0.1e.old/debian/postrm.debhelper dutch-0.1e/debian/postrm.debhelper
--- dutch-0.1e.old/debian/postrm.debhelper 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/debian/postrm.debhelper 2004-12-14 13:37:28.000000000 +0100
@@ -0,0 +1,5 @@
+# Automatically added by installdeb-myspell
+if [ "$1" = "remove" ]; then
+ update-openoffice-dicts
+fi
+# End automatically added section
diff -urN dutch-0.1e.old/debian/README.MySpell_nl_NL dutch-0.1e/debian/README.MySpell_nl_NL
--- dutch-0.1e.old/debian/README.MySpell_nl_NL 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/debian/README.MySpell_nl_NL 2004-12-14 13:33:02.000000000 +0100
@@ -0,0 +1,3 @@
+The myspell dictionary is no longer a separate source package, but
+is generated from dutch sources (the .dic file).
+
diff -urN dutch-0.1e.old/debian/rules dutch-0.1e/debian/rules
--- dutch-0.1e.old/debian/rules 2004-12-14 14:00:48.000000000 +0100
+++ dutch-0.1e/debian/rules 2004-12-14 14:18:49.000000000 +0100
@@ -18,12 +18,17 @@
ATMPDIR:=$(CURDIR)/debian/aspell-nl
ASPELLDIR=${ATMPDIR}/usr/lib/aspell
+OOODIR=$(CURDIR)/debian/myspell-nl/usr/share/myspell/dicts
+OOOINFO=$(CURDIR)/debian/myspell-nl/usr/share/myspell/infos/ooo
+
build: build-stamp
build-stamp:
test -f debian/rules
./configure --enable-large --enable-chemistry --enable-countries \
--enable-jargon --enable-toponames --prefix=/usr
cd wl && make dutch.hash
+ cd wl && cat dutch.munchlist.cnt dutch.munchlist > nl_NL.mydict
+ cd wl && ispellaff2myspell --charset=latin1 --split=200 --myheader=nl_NL.myheader dutch.munchlist > nl_NL.myaff
touch build-stamp
clean:
@@ -37,6 +42,7 @@
-rm -f `find . -name "*~"` debian/files* debian/substvars core
-rm -rf ${ITMPDIR} ${WTMPDIR} ${ATMPDIR}
-rm -f config.status
+ rm -f wl/nl_NL.myaff wl/nl_NL.mydict
dh_clean
@@ -57,7 +63,10 @@
echo "count:Words=`wc -l wl/dutch | cut -f2 -d\ `" > debian/wdutch.substvars
+ install -m644 wl/nl_NL.mydict $(OOODIR)/nl_NL.dic
+ install -m644 wl/nl_NL.myaff $(OOODIR)/nl_NL.aff
installdeb-wordlist --package=wdutch # This calls internally dh_installdebconf
+ installdeb-myspell --package=myspell-nl
dh_installdocs -i
dh_installman -pwdutch debian/dutch.5
dh_installchangelogs -i ChangeLog
diff -urN dutch-0.1e.old/stamp-h dutch-0.1e/stamp-h
--- dutch-0.1e.old/stamp-h 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/stamp-h 2004-12-14 14:14:27.000000000 +0100
@@ -0,0 +1 @@
+timestamp
diff -urN dutch-0.1e.old/wl/nl_NL.myheader dutch-0.1e/wl/nl_NL.myheader
--- dutch-0.1e.old/wl/nl_NL.myheader 1970-01-01 01:00:00.000000000 +0100
+++ dutch-0.1e/wl/nl_NL.myheader 2004-12-14 13:04:01.000000000 +0100
@@ -0,0 +1,2 @@
+SET ISO8859-1
+TRY esianrtolcdugmphbyfvkw-ëéèêïîäàâöüû'ESIANRTOLCDUGMPHBYFVKW
Reply to: