--- dict-tn-20070206.orig/utils/Makefile.language +++ dict-tn-20070206/utils/Makefile.language @@ -110,8 +110,8 @@ # this does the work of converting a wordlist into a myspell dictionary # it can take a while # the munch utility is located under the dict/utils project -myspell/$(LANG)_$(REGION).dic: myspell/wordlist.$(CHARSET) myspell/$(LANG)_$(REGION).aff ../utils/munch - ../utils/munch myspell/wordlist.$(CHARSET) myspell/$(LANG)_$(REGION).aff >$@ +myspell/$(LANG)_$(REGION).dic: myspell/wordlist.$(CHARSET) myspell/$(LANG)_$(REGION).aff + munch myspell/wordlist.$(CHARSET) myspell/$(LANG)_$(REGION).aff >$@ # The following are for building a Mozilla XPI of the spellchecker # Customise the install.js --- dict-tn-20070206.orig/debian/rules +++ dict-tn-20070206/debian/rules @@ -0,0 +1,93 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export SHELL = /bin/bash +lc=tn + +# This has to be exported to make some magic below work. +export DH_OPTIONS + + + +build: build-stamp +build-stamp: + $(MAKE) -C $(lc) myspell aspell + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + -$(MAKE) -C utils clean + -$(MAKE) -C $(lc) clean + rm -f $(lc)/myspell/*.zip $(lc)/myspell/*.xpi + rm -f $(lc)/wordlists/*.zip + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + + : # install myspell + dh_installdirs -pmyspell-$(lc) \ + usr/share/myspell/dicts + +# install -m644 $(lc)/hyph/hyph_tn_ZA.dic \ +# debian/myspell-$(lc)/usr/share/myspell/dicts/ + installdeb-myspell -pmyspell-$(lc) --srcdir=$(lc)/myspell + + : # install aspell + dh_installdirs -paspell-$(lc) \ + var/lib/aspell usr/lib/aspell usr/share/aspell + + install -m644 */aspell/*.{alias,dat,multi} \ + debian/aspell-$(lc)/usr/lib/aspell + + for f in */aspell/*.cwl; do \ + bf=`basename $$f .cwl`; \ + gzip -9 -c $$f > debian/aspell-$(lc)/usr/share/aspell/$$bf.cwl.gz; \ + WL=`echo $$f | sed 's/\.cwl$$//'`; \ + touch debian/aspell-$(lc)/var/lib/aspell/$$bf.rws; \ + dh_link -paspell-$(lc) \ + var/lib/aspell/$$bf.rws usr/lib/aspell/$$bf.rws; \ + echo "$$bf" >> "debian/aspell-$(lc)/usr/share/aspell/$(lc).contents"; \ + done + + touch debian/aspell-$(lc)/var/lib/aspell/$(lc).compat + + installdeb-aspell -paspell-$(lc) + + +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture independant packages using the common target. +binary-indep: build install + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: +# nothing to do + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install --- dict-tn-20070206.orig/debian/changelog +++ dict-tn-20070206/debian/changelog @@ -0,0 +1,19 @@ +dict-tn (20070206-3) gutsy; urgency=low + + * Properly register the aspell dictionary. + + -- Matthias Klose Fri, 12 Oct 2007 17:20:25 +0000 + +dict-tn (20070206-2) gutsy; urgency=low + + * Build-depend on hunspell-tools. LP: #135530. + * utils/Makefile.language: Use the system munch utility. + * debian/rules(clean): Clean utils subdirectory + + -- Matthias Klose Thu, 11 Oct 2007 18:19:54 +0200 + +dict-tn (20070206-1) feisty; urgency=low + + * Initial release. + + -- Matthias Klose Tue, 6 Feb 2007 20:11:42 +0100 --- dict-tn-20070206.orig/debian/compat +++ dict-tn-20070206/debian/compat @@ -0,0 +1 @@ +5 --- dict-tn-20070206.orig/debian/control +++ dict-tn-20070206/debian/control @@ -0,0 +1,20 @@ +Source: dict-tn +Section: text +Priority: optional +Maintainer: Matthias Klose +Build-Depends: debhelper (>= 5) +Build-Depends-Indep: hunspell-tools, aspell, dictionaries-common-dev (>= 0.9.1), bzip2, zip +Standards-Version: 3.7.2 + +Package: myspell-tn +Architecture: all +Depends: dictionaries-common (>= 0.49.2) +Provides: openoffice.org-spellcheck-tn +Description: The Tswana dictionary for myspell + This is an Tswana dictionary, to be used with myspell. + +Package: aspell-tn +Architecture: all +Depends: aspell (>= 0.60.3-3), dictionaries-common (>= 0.49.2) +Description: The Tswana dictionary for aspell + This is an Tswana dictionary, to be used with aspell. --- dict-tn-20070206.orig/debian/myspell-tn.info-myspell +++ dict-tn-20070206/debian/myspell-tn.info-myspell @@ -0,0 +1 @@ +DICT tn ZA tn_ZA --- dict-tn-20070206.orig/debian/copyright +++ dict-tn-20070206/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Matthias Klose on +Tue, 6 Feb 2007 20:11:42 +0100. + +It was downloaded from http://ztn.svn.sourceforge.net/viewvc/ztn/trunk/dict/ + +Copyright: Copyright (C) 2004 Kevin P. Scannell and + Thapelo Otlogetswe +Copyright (C) 2006 Zuza Software Foundation + +License: + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +On Debian GNU/Linux systems, the complete text of the GNU Lesser +General Public License is in `/usr/share/common-licenses/LGPL'. + + + +The Debian packaging is (C) 2007, Cnonical LTD and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- dict-tn-20070206.orig/debian/aspell-tn.info-aspell +++ dict-tn-20070206/debian/aspell-tn.info-aspell @@ -0,0 +1,4 @@ +Language: Setswana (Tswana) +Hash-Name: ts +Emacsen-Name: tswana +Coding-System: iso-8859-1