--- myspell-pt-br-20100109.orig/debian/watch
+++ myspell-pt-br-20100109/debian/watch
@@ -0,0 +1,6 @@
+version=3
+
+opts="uversionmangle=s/-//g"				\
+  http://www.broffice.org.br/verortografico/baixar	\
+  .*pt_BR-([\d-]+).*\.zip				\
+  debian /bin/sh debian/orig-tar.sh
--- myspell-pt-br-20100109.orig/debian/orig-tar.sh
+++ myspell-pt-br-20100109/debian/orig-tar.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+uver=$2
+file=$3
+pkg=myspell-pt-br
+dir=$pkg-$uver
+
+mkdir $dir
+cd $dir
+unzip -x ../$file
+cd ..
+tar cfz ../${pkg}_$uver.orig.tar.gz $dir
+rm -rf $dir
--- myspell-pt-br-20100109.orig/debian/compat
+++ myspell-pt-br-20100109/debian/compat
@@ -0,0 +1 @@
+5
--- myspell-pt-br-20100109.orig/debian/README.Debian
+++ myspell-pt-br-20100109/debian/README.Debian
@@ -0,0 +1,48 @@
+myspell-pt-br for Debian
+------------------------
+
+myspell-pt-br
+-------------
+
+myspell-pt-br used to be generated from the br.ispell source package. It is
+now obtained from the sources distributed by the BrOffice.org team.
+According to the BrOffice.org people, their dictionary is more complete and
+up-to-date as regards the one distributed in br.ispell (2.8M of words for
+the former instead of 250k for the later).
+
+The ustream authors provide three different tarballs:
+
+  * Complete version: pt_BR-*-*-*C.zip
+  * Light version: pt_BR-*-*-*L.zip
+  * Ideal versiÃ£o: pt_BR-*-*-*V.zip
+
+The last tarball is not recommended for OpenOffice.org.  The Debian package
+corresponds to the "complete version".
+
+Debian myspell-pt-br is already integrated into OpenOffice.org and should
+work out-of-the-box with it, no need of special actions. README_pt_BR-OOO2x.TXT
+is included only for completion.
+
+aspell-pt-br
+------------
+
+aspell-pt-br used to be a stand-alone package, but currently is also
+generated from this package with some minor tweak. As a matter of fact,
+that is what upstream does (with similar tweaks) when releasing official
+aspell6-pt-br dictionaries. br-abnt2.kbd and pt_BR.dat were borrowed from
+aspell-pt-br and put in debian/aspell-files.
+
+From upstream README.aspell.txt
+
+ The Brazilian Portuguese dictionary for Aspell is a version of the
+ OpenOffice.org one. The idea is to avoid forking or duplicate efforts.
+ Previously (previously to Aspell 6) the Brazilian Portuguese dictionary for
+ Aspell was derived from the Ispell counterpart, but that project is long
+ unmaintained. Please visit the spell checking project page at the BrOffice.org
+ (Brazilian Portuguese OpenOffice.org) site if you want to report a missing
+ word, a misspelled word, or if you are looking for further information on
+ credits and new versions:
+
+ http://www.broffice.org/verortografico
+
+ -- Agustin Martin Domingo <agmartin@debian.org>, Mon, 26 Oct 2009 16:22:37 +0100
--- myspell-pt-br-20100109.orig/debian/myspell-pt-br.info-hunspell
+++ myspell-pt-br-20100109/debian/myspell-pt-br.info-hunspell
@@ -0,0 +1,7 @@
+Language: português/Brasil (Portuguese/Brazil)
+Hash-Name: pt_BR
+Emacsen-Name: brasileiro
+Otherchars: [---']
+Additionalchars: áéíóúàèìòùãõçüâêôÁÉÍÓÚÀÈÌÒÙÃÕÇÜÂÊÔ
+Coding-System: iso-8859-1
+Hunspell-Locales: pt, pt_BR
--- myspell-pt-br-20100109.orig/debian/aspell-pt-br.install
+++ myspell-pt-br-20100109/debian/aspell-pt-br.install
@@ -0,0 +1,9 @@
+debian/aspell-files/brazilian.alias	usr/lib/aspell
+debian/aspell-files/brasileiro.alias	usr/lib/aspell
+debian/aspell-files/pt_BR.dat		usr/lib/aspell
+debian/aspell-files/pt_BR.multi		usr/lib/aspell
+debian/aspell-files/br-abnt2.kbd	usr/lib/aspell
+debian/aspell-files/pt_BR_affix.dat	usr/lib/aspell
+debian/aspell-files/pt_BR.cwl.gz	usr/share/aspell
+debian/aspell-files/pt_BR.compat	var/lib/aspell
+debian/aspell-files/pt_BR.rws		var/lib/aspell
--- myspell-pt-br-20100109.orig/debian/myspell-pt-br.docs
+++ myspell-pt-br-20100109/debian/myspell-pt-br.docs
@@ -0,0 +1 @@
+README_pt_BR.TXT
--- myspell-pt-br-20100109.orig/debian/copyright
+++ myspell-pt-br-20100109/debian/copyright
@@ -0,0 +1,40 @@
+-*- coding: utf-8 -*-
+
+This package was debianized by Rafael Laboissiere <rafael@debian.org> on
+Fri, 29 Jun 2007 17:02:52 +0200.
+
+It was downloaded from http://www.broffice.org.br/verortografico
+
+Upstream Authors:
+   Raimundo Santos Moura <raimundo.smoura@gmail.com>
+   and others from the BrOffice.org team (see
+   http://www.openoffice.org.br/?q=creditos)
+
+pt_BR.aff, pt_BR.dic:
+
+   Copyright (C) 2006 - 2009 Raimundo Santos Moura <raimundomoura@openoffice.org>
+
+   This is the spelling dictionary for Portuguese for Myspell.
+   This program is free and can be redistributed and/or modified under the
+   terms of the GNU Lesser General Public License (LGPL) version 2.1.]
+
+debian/aspell-files/br-abnt2.kbd, debian/aspell-files/pt_BR.dat:
+
+   Copyright (C) 2006 - 2008 Raimundo Santos Moura <raimundomoura@openoffice.org>
+   Copyright (C) 2006 - 2008 Leonardo Ferreira Fontenelle
+
+   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.
+
+The Debian packaging is:
+
+  Â© 2007, 2009 Rafael Laboissiere <rafael@debian.org>
+  Â© 2009 Agustin Martin Domingo <agmartin@debian.org>
+
+and is licensed under the GPL, version 3 or later. In Debian systems,
+see `/usr/share/common-licenses/GPL-3'. The full text of the LGPL
+license can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+
--- myspell-pt-br-20100109.orig/debian/aspell-pt-br.info-aspell
+++ myspell-pt-br-20100109/debian/aspell-pt-br.info-aspell
@@ -0,0 +1,7 @@
+Language: português/Brasil (Portuguese/Brazil)
+Hash-Name: pt_BR
+Emacsen-Name: brasileiro
+Otherchars: [---']
+Additionalchars: áéíóúàèìòùãõçüâêôÁÉÍÓÚÀÈÌÒÙÃÕÇÜÂÊÔ
+Coding-System: iso-8859-1
+Aspell-Locales: pt_BR
--- myspell-pt-br-20100109.orig/debian/changelog
+++ myspell-pt-br-20100109/debian/changelog
@@ -0,0 +1,150 @@
+myspell-pt-br (20100109-3) unstable; urgency=low
+
+  * Make sure aspell-pt-br hash is rebuilt on reconfigure.
+  * Fix alias files for Brazilian Portuguese to work better
+    under Emacs.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Thu, 17 Jun 2010 16:02:32 +0200
+
+myspell-pt-br (20100109-2) unstable; urgency=low
+
+  * tofromdos no longer provides dos2unix symlinks. Use
+    fromdos command directly (Closes: #569367).
+  * Bump Standards Version. No changes required.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Fri, 12 Feb 2010 09:48:59 +0100
+
+myspell-pt-br (20100109-1) unstable; urgency=low
+
+  * New upstream release.
+  * Filter out words starting by [ÂºÂª] for aspell.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Fri, 15 Jan 2010 18:33:55 +0100
+
+myspell-pt-br (20091004-3) unstable; urgency=low
+
+  * Make sure we no longer create Mozilla* symlinks in new destdir
+    by using installdeb-myspell (> 1.4).
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Wed, 25 Nov 2009 13:24:14 +0100
+
+myspell-pt-br (20091004-2) unstable; urgency=low
+
+  * pt_BR.dat: Add explicit soundslike and repl_table values.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Fri, 20 Nov 2009 11:50:11 +0100
+
+myspell-pt-br (20091004-1) unstable; urgency=low
+
+  * Also generate aspell-pt-br from this package.
+    - Change to aspell-pt-br versioning (largest of
+      aspell-pt-br and myspell-pt-br).
+    - Get br-abnt2.kbd and pt_BR.dat from aspell package.
+    - Modify watch file for this new versioning.
+  * debian/rules:
+    - make get-orig-source just call uscan.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Mon, 26 Oct 2009 16:15:37 +0100
+
+myspell-pt-br (2009.10.04-1) unstable; urgency=low
+
+  * New maintainer. (Closes: #534363).
+  * New upstream release.
+  * Raise Standards-Version. No changes required.
+  * Add info-hunspell and call installdeb-hunspell
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Fri, 09 Oct 2009 12:51:42 +0200
+
+myspell-pt-br (2009.03.30-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * rebuild with dictionaries-common (>= 1.3.1) to move dict to
+    /usr/share/hunspell with compat symlinks from /usr/share/myspell/dicts
+    (closes: #541920)
+
+ -- Rene Engelhard <rene@debian.org>  Wed, 23 Sep 2009 23:33:26 +0200
+
+myspell-pt-br (2009.03.30-1) unstable; urgency=low
+
+  * New upstream release with Portuguese orthography agreement
+    (closes: #501790)
+  * debian/watch:
+    + Fix regular expression for the upstream version
+    + Call debian/orig-tar.sh script for building the upstream tarball
+  * debian/orig-tar.sh: Build the tarball from the zip file dowloaded by
+    uscan
+  * debian/control:
+    + Bump Standards-Version to 3.8.1
+    + The package is now maintained with Git at alioth.debian.org.  Add
+      Vcs-Git field and change Vcs-Browser accordingly.
+    + Fix Lintian warning debhelper-but-no-misc-depends
+    + Move dictionaries-common-dev into Build-Depends-Indep
+  * debian/copyright:
+    + Update copyright years
+    + Change license for Debian packaging to GPL-3
+
+ -- Rafael Laboissiere <rafael@debian.org>  Tue, 21 Apr 2009 23:25:42 +0200
+
+myspell-pt-br (2008.07.07-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/README.Debian: Add a note about the different ZIP files provided
+    by upstream and which one is used in the Debian package
+  * debian/copyright: Update upstream copyright years
+
+ -- Rafael Laboissiere <rafael@debian.org>  Fri, 25 Apr 2008 00:17:27 +0200
+
+myspell-pt-br (2008.02.21-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/control: Append trunk/ to the path in Vcs-Svn:, such that
+    debcheckout works
+  * debian/watch: Fix upstream URL
+  * debian/rules:
+    + Adjust get-orig-source rule for new upstream download URLs
+    + The above change also fixes a bashism (closes: #477613)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 24 Apr 2008 23:48:59 +0200
+
+myspell-pt-br (2007.11.06-2) unstable; urgency=low
+
+  * debian/copyright: Converted into UTF-8
+  * debian/control:
+    + Use the now official Vcs-* fields instead of the obsolete XS-Vcs-*
+    + Dropped the Homepage pseudo-header from the extended description
+    + Bumped Standards-Version to 3.7.3
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 16 Dec 2007 00:17:07 +0100
+
+myspell-pt-br (2007.11.06-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 08 Nov 2007 07:57:40 +0100
+
+myspell-pt-br (2007.11.01-1) unstable; urgency=low
+
+  * New upstream release.  The comment escape characters in the pt_BR.aff
+    are fixed (closes: #448836).
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 01 Nov 2007 22:02:50 +0100
+
+myspell-pt-br (2007.10.01-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Added Homepage field
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 04 Oct 2007 15:27:32 +0200
+
+myspell-pt-br (2007.04.11-2) unstable; urgency=low
+
+  * Build-Depends on dictionaries-common-dev, making the package build in
+    a clean chroot (closes: #432374)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Mon,  9 Jul 2007 21:52:25 +0200
+
+myspell-pt-br (2007.04.11-1) unstable; urgency=low
+
+  * Initial release (closes: #431115)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sat, 30 Jun 2007 09:15:17 +0200
--- myspell-pt-br-20100109.orig/debian/myspell-pt-br.info-myspell
+++ myspell-pt-br-20100109/debian/myspell-pt-br.info-myspell
@@ -0,0 +1 @@
+DICT pt BR pt_BR
--- myspell-pt-br-20100109.orig/debian/aspell-pt-br.postinst
+++ myspell-pt-br-20100109/debian/aspell-pt-br.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+COMPAT="pt_BR.compat"
+
+if [ "$1" = "reconfigure" ] || [ "$DEBCONF_RECONFIGURE" ]; then
+    echo "0" > "/var/lib/aspell/$COMPAT"
+fi
+
+#DEBHELPER#
--- myspell-pt-br-20100109.orig/debian/control
+++ myspell-pt-br-20100109/debian/control
@@ -0,0 +1,30 @@
+Source: myspell-pt-br
+Section: text
+Priority: optional
+Maintainer: Agustin Martin Domingo <agmartin@debian.org>
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: aspell, tofrodos, dictionaries-common-dev (>= 1.4)
+Standards-Version: 3.8.4
+Homepage: http://www.broffice.org.br/verortografico
+Vcs-Git: git://git.debian.org/users/agmartin/portuguese/myspell-pt-br.git
+Vcs-Browser: http://git.debian.org/?p=users/agmartin/portuguese/myspell-pt-br.git;a=summary
+
+Package: myspell-pt-br
+Architecture: all
+Provides: myspell-dictionary, myspell-dictionary-pt, myspell-dictionary-pt-br
+Depends: ${misc:Depends}, dictionaries-common (>= 0.20)
+Suggests: openoffice.org (>= 1.0.3-3)
+Conflicts: openoffice.org (<= 1.0.3-2)
+Description: Brazilian Portuguese dictionary for myspell
+ This is the Brazilian Portuguese dictionary for use with the myspell
+ spellchecker which is currently used within OpenOffice.org and the mozilla
+ spellchecker.
+
+Package: aspell-pt-br
+Architecture: all
+Provides: aspell-dictionary
+Depends: ${misc:Depends}, aspell (>= 0.60.3-3), dictionaries-common (>= 0.9.1)
+Conflicts: aspell-pt (<= 0.50-2-1), aspell-pt-common (<< 1.0)
+Description: Brazilian Portuguese dictionary for GNU Aspell
+ This package contains all the required files to add support for the
+ Brazilian Portuguese language to the GNU Aspell spell checker.
--- myspell-pt-br-20100109.orig/debian/rules
+++ myspell-pt-br-20100109/debian/rules
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# include /usr/share/dpatch/dpatch.make
+
+WWWSITE  = http://www.broffice.org.br/verortografico/baixar
+MPACKAGE = myspell-pt-br
+APACKAGE = aspell-pt-br
+OOOTMP   = ooo-tmp
+
+configure: configure-stamp
+configure-stamp:   # We really do not neeed to configure anything here
+	dh_testdir
+	touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp  #patch-stamp
+	dh_testdir
+	sed -e '1d' -e '/[\. ]/d' pt_BR.dic | fromdos | \
+		grep -v ^[ºª] | prezip -s | gzip -9 -c > debian/aspell-files/pt_BR.cwl.gz
+	install -m 644 pt_BR.aff debian/aspell-files/pt_BR_affix.dat
+	fromdos debian/aspell-files/pt_BR_affix.dat
+	touch debian/aspell-files/pt_BR.compat debian/aspell-files/pt_BR.rws
+	touch $@
+
+clean: #unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	rm -f debian/aspell-files/pt_BR_affix.dat debian/aspell-files/pt_BR.cwl.gz \
+	      debian/aspell-files/pt_BR.compat debian/aspell-files/pt_BR.rws
+	#rm -rf $(OOOTMP)
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	dh_install
+
+	installdeb-myspell  -p$(MPACKAGE) --srcdir=.
+	installdeb-hunspell -p$(MPACKAGE)
+	installdeb-aspell   -p$(APACKAGE)
+
+# Build architecture-independent files here.
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs -A debian/README.Debian
+	dh_link -p$(APACKAGE) var/lib/aspell/pt_BR.rws usr/lib/aspell/pt_BR.rws
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums -Xvar/lib/aspell
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: install
+# We have nothing to do by default.
+
+binary: binary-indep binary-arch
+
+get-orig-source:
+	uscan
+
+.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source
--- myspell-pt-br-20100109.orig/debian/aspell-files/pt_BR.dat
+++ myspell-pt-br-20100109/debian/aspell-files/pt_BR.dat
@@ -0,0 +1,8 @@
+name            pt_BR
+charset         iso-8859-1
+soundslike	generic
+special         - -*- ' -*- ª --* º --* µ **-
+keyboard        br-abnt2
+affix           pt_BR
+affix-compress  true
+repl-table	pt_BR_affix.dat
--- myspell-pt-br-20100109.orig/debian/aspell-files/pt_BR.multi
+++ myspell-pt-br-20100109/debian/aspell-files/pt_BR.multi
@@ -0,0 +1,2 @@
+# Generated with Aspell Dicts "proc" script version 0.60.3
+add pt_BR.rws
--- myspell-pt-br-20100109.orig/debian/aspell-files/br-abnt2.kbd
+++ myspell-pt-br-20100109/debian/aspell-files/br-abnt2.kbd
@@ -0,0 +1,27 @@
+# ABNT2 layout data file for Aspell 6.
+# Similar to the standard keyboard data file, but with Ã§.
+
+qw
+we
+er
+rt
+ty
+yu
+ui
+io
+op
+as
+sd
+df
+fg
+gh
+hj
+jk
+kl
+lÃ§
+zx
+xc
+cv
+vb
+bn
+nm
--- myspell-pt-br-20100109.orig/debian/aspell-files/brasileiro.alias
+++ myspell-pt-br-20100109/debian/aspell-files/brasileiro.alias
@@ -0,0 +1 @@
+add pt_BR.multi
--- myspell-pt-br-20100109.orig/debian/aspell-files/brazilian.alias
+++ myspell-pt-br-20100109/debian/aspell-files/brazilian.alias
@@ -0,0 +1 @@
+add pt_BR.multi
