[SCM] Packaging for padre-plugin-perltidy branch, master, updated. upstream/0.06-10-g9aa55a4

Damyan Ivanov dmn at debian.org
Fri Jun 12 14:19:12 UTC 2009


The following commit has been merged in the master branch:
commit 1c495ee435947256629076819b90fe77808a61bf
Author: Damyan Ivanov <dmn at debian.org>
Date:   Fri Jun 12 17:01:50 2009 +0300

    add fix-menu-item-tests.patch, stolen from upstream
    
    add quilt to rules and control; add README.source

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..77e6b24
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,5 @@
+This package uses quilt for managing all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explaination.
diff --git a/debian/control b/debian/control
index c295f27..7853715 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
 Source: libpadre-plugin-perltidy-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7.0.50)
+Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7)
 Build-Depends-Indep: perl (>= 5.8.100), perl-modules, perltidy,
   padre-plugin-api-0, xvfb, xauth, xfonts-base
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
diff --git a/debian/patches/fix-menu-item-tests.patch b/debian/patches/fix-menu-item-tests.patch
new file mode 100644
index 0000000..34e3b1a
--- /dev/null
+++ b/debian/patches/fix-menu-item-tests.patch
@@ -0,0 +1,19 @@
+# Author: Brian Cassidy <bricas>
+# Description: fix menu item tests
+# Upstream-Changeset: http://padre.perlide.org/trac/changeset/5206
+--- a/t/01-load.t
++++ b/t/01-load.t
+@@ -16,7 +16,11 @@ diag "Wx Version: $Wx::VERSION " . Wx::w
+     my @menu = Padre::Plugin::PerlTidy->menu_plugins_simple;
+     is @menu, 2, 'one menu item';
+     is $menu[0], 'PerlTidy', 'plugin name';
+-    is $menu[1][0], 'Tidy the active document', 'menu item 1';
+-    is $menu[1][2], 'Tidy the selected text', 'menu item 2';
++
++    # check for existence and not the actual words as these
++    # are locale specific
++    ok $menu[1][0], 'menu item 1';
++    ok $menu[1][2], 'menu item 2';
++
+     BEGIN { $tests += 4; }
+ }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4aaf2d4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-menu-item-tests.patch
diff --git a/debian/rules b/debian/rules
index 1510761..f9fec9b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@
+	dh --with quilt $@
 
 override_dh_auto_build:
 	xvfb-run dh_auto_build

-- 
Packaging for padre-plugin-perltidy



More information about the Pkg-perl-cvs-commits mailing list