--- myspell.pt-20091013.orig/debian/watch
+++ myspell.pt-20091013/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://natura.di.uminho.pt/download/sources/Dictionaries/myspell/ \
+	myspell.pt-(\d+).tar.gz
--- myspell.pt-20091013.orig/debian/compat
+++ myspell.pt-20091013/debian/compat
@@ -0,0 +1 @@
+5
--- myspell.pt-20091013.orig/debian/aspell-pt-pt.postinst
+++ myspell.pt-20091013/debian/aspell-pt-pt.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+COMPAT="pt_PT.compat"
+
+if [ "$1" = "reconfigure" ] || [ "$DEBCONF_RECONFIGURE" ]; then
+    echo "0" > "/var/lib/aspell/$COMPAT"
+fi
+
+#DEBHELPER#
--- myspell.pt-20091013.orig/debian/copyright
+++ myspell.pt-20091013/debian/copyright
@@ -0,0 +1,80 @@
+This package was debianized by Rafael Laboissiere <rafael@debian.org> on
+Thu, 22 Jun 2006 11:43:49 +0200.
+
+aspell dict creation was added by Agustin Martin <agmartin@debian.org>
+on Wed Dec 2 13:17:35 CET 2009.
+
+It was downloaded from http://linguateca.di.uminho.pt/dics/dics.html
+
+Copyright Holders:
+    Jose Joao de Almeida <jj@di.uminho.pt>
+    Rui Vilela <ruivilela@di.uminho.pt>
+    Alberto SimÃµes <ambs@di.uminho.pt>
+
+License:
+
+Copyright (C) 2006-2008  Jose Joao de Almeida, Rui Vilela, Alberto SimÃµes
+
+All dictionary files and associated programs are currently covered
+by the GPL/LGPL/MPL licences, by this order.
+
+    GPL:
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program 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 General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+    LGPL:
+
+    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., 51 Franklin Street, Fifth Floor, Boston, MA
+    02110-1301 USA
+
+
+    MPL:
+
+    The contents of this file are subject to the Mozilla Public License
+    Version 1.1 (the "License"); you may not use this file except in
+    compliance with the License. You may obtain a copy of the License at
+    http://www.mozilla.org/MPL/
+
+    Software distributed under the License is distributed on an "AS IS"
+    basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+    License for the specific language governing rights and limitations
+    under the License.
+
+
+The Debian packaging is
+
+  Copyright (C) 2006-2008 Rafael Laboissiere
+  Copyright (C) 2009 Agustin Martin
+
+and is released under the conditions of the GNU General Public License,
+version 3 or later, see /usr/share/common-licenses/GPL-3.
+
+In Debian systems, the GNU General Public License, version 2, can be
+found at /usr/share/common-licenses/GPL-2 and the GNU Lesser General
+Public License, version 2, can be found at
+/usr/share/common-licenses/LGPL-2.
--- myspell.pt-20091013.orig/debian/myspell-pt-pt.docs
+++ myspell.pt-20091013/debian/myspell-pt-pt.docs
@@ -0,0 +1 @@
+README_pt_PT.txt
--- myspell.pt-20091013.orig/debian/changelog
+++ myspell.pt-20091013/debian/changelog
@@ -0,0 +1,189 @@
+myspell.pt (20091013-2) unstable; urgency=low
+
+  * Make sure aspell-pt-pt hash is rebuilt on reconfigure.
+  * Fix alias files for European Portuguese to work better
+    under Emacs.
+  * Bump Standards-Version to 3.8.4. No changes required.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Thu, 17 Jun 2010 15:50:47 +0200
+
+myspell.pt (20091013-1) unstable; urgency=low
+
+  * New Upstream release.
+  * Create aspell dictionary package from myspell dictionary sources.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Mon, 18 Jan 2010 16:45:59 +0100
+
+myspell.pt (20090309-3) unstable; urgency=low
+
+  * New Maintainer (Closes: #534361, #534375, #548217). Thanks
+    Rafael for all your work here.
+  * debian/control: Point Vcs entries to new locations.
+  * Bumped Standards-Version. No changes required.
+  * Add debian/myspell-pt-pt.info-hunspell.
+  * Use plain debhelper for package build.
+  * Use installdeb-myspell installation facilities.
+
+ -- Agustin Martin Domingo <agmartin@debian.org>  Wed, 07 Oct 2009 18:52:27 +0200
+
+myspell.pt (20090309-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * move dict to /usr/share/hunspell with compatibility symlinks from
+    /usr/share/myspell/dicts (closes: #541922)
+
+ -- Rene Engelhard <rene@debian.org>  Wed, 23 Sep 2009 23:20:20 +0200
+
+myspell.pt (20090309-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Bump Standards-Version to 3.8.1 (no changes needed)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sat, 28 Mar 2009 19:30:28 +0100
+
+myspell.pt (20081113-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Fix Lintian warnings debhelper-but-no-misc-depends
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 15 Feb 2009 17:23:58 +0100
+
+myspell.pt (20080705-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Fri, 11 Jul 2008 00:51:24 +0200
+
+myspell.pt (20080610-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Bumped Standards-Version to 3.8.0 (no changes needed)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sat, 21 Jun 2008 18:29:13 +0200
+
+myspell.pt (20080320-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Append trunk/ to the path in Vcs-Svn:, such that
+    debcheckout works
+  * debian/myspell-pt.copyright, debian/myspell-pt-pt.copyright: Add
+    proper copyright notices, both upstream and for the Debian packaging
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 27 Mar 2008 22:06:37 +0100
+
+myspell.pt (20071212-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/myspell-pt-pt.copyright: Converted into UTF-8
+  * debian/control:
+    + Added Homepage field
+    + 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>  Sat, 15 Dec 2007 22:38:22 +0100
+
+myspell.pt (20071003-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Added Homepage field
+
+ -- Rafael Laboissiere <rafael@debian.org>  Wed, 10 Oct 2007 08:25:16 +0200
+
+myspell.pt (20070823-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 30 Aug 2007 11:51:13 +0200
+
+myspell.pt (20070709-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Mon, 23 Jul 2007 10:48:46 +0200
+
+myspell.pt (20070427-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Fri,  4 May 2007 16:26:53 +0200
+
+myspell.pt (20070410-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Added XS-Vcs-Svn and XS-Vcs-Browser keywords
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sun, 22 Apr 2007 18:41:35 +0200
+
+myspell.pt (20070319-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: Updated Homepage URL
+  * Bumped build-dependency on debhelper to >= 5
+
+ -- Rafael Laboissiere <rafael@debian.org>  Tue, 20 Mar 2007 16:13:14 +0100
+
+myspell.pt (20070201-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Tue,  6 Feb 2007 21:34:28 +0100
+
+myspell.pt (20061226-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Wed, 31 Jan 2007 11:47:42 +0100
+
+myspell.pt (20060914-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Sat, 16 Sep 2006 12:39:25 +0200
+
+myspell.pt (20060831-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Fri,  1 Sep 2006 11:06:40 +0200
+
+myspell.pt (20060808-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Fri, 11 Aug 2006 22:30:27 +0200
+
+myspell.pt (20060705-3) unstable; urgency=low
+
+  * debian/myspell-pt-pt.links: Define symbolic links
+    /usr/share/myspell/dicts/pt.{aff,dic}, such that "Portuguese" is shown
+    up in Mozilla (closes: #378023)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Wed, 12 Jul 2006 19:30:40 +0200
+
+myspell.pt (20060705-2) unstable; urgency=low
+
+  * debian.control: Really build-depends on dictionaries-common-dev >= 0.70
+
+ -- Rafael Laboissiere <rafael@debian.org>  Wed,  5 Jul 2006 20:32:06 +0200
+
+myspell.pt (20060705-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Laboissiere <rafael@debian.org>  Wed,  5 Jul 2006 20:13:59 +0200
+
+myspell.pt (20060602-2) unstable; urgency=low
+
+  * debian/control: Build-depends on dictionaries-common-dev >= 0.70, the
+    version in which CDBS support has been introduced
+  * debian/rules: Include the CDBS makefile scrap dict-common.mk
+
+ -- Rafael Laboissiere <rafael@debian.org>  Tue,  4 Jul 2006 08:32:47 +0200
+
+myspell.pt (20060602-1) unstable; urgency=low
+
+  * Initial release (closes: #374965)
+
+ -- Rafael Laboissiere <rafael@debian.org>  Thu, 22 Jun 2006 13:51:32 +0200
+
--- myspell.pt-20091013.orig/debian/aspell-pt-pt.info-aspell
+++ myspell.pt-20091013/debian/aspell-pt-pt.info-aspell
@@ -0,0 +1,7 @@
+Language: português/europeu (Portuguese/European)
+Hash-Name: pt_PT
+Emacsen-Name: portugues
+Otherchars: [']
+Additionalchars: áéíóúàèìòùãõçâêôÁÉÍÓÚÀÈÌÒÙÃÕÇÂÊÔ
+Coding-System: iso-8859-1
+Aspell-Locales: pt_PT
--- myspell.pt-20091013.orig/debian/aspell-pt-pt.install
+++ myspell.pt-20091013/debian/aspell-pt-pt.install
@@ -0,0 +1,6 @@
+debian/aspell-files/pt_PT.compat	var/lib/aspell
+debian/aspell-files/pt_PT.rws		var/lib/aspell
+debian/aspell-files/*.multi 		usr/lib/aspell
+debian/aspell-files/*.dat 		usr/lib/aspell
+debian/aspell-files/*.alias		usr/lib/aspell
+debian/aspell-files/pt_PT.cwl.gz	usr/share/aspell
--- myspell.pt-20091013.orig/debian/myspell-pt-pt.info-myspell
+++ myspell.pt-20091013/debian/myspell-pt-pt.info-myspell
@@ -0,0 +1 @@
+DICT pt PT pt
--- myspell.pt-20091013.orig/debian/myspell-pt.copyright
+++ myspell.pt-20091013/debian/myspell-pt.copyright
@@ -0,0 +1,9 @@
+This package was debianized by Rafael Laboissiere <rafael@debian.org> on
+Thu, 22 Jun 2006 11:43:49 +0200.
+
+Copyright (C) 2006-2008  Rafael Laboissiere
+
+This is an empty package put in the public domain.  The sole purpose
+of the myspell-pt package is to depend on both myspell-pt-pt and
+myspell-pt-br, such that users interested in the myspell dictionaries
+pt_PT and pt_BR can install both at once.
--- myspell.pt-20091013.orig/debian/control
+++ myspell.pt-20091013/debian/control
@@ -0,0 +1,38 @@
+Source: myspell.pt
+Section: text
+Priority: optional
+Maintainer: Agustin Martin Domingo <agmartin@debian.org>
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: dictionaries-common-dev (>= 1.3.2)
+Standards-Version: 3.8.4
+Homepage: http://natura.di.uminho.pt/wiki/index.cgi?Myspell
+Vcs-Git: git://git.debian.org/users/agmartin/portuguese/myspell.pt.git
+Vcs-Browser: http://git.debian.org/?p=users/agmartin/portuguese/myspell.pt.git;a=summary
+
+Package: myspell-pt-pt
+Architecture: all
+Provides: myspell-dictionary, myspell-dictionary-pt, myspell-dictionary-pt-pt
+Depends: dictionaries-common (>= 0.20), ${misc:Depends}
+Suggests: openoffice.org (>= 1.0.3-3)
+Conflicts: openoffice.org (<= 1.0.3-2)
+Description: European Portuguese dictionary for myspell
+ This is the European Portuguese dictionary for use with the myspell
+ spellchecker which is currently used within OpenOffice.org and the mozilla
+ spellchecker.
+
+Package: myspell-pt
+Architecture: all
+Depends: myspell-pt-pt, myspell-pt-br, ${misc:Depends}
+Description: Portuguese dictionaries for myspell
+ This is an empty package whose sole purpose is to depend on both
+ myspell-pt-pt (European Portuguese) and myspell-pt-br (Brazilian
+ Portuguese) dictionaries for use with the myspell spellchecker.
+
+Package: aspell-pt-pt
+Architecture: all
+Provides: aspell-dictionary
+Depends: aspell (>= 0.60.3-3), dictionaries-common (>= 0.9.1), ${misc:Depends}
+Conflicts: aspell-pt (<< 1.0), aspell-pt-common (<< 1.0)
+Description: European Portuguese dictionary for GNU Aspell
+ This package contains all the required files to add support for the
+ European Portuguese language to the GNU Aspell spell checker.
--- myspell.pt-20091013.orig/debian/myspell-pt-pt.info-hunspell
+++ myspell.pt-20091013/debian/myspell-pt-pt.info-hunspell
@@ -0,0 +1,7 @@
+Language: português/europeu (Portuguese/European)
+Hash-Name: pt_PT
+Emacsen-Name: portugues
+Otherchars: [']
+Additionalchars: áéíóúàèìòùãõçâêôÁÉÍÓÚÀÈÌÒÙÃÕÇÂÊÔ
+Coding-System: iso-8859-1
+Hunspell-Locales: pt, pt_PT
--- myspell.pt-20091013.orig/debian/rules
+++ myspell.pt-20091013/debian/rules
@@ -0,0 +1,85 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# include /usr/share/dpatch/dpatch.make
+
+
+OOOTMP = ooo-tmp
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp  #patch-stamp
+	dh_testdir
+        # -- aspell
+	sed -e '1d' -e '/[\. ]/d' pt_PT.dic | prezip -s | gzip -9 -c > debian/aspell-files/pt_PT.cwl.gz
+	install -m 0644 pt_PT.aff debian/aspell-files/pt_PT_affix.dat
+	touch debian/aspell-files/pt_PT.compat debian/aspell-files/pt_PT.rws
+        # -- myspell
+	mkdir -p $(OOOTMP)
+	install -m 0644 pt_PT.aff $(OOOTMP)/pt.aff
+	install -m 0644 pt_PT.dic $(OOOTMP)/pt.dic
+
+	touch $@
+
+clean: #unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	#$(MAKE) clean
+	rm -f debian/aspell-files/pt_PT_affix.dat debian/aspell-files/pt_PT.cwl.gz
+	rm -f debian/aspell-files/pt_PT.compat debian/aspell-files/pt_PT.rws
+	rm -rf $(OOOTMP)
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+        # -- aspell-pt-pt
+	dh_install -paspell-pt-pt
+	installdeb-aspell -paspell-pt-pt
+        # Add here commands to install the package into debian/myspell-pt-pt
+	installdeb-myspell --srcdir=$(OOOTMP) -pmyspell-pt-pt
+	installdeb-hunspell -pmyspell-pt-pt
+
+# Build architecture-independent files here.
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_link
+	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
+.PHONY: build clean binary-indep binary-arch binary install configure
--- myspell.pt-20091013.orig/debian/aspell-pt-pt.links
+++ myspell.pt-20091013/debian/aspell-pt-pt.links
@@ -0,0 +1 @@
+var/lib/aspell/pt_PT.rws	usr/lib/aspell/pt_PT.rws
--- myspell.pt-20091013.orig/debian/aspell-files/pt_PT.multi
+++ myspell.pt-20091013/debian/aspell-files/pt_PT.multi
@@ -0,0 +1,2 @@
+# Generated with Aspell Dicts "proc" script version 0.60.4
+add pt_PT.rws
--- myspell.pt-20091013.orig/debian/aspell-files/pt_PT.dat
+++ myspell.pt-20091013/debian/aspell-files/pt_PT.dat
@@ -0,0 +1,8 @@
+name pt_PT
+charset iso-8859-1
+#special - -*-
+#soundslike pt_PT
+affix pt_PT
+affix-compress true
+repl-table pt_PT
+
--- myspell.pt-20091013.orig/debian/aspell-files/portuguese.alias
+++ myspell.pt-20091013/debian/aspell-files/portuguese.alias
@@ -0,0 +1 @@
+add pt_PT.multi
--- myspell.pt-20091013.orig/debian/aspell-files/portugues.alias
+++ myspell.pt-20091013/debian/aspell-files/portugues.alias
@@ -0,0 +1 @@
+add pt_PT.multi
