# HG changeset patch
# User Daniel Poelzleithner <poelzi@poelzi.org>
# Date 1220236807 -7200
# Node ID 8b31ccb72622af98380a2362a4f0bd6e36b20b75
# Parent  b8c14701ea1b8cf5a6c418a49e8dcec7a3b33a30
add debian package

diff -r b8c14701ea1b -r 8b31ccb72622 debian/README.Debian
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/README.Debian	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,7 @@
+medit for Debian
+----------------
+
+Even if the sourceforge project name is 'mooedit', the project name seems
+to have been updated to 'medit'. Then the package name is medit.
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>, Sun,  8 Apr 2007 22:47:29 +0200
diff -r b8c14701ea1b -r 8b31ccb72622 debian/changelog
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/changelog	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,98 @@
+medit (0.9.4-1) unstable; urgency=low
+
+  * update upstream 
+
+ -- Daniel Poelzleithner <poelzi@poelzi.org>  Mon, 01 Sep 2008 04:22:00 +0200
+
+medit (0.9.3-1ubuntu1) hardy; urgency=low
+
+  * ubuntu merge
+
+ -- Daniel Poelzleithner <poelzi@poelzi.org>  Tue, 26 Aug 2008 21:50:05 +0200
+
+medit (0.9.3-1) unstable; urgency=low
+
+  * update to upstream release 0.9.3 fixes #484257
+  * build moolib
+  * build python moolib bindings. fixes #465429
+
+ -- Daniel Poelzleithner <poelzi@poelzi.org>  Tue, 08 Jul 2008 11:32:13 +0200
+
+medit (0.9.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/dh_checkbuildlog: Update.
+  * debian/watch: Likewise.
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Mon, 14 Jan 2008 23:19:59 +0000
+
+medit (0.9.0-1) unstable; urgency=low
+
+  [ Arthur Loiret ]
+  * New upstream release.
+  * Use the dh_checkbuildlog script from the aulopa project.
+  * Set Standards-Version to 3.7.3.
+
+  [ Pierre Habouzit ]
+  * DM-Upload-Allowed: yes.
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Fri, 14 Dec 2007 11:54:59 +0000
+
+medit (0.8.11-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Sun, 11 Nov 2007 13:41:20 +0100
+
+medit (0.8.10-2) unstable; urgency=low
+
+  * debian/rules: Don't move /usr/lib/moo files to /usr/share/medit.
+    (Closes: #441974)
+  * debian/dirs: Remove /usr/share/medit.
+  * debian/control: mention homepage in Homepage: field.
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Thu, 13 Sep 2007 16:50:03 +0200
+
+medit (0.8.10-1) unstable; urgency=low
+
+  * New upstream release
+  * Build fine twice in a row (Closes: #424570)
+  * debian/rules: remove *.pyc files on clean
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Fri, 24 Aug 2007 18:21:42 +0200
+
+medit (0.8.9-1) unstable; urgency=low
+
+  * New upstream release
+  * debian/control: keep python support adding python-cairo-dev to Build-Depends
+  * debian/copyright: add missing copyrights and update licenses
+    + Thanks a lot to upstream author for his new LICENSE file
+  * debian/docs: remove TODO file from list as it has been removed upstream
+  * Update Maintainer's address in debian/copyright and debian/README.Debian
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Tue, 07 Aug 2007 00:07:32 +0000
+
+medit (0.8.6-1) unstable; urgency=low
+
+  * New upstream release
+  * Add (unintentionally removed on last upload) debian/watch
+  * Build with xml support
+    + debian/control: add libxml2-dev to Build-Depends
+    + debian/rules: add --with-xml to confflags
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Sat, 16 Jun 2007 20:29:06 +0200
+
+medit (0.8.5-1) unstable; urgency=low
+
+  * New upstream release
+  * Add debian/watch
+  * debian/rules: strip spaces and remove useless comments
+  * debian/control: new Maintainer mail address
+
+ -- Arthur Loiret <arthur.loiret@gmail.com>  Tue, 12 Jun 2007 10:46:39 +0200
+
+medit (0.8.3-1) unstable; urgency=low
+
+  * Initial release (Closes: #392291)
+
+ -- Arthur Loiret <freacky22527@free.fr>  Sun,  8 Apr 2007 22:47:29 +0200
diff -r b8c14701ea1b -r 8b31ccb72622 debian/compat
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/compat	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,1 @@
+5
diff -r b8c14701ea1b -r 8b31ccb72622 debian/control
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/control	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,23 @@
+Source: medit
+Section: editors
+Priority: optional
+Maintainer: Arthur Loiret <arthur.loiret@gmail.com>
+Build-Depends: debhelper (>= 5), autotools-dev, libxml-parser-perl, pkg-config, libgtk2.0-dev, python, python-dev, python-gtk2-dev, libxml2-dev, python-cairo-dev, dpatch
+Standards-Version: 3.7.3
+Homepage: http://mooedit.sourceforge.net/
+XS-DM-Upload-Allowed: yes
+
+Package: medit
+Architecture: any
+Depends: ${shlibs:Depends}, python
+Description: A useful programming and around-programming text editor
+ Features:
+  * Configurable syntax highlighting.
+  * Configurable keyboard accelerators.
+  * Multiplatform - works both on unix and windows.
+  * Plugins: can be written in C or Python.
+  * Configurable tools available from the main and context menus. They can be
+    written in Python, or it can be a shell script, or in MooScript - simple
+    builtin scripting lanugage.
+  * Regular expression search/replace, grep and find frontends, builtin file
+    selector and whatnot.
diff -r b8c14701ea1b -r 8b31ccb72622 debian/copyright
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/copyright	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,208 @@
+This package was debianized by Arthur Loiret <arthur.loiret@gmail.com> on
+Sun,  8 Apr 2007 22:47:29 +0200.
+
+It was downloaded from http://mooedit.sourceforge.net/
+
+Upstream Author: Yevgen Muntyan <muntyan@tamu.edu>
+
+Copyright (C) 2004-2006 Yevgen Muntyan <muntyan@tamu.edu>
+Copyright (C) 2003 Gustavo Giráldez <gustavo.giraldez@gmx.net>
+Copyright (C) 2000-2005 Paolo Maggi <paolo.maggi@polito.it>
+Copyright (C) 2002,2003 Jeroen Zwartepoorte
+Copyright (C) 2005-2006, Marco Barisione <marco@barisione.org>
+Copyright (C) 2005,2006 Emanuele Aina
+Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+Copyright (C) 1998 David Abilleira Freijeiro <odaf@nexo.es>
+Copyright (C) 2004, Matthias Clasen <mclasen@redhat.com>
+Copyright (C) 1998-2004 Red Hat, Inc.
+Copyright (C) 1999, 2000 Scott Wimer
+Copyright (C) 2006 Alexander Larsson <alexl@redhat.com>
+Copyright (C) 2000-2003 Ximian Inc.
+Copyright (C) 2006, Kevin Krammer <kevin.krammer@gmx.at>
+Copyright (C) 2006, Jeremy White <jwhite@codeweavers.com>
+Copyright (C) 2003 Francesco Gigli <jaramir@aruba.it>
+Copyright (C) 2004 David A Knight <david@ritter.demon.co.uk>
+Copyright (C) 2005 Rowan Lewis <rowanjl@gmail.com>
+Copyright (C) 2006 Steve Frécinaux <steve@istique.net>
+Copyright (C) 2007 Patryk Zawadzki <patrys@pld-linux.org>
+Copyright (C) 2003 John Luke <jluke@cfl.rr.com>
+Copyright (C) 2004 Alessio Frusciante <algol@firenze.linux.it>
+Copyright (C) 2005 Brion Vibber <brion@pobox.com>
+Copyright (C) 2005 Riccardo Lancellotti <riccardo@weblab.ing.unimo.it>
+Copyright (C) 2004 Benoît Dejean <TaZForEver@free.fr>
+Copyright (C) 2006, 2007 Steve Frécinaux <code@istique.net>
+Copyright (C) 2005-2007 Marco Barisione <barisione@gmail.com>
+Copyright (C) 2005 Silian Della Ragione <silian87@gechi.it>
+Copyright (C) 2006, 2007 Joachim Noreiko <jnoreiko@yahoo.com>
+Copyright (C) 2006-2007 GtkSourceView team
+Copyright (C) 2007 Konstantin Ryabitsev <icon@fedoraproject.org>
+Copyright (C) 2005 Jacob Ilsø Christensen <jacobilsoe@gmail.com>
+Copyright (C) 2005 Paolo Borelli <pborelli@katamail.com>
+Copyright (C) 2005 Jürg Billeter <j@bitron.ch>
+Copyright (C) 2006-2007 GtkSourceView team
+Copyright (C) 2005 Link M Dupont <link@subpop.net>
+Copyright (C) 2005 Andrew Johnson <acjgenius@earthlink.net>
+Copyright (C) 2005 Antonio Ognio <gnrfan@gnrfan.org>
+Copyright (C) 2005 Vaidotas Zemlys <mpiktas@gmail.com>
+Copyright (C) 2004, 2007 Duncan Coutts <duncan@haskell.org>
+Copyright (C) 2004 Anders Carlsson <andersca@gnome.org>
+Copyright (C) 2006 Martin Szulecki <compiz@sukimashita.com>
+Copyright (C) 2004 Andrew Johnson <acjgenius@earthlink.net>
+Copyright (C) 2005 Thierry Moisan <thierryn@videotron.ca>
+Copyright (C) 2003, 2005 Evert Verhellen <evert.verhellen@advalvas.be>
+Copyright (C) 2006 Søren Hauberg <soren@hauberg.org>
+Copyright (C) 2006 Muthiah Annamalai <gnumuthu@users.sf.net>
+Copyright (C) 2004 Archit Baweja <bighead@users.sourceforge.net>
+Copyright (C) 2005 Michael Witrant <mike@lepton.fr>
+Copyright (C) 2006 Gabriel Bauman <gbauman@gmail.com>
+Copyright (C) 2005-2007 Marco Barisione <barisione@gmail.com>
+Copyright (C) 2005 Paolo Maggi <paolo@gnome.org>
+Copyright (C) 2004 Scott Martin <scott@coffeeblack.org>
+Copyright (C) 2004 Bjørn Lindeijer <bjorn@lindeijer.nl>
+Copyright (C) 2003 Paolo Maggi
+Copyright (C) 2007 Paolo Borelli
+Copyright (C) 2004 Pawe W. Olszta <pawel.olszta@nemerle.org>
+Copyright (C) 2003 Antonio Ognio Cesti <antonio@linux.org.pe>
+Copyright (C) 2006 Sebastian Dröge <slomo@circular-chaos.org>
+Copyright (C) 2007, Mario Carrión, <mario@monouml.org>
+Copyright (C) 2005 Paolo Borelli <pborelli@katamail.com>
+Copyright (C) 2005 Ricardo Lenz
+Copyright (C) 2004 Scott Martin <scott@coffeeblack.org>
+Copyright (C) 2005 Stef Walter (formerly Nate Nielsen) <stef@memberwebs.com>
+Copyright (C) 2004, 2005, 2006 John Spray <jcs116@york.ac.uk>
+Copyright (C) 2005 Jerry DeLisle <jvdelisle@verizon.net>
+Copyright (C) 2007 Duncan Coutts <duncan@haskell.org>
+Copyright (C) 2003 Michael Terry <mike@mterry.name>
+Copyright (C) 2004 Benoît Dejean <tazforever@dlfp.org>
+Copyright (C) 2007 Eric Cooper <ecc@cmu.edu>
+Copyright (C) 2007 Eric Norige <thelema314@gmail.com>
+Copyright (C) 2004 John Luke <jluke@cfl.rr.com>
+Copyright (C) 2004 Travis A. Snoozy
+Copyright (C) 2007 Duncan Coutts <duncan@haskell.org>
+Copyright (C) 2006 Luca Cavalli <lcavalli@cvs.gnome.org>
+Copyright (C) 2003-2007 Paolo Borelli
+Copyright (C) 2006 Jeff Walden <jwalden@mit.edu>
+Copyright (C) 2007 - Gustavo Giráldez and Paolo Maggi
+Copyright (C) 2003 - Gustavo Giráldez
+Copyright (C) 2003-2007 - Paolo Maggi <paolo@gnome.org>
+Copyright (C) 2007 Novell, Inc.
+Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
+
+
+Licenses:
+
+    medit is distributed under GPL licence, its text you can
+    find in COPYING.GPL file. Nevertheless, everything but
+    several lang files (see list below) is under LGPL, see
+    COPYING file.
+
+    Portions of code are written not by me, those are clearly
+    marked as such (copyright headers in files copied from other
+    projects, or comments in source). Below is the list of
+    thrid-party files/code with their copyrights and licenses.
+
+    If you want to use my code and LGPL doesn't work for you
+    because you have special clause in your license which is not
+    LGPL-compatible, or other garbage like that, I will gladly
+    release it under double license, or do something like that.
+    Just tell me what exactly is needed.
+
+    If you aren't too picky about legal stuff, then you can simply
+    take code and use it in free software as you like, provided
+    you leave the copyright and project name in there (unless it's a
+    small portion of code of course, simple copy/paste must be free
+    as in WTFL). This applies to all files (and only to those) which
+    do have copyright notice inside; WTFL will work fine for the rest.
+
+On Debian systems, the complete text of the GNU General
+Public License and the GNU Lesser General Public License 
+can be found in `/usr/share/common-licenses/'.
+
+
+Third-party stuff, for debian/copyright. Everything below
+is under LGPL unless noted otherwise.
+
+moo/mooutils/moofontsel.h:
+moo/mooutils/moofontsel.c:
+    GTK font selector modified to show monospace fonts
+    (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+
+moo/mooterm/pty.h:
+moo/mooterm/pty.c:
+    VTE terminal code modified to work under BSD.
+    (C) 2001,2002 Red Hat, Inc.
+
+mooterm/mooterm-input.c, moo_term_key_press():
+    VTE terminal code.
+    (C) 2001-2004 Red Hat, Inc.
+
+moo/mooutils/mooencodings-data.h:
+    (C) 2002 Red Hat, Inc.
+    (C) 2000-2002 Free Software Foundation, Inc.
+
+moo/mooapp/smclient/*: - eggsmclient library
+    (C) 2007 Novell, Inc.
+
+moo/mooutils/pcre/*: pcre library by by Philip Hazel
+    BSD-licensed, (C) 1997-2006 University of Cambridge
+
+moo/mooedit/gtksourceview/upstream/*:
+moo/mooedit/language-specs/*:
+    gtksourceview library
+    Written over many years by many people, see the files.
+
+    Among those, GPL'ed files:
+        moo/mooedit/language-specs/gtkrc.lang
+        moo/mooedit/language-specs/ini.lang
+        moo/mooedit/language-specs/lua.lang
+        moo/mooedit/language-specs/msil.lang
+        moo/mooedit/language-specs/nemerle.lang
+        moo/mooedit/language-specs/pascal.lang
+        moo/mooedit/language-specs/php.lang
+        moo/mooedit/language-specs/python.lang
+        moo/mooedit/language-specs/R.lang
+        moo/mooedit/language-specs/ruby.lang
+
+moo/moopython/codegen/*: pygtk codegen
+    (C) 2004 Gustavo Carneiro <gjc@gnome.org>
+    (C) ???? James Henstridge <james@daa.com.au>
+    (C) ???? Johan Dahlin <johan@gnome.org>
+
+moo/moopython/pygtk/goocanvas/*: GooCanvas library
+    (C) 2005-2007 Damon Chaplin
+
+moo/moopython/pygtk/pygoocanvas/*: pygoocanvas
+    (C) 2006,2007 Gian Mario Tagliaretti <gianmt@gnome.org>
+    (C) 2006,2007 Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
+
+moo/mooutils/xdgmime/*: xdgmime library
+    (C) 2003,2004  Red Hat, Inc.
+    (C) 2003,2004  Jonathan Blandford <jrb@alum.mit.edu>
+
+moo/xdg-utils:
+    Looks like some sort of BSD license
+    (C) 2006 Kevin Krammer <kevin.krammer@gmx.at>
+    (C) 2006 Jeremy White <jwhite@codeweavers.com>
+
+moo/mooutils/newgtk/glib-2.8/glib/gmappedfile.[ch]:
+moo/mooutils/newgtk/glib-2.12/glib/gbase64.[ch]:
+moo/mooutils/newgtk/glib-2.14/glib/gregex.[ch]:
+moo/mooutils/moocompat.[ch]:
+    Gtk and Glib code for older systems
+    Copyright 2000 Red Hat, Inc.
+    Copyright 2001,2005 Red Hat, Inc.
+    Copyright (C) 1995-1998  Peter Mattis, Spencer Kimball and Josh MacDonald
+    Copyright (C) 1999, 2000 Scott Wimer
+    Copyright (C) 2004, Matthias Clasen <mclasen@redhat.com>
+    Copyright (C) 2005 - 2007, Marco Barisione <marco@barisione.org>
+    Copyright (C) 2005  Alexander Larsson <alexl@redhat.com>
+    Copyright (C) 2006 Alexander Larsson <alexl@redhat.com>
+    Copyright (C) 2000-2003 Ximian Inc.
+    Copyright 2005 Matthias Clasen
+
+moo/mooutils/pixmaps/medit.png:
+    xedit.png icon from Crystal Clear icon theme by Everaldo Coelho,
+    http://www.everaldo.com
+
+The Debian packaging is (C) 2007, Arthur Loiret <arthur.loiret@gmail.com> and
+is licensed under the GPL, see above.
diff -r b8c14701ea1b -r 8b31ccb72622 debian/dh_checkbuildlog
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/dh_checkbuildlog	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,100 @@
+#!/usr/bin/perl -w
+
+# USAGE:
+# debian/rules:
+#  $(MAKE) foo | tee log-foo
+#  $(MAKE) bar | tee log-bar
+#  ...
+#  dh_checkbuildlog log-foo log-bar
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+init();
+
+if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~ /nocheck/) {
+	exit;
+}
+
+my @files;
+my @warnings;
+
+sub uniq {
+	my @list;
+	my @result;
+	my $uniq;
+	foreach my $item (@_) {
+	$uniq = 0;
+		foreach my $elem (@list) {
+			if($elem eq $item) {
+				$uniq = 1;
+				last;
+			}
+		}
+		if($uniq == 0) {
+			push @result, $item;
+		}
+		push @list, $item;
+	}
+	return @result;
+}
+
+sub list {
+	my %list;
+	my $foo;
+
+	foreach my $item (@_) {
+		$foo = 0;
+		foreach my $key (sort keys %list) {
+			if($key eq $item) {
+				$list{$key}++;
+				$foo = 1;
+			}
+		}
+		if($foo == 0) {
+			$list{$item} = 1;
+		}
+	}
+	foreach my $key (sort keys %list) {
+		print " $list{$key} $key\n";
+	}
+}
+
+
+sub warn_summay {
+	open(LOGFILE, $_[0])
+		or die "error: could not open $_[0]\n";
+	while(my $line = <LOGFILE>) {
+
+		# we got a warning
+		if($line =~ /^.*\..*:\d+: warning: /) {
+			chomp($line);
+
+			$line =~ /^(.*\..*):\d+: warning: (.*)$/
+				and my $file = $1
+				and my $warning = $2;
+
+			$warning =~ s/('[^']+')/???/g;
+			$warning =~ s/argument \d+/argument ???/g;
+
+			push @files, $file;
+			push @warnings, $warning;
+		}
+	}
+}
+
+
+foreach my $item (@ARGV) {
+	verbose_print("parsing: $item");
+	warn_summay($item);
+}
+
+
+print "Warnings per Files:\n";
+list(@files);
+
+print "\n\n";
+
+print "Warnings per Types:\n";
+list(@warnings);
+
diff -r b8c14701ea1b -r 8b31ccb72622 debian/dirs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/dirs	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,1 @@
+usr/bin
diff -r b8c14701ea1b -r 8b31ccb72622 debian/docs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/docs	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,2 @@
+NEWS
+README
diff -r b8c14701ea1b -r 8b31ccb72622 debian/manpages
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/manpages	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,2 @@
+debian/medit.1
+
diff -r b8c14701ea1b -r 8b31ccb72622 debian/medit.1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/medit.1	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,47 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH MEDIT "1" "April 2007" "medit 0.8.3" "User Commands"
+.SH NAME
+medit \- useful programming and around-programming text editor
+.SH SYNOPSIS
+.B medit
+[\fIOPTIONS\fR] [\fIFILES\fR]
+.SH OPTIONS
+.TP
+\fB\-n\fR, \fB\-\-new\-app\fR
+Run new instance of application
+.TP
+\fB\-\-pid\fR=\fIPID\fR
+Use existing instance with process id PID
+.TP
+\fB\-m\fR, \fB\-\-mode\fR=\fI[simple\fR|project]
+Use specified mode
+.TP
+\fB\-p\fR, \fB\-\-project\fR=\fIPROJECT\fR
+Open project file PROJECT
+.TP
+\fB\-l\fR, \fB\-\-line\fR=\fILINE\fR
+Open file and position cursor on line LINE
+.TP
+\fB\-\-log\fR[=\fIFILE\fR]
+Show debug output or write it to FILE
+.TP
+\fB\-\-debug\fR
+Run in debug mode
+.TP
+\fB\-\-version\fR
+Display version information and exit
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Display this help text and exit
+.SH "SEE ALSO"
+The full documentation for
+.B medit
+is maintained as a Texinfo manual.  If the
+.B info
+and
+.B medit
+programs are properly installed at your site, the command
+.IP
+.B info medit
+.PP
+should give you access to the complete manual.
diff -r b8c14701ea1b -r 8b31ccb72622 debian/patched/01-makefile_patch.dpatch.failed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/patched/01-makefile_patch.dpatch.failed	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,21 @@
+patching file moo/Makefile.am
+Hunk #1 FAILED at 147.
+1 out of 1 hunk FAILED -- saving rejects to file moo/Makefile.am.rej
+patching file moo/Makefile.in
+Hunk #2 succeeded at 178 with fuzz 2 (offset 3 lines).
+Hunk #3 succeeded at 227 (offset -5 lines).
+Hunk #4 succeeded at 334 with fuzz 2 (offset -5 lines).
+Hunk #5 FAILED at 521.
+Hunk #6 succeeded at 573 (offset -17 lines).
+Hunk #7 succeeded at 582 (offset -17 lines).
+Hunk #8 succeeded at 609 (offset -17 lines).
+Hunk #9 succeeded at 618 (offset -17 lines).
+Hunk #10 succeeded at 636 (offset -17 lines).
+Hunk #11 succeeded at 645 (offset -17 lines).
+Hunk #12 succeeded at 663 (offset -17 lines).
+Hunk #13 succeeded at 672 (offset -17 lines).
+Hunk #14 succeeded at 814 (offset -91 lines).
+Hunk #15 succeeded at 840 (offset -91 lines).
+Hunk #16 succeeded at 851 (offset -91 lines).
+1 out of 16 hunks FAILED -- saving rejects to file moo/Makefile.in.rej
+md5sum: 97b10f133bbad3cdb34155fbe64b706f  /home/poelzi/Projects/mooedit/moo/debian/patches/01-makefile_patch.dpatch
diff -r b8c14701ea1b -r 8b31ccb72622 debian/patches/00list
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/patches/00list	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,1 @@
+01-makefile_patch
diff -r b8c14701ea1b -r 8b31ccb72622 debian/patches/01-makefile_patch.dpatch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/patches/01-makefile_patch.dpatch	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,159 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_makefile_patch.dpatch by  <danpoe@ibmwrk02.yoosic.local>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix libmoo linking
+
+@DPATCH@
+
+--- medit-0.9.3.org/moo/Makefile.am	2008-02-10 09:01:00.000000000 +0100
++++ medit-0.9.3/moo/Makefile.am	2008-07-08 11:35:02.000000000 +0200
+@@ -147,5 +147,5 @@
+ pyexec_LTLIBRARIES = moo.la
+ moo_la_SOURCES = moo.h
+-moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS)
++moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS) -lX11
+ moo_la_LIBADD = moopython/libmoomod.la libmoo.la $(MOO_LIBS) $(PYTHON_LIBS)
+ endif MOO_BUILD_MOO_MODULE
+--- medit-0.9.3.org/moo/Makefile.in	2008-02-10 09:01:10.000000000 +0100
++++ medit-0.9.3/moo/Makefile.in	2008-07-08 11:35:55.000000000 +0200
+@@ -1,7 +1,7 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
++# Makefile.in generated by automake 1.10.1 from Makefile.am.
+ # @configure_input@
+ 
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
++# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
+ # This Makefile.in is free software; the Free Software Foundation
+ # gives unlimited permission to copy and/or distribute it,
+@@ -175,5 +175,5 @@
+ scriptsSCRIPT_INSTALL = $(INSTALL_SCRIPT)
+ SCRIPTS = $(scripts_SCRIPTS)
+-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
++DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+@@ -232,4 +232,5 @@
+ DEPDIR = @DEPDIR@
+ DLLTOOL = @DLLTOOL@
++DSYMUTIL = @DSYMUTIL@
+ ECHO = @ECHO@
+ ECHO_C = @ECHO_C@
+@@ -338,4 +339,5 @@
+ MSGFMT_OPTS = @MSGFMT_OPTS@
+ MSGMERGE = @MSGMERGE@
++NMEDIT = @NMEDIT@
+ OBJC = @OBJC@
+ OBJCDEPMODE = @OBJCDEPMODE@
+@@ -524,5 +526,5 @@
+ @MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_SOURCES = moo.h
+ @MOO_OS_UNIX_FALSE@@MOO_USE_PYTHON_TRUE@moo_la_SOURCES = moo.h
+-@MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS)
++@MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS) -lX11
+ @MOO_OS_UNIX_FALSE@@MOO_USE_PYTHON_TRUE@moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS) -Wl,moo.res
+ @MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_LIBADD = moopython/libmoomod.la libmoo.la $(MOO_LIBS) $(PYTHON_LIBS)
+@@ -588,6 +590,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -597,6 +599,6 @@
+ 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+ 	done
+ 
+@@ -624,6 +626,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(plugindir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(plugindir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(plugindir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(plugindir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -633,6 +635,6 @@
+ 	@list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$p"; \
+ 	done
+ 
+@@ -651,6 +653,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginlibdir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginlibdir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginlibdir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginlibdir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -660,6 +662,6 @@
+ 	@list='$(pluginlib_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pluginlibdir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pluginlibdir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginlibdir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginlibdir)/$$p"; \
+ 	done
+ 
+@@ -678,6 +680,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pyexecdir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pyexecdir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pyexecdir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pyexecdir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -687,6 +689,6 @@
+ 	@list='$(pyexec_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$p"; \
+ 	done
+ 
+@@ -903,6 +905,6 @@
+ 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ 	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
++	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
++	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+ 	mkid -fID $$unique
+ tags: TAGS
+@@ -929,6 +931,6 @@
+ 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ 	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
++	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
++	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+ 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ 	  test -n "$$unique" || unique=$$empty_fix; \
+@@ -940,11 +942,10 @@
+ 		$(TAGS_FILES) $(LISP)
+ 	tags=; \
+-	here=`pwd`; \
+ 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+ 	unique=`for i in $$list; do \
+ 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ 	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
++	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
++	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+ 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
diff -r b8c14701ea1b -r 8b31ccb72622 debian/patches/01_makefile_patch.dpatch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/patches/01_makefile_patch.dpatch	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,173 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_makefile_patch.dpatch by  <danpoe@ibmwrk02.yoosic.local>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fix libmoo linking
+
+@DPATCH@
+
+--- medit-0.9.3.org/moo/Makefile.am	2008-02-10 09:01:00.000000000 +0100
++++ medit-0.9.3/moo/Makefile.am	2008-07-08 16:27:31.000000000 +0200
+@@ -115,5 +115,5 @@
+ 
+ libmoo_la_LIBADD = $(libs) $(MOO_LIBS) $(MOO_OBJC_LIBS)
+-libmoo_la_LDFLAGS = $(libmoo_res_ldflag) -no-undefined -avoid-version $(export_flags)
++libmoo_la_LDFLAGS = $(libmoo_res_ldflag) -no-undefined -avoid-version $(export_flags) -lX11
+ libmoo_la_SOURCES = $(moo_include_headers)
+ nodist_libmoo_la_SOURCES += $(nodist_moo_include_headers)
+@@ -147,5 +147,5 @@
+ pyexec_LTLIBRARIES = moo.la
+ moo_la_SOURCES = moo.h
+-moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS)
++moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS) -lX11
+ moo_la_LIBADD = moopython/libmoomod.la libmoo.la $(MOO_LIBS) $(PYTHON_LIBS)
+ endif MOO_BUILD_MOO_MODULE
+--- medit-0.9.3.org/moo/Makefile.in	2008-02-10 09:01:10.000000000 +0100
++++ medit-0.9.3/moo/Makefile.in	2008-07-08 16:28:04.000000000 +0200
+@@ -1,7 +1,7 @@
+-# Makefile.in generated by automake 1.10 from Makefile.am.
++# Makefile.in generated by automake 1.10.1 from Makefile.am.
+ # @configure_input@
+ 
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+-# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
++# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
+ # This Makefile.in is free software; the Free Software Foundation
+ # gives unlimited permission to copy and/or distribute it,
+@@ -175,5 +175,5 @@
+ scriptsSCRIPT_INSTALL = $(INSTALL_SCRIPT)
+ SCRIPTS = $(scripts_SCRIPTS)
+-DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@
++DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+@@ -232,4 +232,5 @@
+ DEPDIR = @DEPDIR@
+ DLLTOOL = @DLLTOOL@
++DSYMUTIL = @DSYMUTIL@
+ ECHO = @ECHO@
+ ECHO_C = @ECHO_C@
+@@ -338,4 +339,5 @@
+ MSGFMT_OPTS = @MSGFMT_OPTS@
+ MSGMERGE = @MSGMERGE@
++NMEDIT = @NMEDIT@
+ OBJC = @OBJC@
+ OBJCDEPMODE = @OBJCDEPMODE@
+@@ -507,5 +509,5 @@
+ 	$(am__append_21)
+ libmoo_la_LDFLAGS = $(libmoo_res_ldflag) -no-undefined -avoid-version \
+-	$(export_flags) $(am__append_22)
++	$(export_flags) -lX11 $(am__append_22)
+ libmoo_la_SOURCES = $(moo_include_headers) $(am__append_20)
+ 
+@@ -524,5 +526,5 @@
+ @MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_SOURCES = moo.h
+ @MOO_OS_UNIX_FALSE@@MOO_USE_PYTHON_TRUE@moo_la_SOURCES = moo.h
+-@MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS)
++@MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS) -lX11
+ @MOO_OS_UNIX_FALSE@@MOO_USE_PYTHON_TRUE@moo_la_LDFLAGS = $(moo_la_ldflags) $(PYTHON_LDFLAGS) -Wl,moo.res
+ @MOO_BUILD_MOO_MODULE_TRUE@@MOO_OS_UNIX_TRUE@@MOO_USE_PYTHON_TRUE@moo_la_LIBADD = moopython/libmoomod.la libmoo.la $(MOO_LIBS) $(PYTHON_LIBS)
+@@ -588,6 +590,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -597,6 +599,6 @@
+ 	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+ 	done
+ 
+@@ -624,6 +626,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(plugindir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(plugindir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(plugindir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(plugindir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -633,6 +635,6 @@
+ 	@list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$p"; \
+ 	done
+ 
+@@ -651,6 +653,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginlibdir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginlibdir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginlibdir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginlibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginlibdir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -660,6 +662,6 @@
+ 	@list='$(pluginlib_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pluginlibdir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pluginlibdir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginlibdir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginlibdir)/$$p"; \
+ 	done
+ 
+@@ -678,6 +680,6 @@
+ 	  if test -f $$p; then \
+ 	    f=$(am__strip_dir) \
+-	    echo " $(LIBTOOL) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pyexecdir)/$$f'"; \
+-	    $(LIBTOOL) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pyexecdir)/$$f"; \
++	    echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pyexecdir)/$$f'"; \
++	    $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pyexecLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pyexecdir)/$$f"; \
+ 	  else :; fi; \
+ 	done
+@@ -687,6 +689,6 @@
+ 	@list='$(pyexec_LTLIBRARIES)'; for p in $$list; do \
+ 	  p=$(am__strip_dir) \
+-	  echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$p'"; \
+-	  $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$p"; \
++	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pyexecdir)/$$p'"; \
++	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pyexecdir)/$$p"; \
+ 	done
+ 
+@@ -903,6 +905,6 @@
+ 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ 	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
++	  $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
++	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+ 	mkid -fID $$unique
+ tags: TAGS
+@@ -929,6 +931,6 @@
+ 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ 	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
++	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
++	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+ 	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ 	  test -n "$$unique" || unique=$$empty_fix; \
+@@ -940,11 +942,10 @@
+ 		$(TAGS_FILES) $(LISP)
+ 	tags=; \
+-	here=`pwd`; \
+ 	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
+ 	unique=`for i in $$list; do \
+ 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ 	  done | \
+-	  $(AWK) '    { files[$$0] = 1; } \
+-	       END { for (i in files) print i; }'`; \
++	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
++	      END { if (nonempty) { for (i in files) print i; }; }'`; \
+ 	test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ 	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
diff -r b8c14701ea1b -r 8b31ccb72622 debian/rules
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/rules	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,94 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+DESTDIR = $(CURDIR)/debian/medit
+
+CFLAGS = -Wall -g
+LDFLAGS= -Wl,-z,defs
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+include /usr/share/dpatch/dpatch.make
+
+confflags += --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+	     --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
+	     --with-xml --enable-moo-module --enable-libmoo
+
+config.status: configure
+	dh_testdir
+	./configure  $(confflags) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+
+
+build: build-stamp
+build-stamp: patch-stamp config.status
+	dh_testdir
+
+	$(MAKE) 2>&1 | tee debian/build-log
+
+	chmod a+x debian/dh_checkbuildlog
+	debian/dh_checkbuildlog debian/build-log
+
+	touch $@
+
+clean: clean1 unpatch
+clean1: 
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	[ ! -f Makefile ] || $(MAKE) distclean
+
+	find . -type f -name "*.pyc" | xargs rm -f
+
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	rm -rf *~ debian/tmp debian/*~ debian/files* debian/*substvars
+	rm -f debian/build-log
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+		
+	$(MAKE) install DESTDIR=$(DESTDIR)
+	chmod a+x $(DESTDIR)/usr/share/moo/language-specs/check.sh
+	chmod a+x $(DESTDIR)/usr/lib/moo/plugins/lib/pyconsole.py
+#	rm -rf $(DESTDIR)/usr/lib/python* $(DESTDIR)/usr/include
+#	See #441974
+#	mv $(DESTDIR)/usr/lib/moo $(DESTDIR)/usr/share/medit
+
+binary-indep: build install
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installexamples -a
+	dh_installman -a
+	dh_installmime -a
+	dh_link
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff -r b8c14701ea1b -r 8b31ccb72622 debian/watch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debian/watch	Mon Sep 01 04:40:07 2008 +0200
@@ -0,0 +1,3 @@
+version=3
+
+http://sf.net/mooedit/medit-([\d\.]+)\.tar\.bz2
diff -r b8c14701ea1b -r 8b31ccb72622 doc/help/index.html
--- a/doc/help/index.html	Sun Aug 31 16:16:00 2008 -0500
+++ b/doc/help/index.html	Mon Sep 01 04:40:07 2008 +0200
@@ -10,7 +10,7 @@
 <DIV CLASS="header" ID="header">
 
 
-<!--<div style="float:right;"><a href="/home/muntyan/projects/moo/doc/medit.html">Print version</a>-->
+<!--<div style="float:right;"><a href="/home/poelzi/Projects/mooedit/moo/doc/medit.html">Print version</a>-->
 <!--<br><sup>(all sections in one long page)</sup></div>-->
 
 <H1>medit 0.9.5 Manual</H1>
diff -r b8c14701ea1b -r 8b31ccb72622 doc/help/license-xdg-utils.html
--- a/doc/help/license-xdg-utils.html	Sun Aug 31 16:16:00 2008 -0500
+++ b/doc/help/license-xdg-utils.html	Mon Sep 01 04:40:07 2008 +0200
@@ -58,7 +58,7 @@
 </DIV>
 
 <!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
-<!-- cmdline: txt2tags -\-outfile=/home/muntyan/projects/moo/doc/medit.html /home/muntyan/projects/moo/doc/medit.t2t -->
+<!-- cmdline: txt2tags -\-outfile=/home/poelzi/Projects/mooedit/moo/doc/medit.html ./medit.t2t -->
 
 
 <ul>
