File: 20podbrowser.dpatch

package info (click to toggle)
podbrowser 0.03-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 172 kB
  • ctags: 54
  • sloc: perl: 771; sh: 78; makefile: 60
file content (47 lines) | stat: -rw-r--r-- 1,530 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh -e
## 20p_podbrowser.dpatch by Rudy Godoy <rudy@kernel-panik.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes podbrowser.pl to adapt to the current class location

if [ $# -lt 1 ]; then
   echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
   exit 1;
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"

case "$1" in
   -patch) patch -p1 ${patch_opts} < $0;;
   -unpatch) patch -R -p1 ${patch_opts} < $0;;
   *)
      echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
      exit 1;;
esac

exit 0;

@DPATCH@
--- podbrowser-0.03.orig/podbrowser.pl	2004-09-18 08:32:10.000000000 -0500
+++ podbrowser-0.03/podbrowser.pl	2006-09-04 08:30:43.178923000 -0500
@@ -6,8 +6,8 @@
 use Gtk2 -init;
 use Gtk2::GladeXML 1.001;
 use Gtk2::SimpleList;
-use Gtk2::PodViewer 0.08;
-use Gtk2::PodViewer::Parser qw(decode_entities);
+use Gtk2::Ex::PodViewer 0.08;
+use Gtk2::Ex::PodViewer::Parser qw(decode_entities);
 use Gnome2;
 use Locale::gettext;
 use POSIX qw(setlocale);
@@ -63,7 +63,7 @@
 $APP->get_widget('location')->disable_activate;
 $APP->get_widget('open_dialog_location')->disable_activate;
 
-my $viewer = Gtk2::PodViewer->new;
+my $viewer = Gtk2::Ex::PodViewer->new;
 $viewer->signal_connect('link_clicked' => \&link_clicked);
 $viewer->signal_connect('link_enter', sub { set_status($_[1]) });
 $viewer->signal_connect('link_leave', sub { set_status('') });