r25422 - in /trunk/html-munger: Makefile.PL Munger.pm debian/ debian/HTML::Munger.3pm debian/changelog debian/compat debian/control debian/copyright debian/rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Fri Sep 19 20:53:47 UTC 2008


Author: gregoa
Date: Fri Sep 19 20:53:44 2008
New Revision: 25422

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=25422
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    trunk/html-munger/debian/
    trunk/html-munger/debian/HTML::Munger.3pm
    trunk/html-munger/debian/changelog
    trunk/html-munger/debian/compat
    trunk/html-munger/debian/control
    trunk/html-munger/debian/copyright
    trunk/html-munger/debian/rules   (with props)
Modified:
    trunk/html-munger/Makefile.PL
    trunk/html-munger/Munger.pm

Modified: trunk/html-munger/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/Makefile.PL?rev=25422&op=diff
==============================================================================
--- trunk/html-munger/Makefile.PL (original)
+++ trunk/html-munger/Makefile.PL Fri Sep 19 20:53:44 2008
@@ -2,5 +2,7 @@
 
 WriteMakefile(
     'NAME'	   => 'HTML::Munger',
+    'PMLIBDIRS'	   => [ 'lib/HTML', 'lib/HTML/Munger' ],
     'VERSION_FROM' => 'Munger.pm',
+    'dist' => { 'COMPRESS' => 'gzip' }
 );

Modified: trunk/html-munger/Munger.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/Munger.pm?rev=25422&op=diff
==============================================================================
--- trunk/html-munger/Munger.pm (original)
+++ trunk/html-munger/Munger.pm Fri Sep 19 20:53:44 2008
@@ -1,5 +1,3 @@
-#!/usr/local/bin/perl -w
-
 package HTML::Munger;
 
 use strict;

Added: trunk/html-munger/debian/HTML::Munger.3pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/debian/HTML%3A%3AMunger.3pm?rev=25422&op=file
==============================================================================
--- trunk/html-munger/debian/HTML::Munger.3pm (added)
+++ trunk/html-munger/debian/HTML::Munger.3pm Fri Sep 19 20:53:44 2008
@@ -1,0 +1,206 @@
+.\" Automatically generated by Pod::Man version 1.02
+.\" Fri May 18 18:39:21 2001
+.\"
+.\" Standard preamble:
+.\" ======================================================================
+.de Sh \" Subsection heading
+.br
+.if t .Sp
+.ne 5
+.PP
+\fB\\$1\fR
+.PP
+..
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
+..
+.de Ip \" List item
+.br
+.ie \\n(.$>=3 .ne \\$3
+.el .ne 3
+.IP "\\$1" \\$2
+..
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+
+.fi
+..
+.\" Set up some character translations and predefined strings.  \*(-- will
+.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
+.\" double quote, and \*(R" will give a right double quote.  | will give a
+.\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used
+.\" to do unbreakable dashes and therefore won't be available.  \*(C` and
+.\" \*(C' expand to `' in nroff, nothing in troff, for use with C<>
+.tr \(*W-|\(bv\*(Tr
+.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
+.ie n \{\
+.    ds -- \(*W-
+.    ds PI pi
+.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
+.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
+.    ds L" ""
+.    ds R" ""
+.    ds C` `
+.    ds C' '
+'br\}
+.el\{\
+.    ds -- \|\(em\|
+.    ds PI \(*p
+.    ds L" ``
+.    ds R" ''
+'br\}
+.\"
+.\" If the F register is turned on, we'll generate index entries on stderr
+.\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and
+.\" index entries marked with X<> in POD.  Of course, you'll have to process
+.\" the output yourself in some meaningful fashion.
+.if \nF \{\
+.    de IX
+.    tm Index:\\$1\t\\n%\t"\\$2"
+.    .
+.    nr % 0
+.    rr F
+.\}
+.\"
+.\" For nroff, turn off justification.  Always turn off hyphenation; it
+.\" makes way too many mistakes in technical documents.
+.hy 0
+.if n .na
+.\"
+.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
+.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
+.bd B 3
+.    \" fudge factors for nroff and troff
+.if n \{\
+.    ds #H 0
+.    ds #V .8m
+.    ds #F .3m
+.    ds #[ \f1
+.    ds #] \fP
+.\}
+.if t \{\
+.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
+.    ds #V .6m
+.    ds #F 0
+.    ds #[ \&
+.    ds #] \&
+.\}
+.    \" simple accents for nroff and troff
+.if n \{\
+.    ds ' \&
+.    ds ` \&
+.    ds ^ \&
+.    ds , \&
+.    ds ~ ~
+.    ds /
+.\}
+.if t \{\
+.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
+.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
+.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
+.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
+.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
+.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
+.\}
+.    \" troff and (daisy-wheel) nroff accents
+.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
+.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
+.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
+.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
+.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
+.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
+.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
+.ds ae a\h'-(\w'a'u*4/10)'e
+.ds Ae A\h'-(\w'A'u*4/10)'E
+.    \" corrections for vroff
+.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
+.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
+.    \" for low resolution devices (crt and lpr)
+.if \n(.H>23 .if \n(.V>19 \
+\{\
+.    ds : e
+.    ds 8 ss
+.    ds o a
+.    ds d- d\h'-1'\(ga
+.    ds D- D\h'-1'\(hy
+.    ds th \o'bp'
+.    ds Th \o'LP'
+.    ds ae ae
+.    ds Ae AE
+.\}
+.rm #[ #] #H #V #F C
+.\" ======================================================================
+.\"
+.IX Title "Munger 3"
+.TH Munger 3pm "perl v5.6.0" "2001-03-04" "User Contributed Perl Documentation"
+.UC
+.SH "NAME"
+\&\s-1HTML:\s0:Munger \- Module which simplifies the creation of web filters.
+.SH "SYNOPSIS"
+.IX Header "SYNOPSIS"
+.Vb 1
+\& use HTML::Munger;
+.Ve
+.Vb 3
+\& $munger = new HTML::Munger;
+\& $munger->set_munger(\e&filter_function);
+\& $output = $munger->munge($URL, $selfURL, $input);
+.Ve
+.SH "DESCRIPTION"
+.IX Header "DESCRIPTION"
+\&\s-1HTML:\s0:Munger is a simple module which allows easy creation of web page
+filtering software.  It was first written to build the pootifier at
+http://pootpoot.com/?pootify
+.PP
+The main task which this module performs is attempting to make all the
+relative links on the filtered page absolute, so that images, and hyperlinks
+work correctly.  It also makes frames and hyperlinks properly filter back
+through the filter.
+.PP
+This leaves two major tasks for the user of \s-1HTML:\s0:Munger: fetching the original
+page, and building a simple munging function.
+.Sh "\s-1API\s0"
+.IX Subsection "API"
+There are really only three important functions you need to know how to call
+in order to use this module:
+.Ip "\fBnew\fR" 3
+.IX Item "new"
+This is a simple constructor, which takes no arguments aside from the implicit
+class.  It returns a blessed reference which is used to call the other methods.
+.Ip "\fBset_munger\fR" 3
+.IX Item "set_munger"
+This method registers the filtering function you want to be called to produce
+the filtered text.  The function specified will be called repeatedly with
+short blocks of text.  For example, given the following \s-1HTML:\s0
+.Sp
+.Vb 1
+\& <P>Hello</P><CENTER>The quick brown <I>fox</I></CENTER>
+.Ve
+The filtering function would be called three times, with 'Hello',
+\&'The quick brown ', and 'fox', respectively, as input.  The filter function
+is expected to return a string which will replace the given input in the
+output of the \fImunge()\fR call.
+.Ip "\fBmunge\fR" 3
+.IX Item "munge"
+This method takes three arguments.  The first is the \s-1URL\s0 of the page which is
+being munged.  Note that the 'munge' method does \s-1NOT\s0 fetch the page for you!
+It needs this information in order to make relative links in the page absolute.
+The second argument is the \s-1URL\s0 of the filtering program.  This is used to
+make all hyperlinks and frames pass back through the filter.  Finally, it takes
+the input \s-1HTML\s0 as its third argument.  This method returns the munged \s-1HTML\s0
+string, which can then be further parsed or sent to the user.
+.SH "BUGS"
+.IX Header "BUGS"
+Hopefully none.
+.SH "AUTHOR"
+.IX Header "AUTHOR"
+J. David Lowe, dlowe at pootpoot.com
+.SH "SEE ALSO"
+.IX Header "SEE ALSO"
+\&\fIperl\fR\|(1), \s-1HTML:\\fIs0:Parser\fR\|(3)

Added: trunk/html-munger/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/debian/changelog?rev=25422&op=file
==============================================================================
--- trunk/html-munger/debian/changelog (added)
+++ trunk/html-munger/debian/changelog Fri Sep 19 20:53:44 2008
@@ -1,0 +1,53 @@
+html-munger (0.01-6) unstable; urgency=low
+
+  * QA Upload
+    + change maintainer to QA group
+  * Remove one broken URL and fix the other one. Closes: #380234
+  * Dump debhelper compat level to 5
+    + replace dh_installmanpages call with dh_installman
+  * Call $(MAKE) test
+
+ -- Frank Lichtenheld <djpig at debian.org>  Thu, 24 Apr 2008 02:25:01 +0200
+
+html-munger (0.01-5) unstable; urgency=low
+  * Closed bug that I failed to close last time. (closes: #157536)
+  * Changed section to perl.
+
+ -- Misha Nasledov <misha at debian.org>  Wed, 18 Feb 2004 01:02:00 -0800
+	
+html-munger (0.01-4) unstable; urgency=low
+
+  * Acknowledge NMU (closes: bug#157459 bug#157536).
+  * Bump Standards-Version to 3.6.1.
+
+ -- Misha Nasledov <misha at debian.org>  Tue, 17 Feb 2004 23:42:10 -0800
+
+html-munger (0.01-3.1) unstable; urgency=low
+
+  * Non-Maintainer Upload (BSP 2002-11).
+  * Now Build the .deb in binary-indep target (closes: bug#157459).
+  * Updated copyright file (closes: bug#157536).
+
+ -- Aurelien Jarno <aurel32 at debian.org>  Fri, 22 Nov 2002 16:24:04 +0100
+
+html-munger (0.01-3) unstable; urgency=low
+
+  * Fixed long description line. closes: #130970
+
+ -- Misha Nasledov <misha at debian.org>  Tue, 19 Feb 2002 20:08:00 -0800
+
+html-munger (0.01-2) unstable; urgency=low
+
+  * Changed maintainer email address
+
+ -- Misha Nasledov <misha at debian.org>  Tue, 31 Jul 2001 18:47:00 -0700
+
+html-munger (0.01-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Misha Nasledov <misha at nasledov.com>  Fri,  2 Mar 2001 09:19:23 -0800
+
+Local variables:
+mode: debian-changelog
+End:

Added: trunk/html-munger/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/debian/compat?rev=25422&op=file
==============================================================================
--- trunk/html-munger/debian/compat (added)
+++ trunk/html-munger/debian/compat Fri Sep 19 20:53:44 2008
@@ -1,0 +1,1 @@
+5

Added: trunk/html-munger/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/debian/control?rev=25422&op=file
==============================================================================
--- trunk/html-munger/debian/control (added)
+++ trunk/html-munger/debian/control Fri Sep 19 20:53:44 2008
@@ -1,0 +1,16 @@
+Source: html-munger
+Section: perl
+Priority: extra
+Maintainer: Debian QA Group <packages at qa.debian.org>
+Build-Depends: debhelper (>= 5)
+Build-Depends-Indep: perl (>= 5.6.0-16), libhtml-parser-perl
+Standards-Version: 3.6.1
+
+Package: libhtml-munger-perl
+Architecture: all
+Depends: ${perl:Depends}, libhtml-parser-perl
+Description: Module which simplifies the creation of web filters
+ HTML::Munger is a simple module which allows easy creation of web page
+ filtering software, such as those listed here:
+ .
+ http://dir.yahoo.com/Entertainment/Humor/Computers_and_Internet/Filters/Web_Based/

Added: trunk/html-munger/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/debian/copyright?rev=25422&op=file
==============================================================================
--- trunk/html-munger/debian/copyright (added)
+++ trunk/html-munger/debian/copyright Fri Sep 19 20:53:44 2008
@@ -1,0 +1,31 @@
+This package was debianized by Misha Nasledov misha at debian.org on
+Fri,  2 Mar 2001 09:19:23 -0800.
+
+It was downloaded from ftp.perl.org
+
+Copyright:
+
+ "Copyright (c) 1997-2000 J. David Lowe.  All rights reserved.  This
+ program is free software; you can redistribute it and/or modify it under 
+ the same terms as Perl itself."
+
+
+------------------------------------------------------------------------------
+ Perl copyright:
+------------------------------------------------------------------------------
+    Copyright 1989-2001, Larry Wall  All rights reserved.
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of either:
+
+    a) the GNU General Public License as published by the Free Software
+       Foundation; either version 1, or (at your option) any later
+       version, or
+
+    b) the "Artistic License" which comes with Perl.
+
+------------------------------------------------------------------------------
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public
+License can be found in `/usr/share/common-licenses/GPL' and the Artistic
+Licence in `/usr/share/common-licenses/Artistic'.

Added: trunk/html-munger/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/html-munger/debian/rules?rev=25422&op=file
==============================================================================
--- trunk/html-munger/debian/rules (added)
+++ trunk/html-munger/debian/rules Fri Sep 19 20:53:44 2008
@@ -1,0 +1,45 @@
+#!/usr/bin/make -f
+# Made with the aid of debmake, by Christoph Lameter,
+# based on the sample debian/rules file for GNU hello by Ian Jackson.
+
+
+build:
+	dh_testdir
+	perl Makefile.PL INSTALLDIRS=vendor
+	$(MAKE)
+	$(MAKE) test
+	touch build
+
+clean: checkroot
+	rm -f build
+	rm -rf debian/share
+	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_clean
+
+binary-indep: checkroot build
+	dh_clean -k
+	dh_installdirs
+
+	$(MAKE) pure_install PREFIX=$(CURDIR)/debian/libhtml-munger-perl/usr
+	dh_installman debian/HTML::Munger.3pm
+	dh_installdocs README
+	dh_installchangelogs Changes
+	dh_strip 
+	dh_compress
+	dh_fixperms
+	dh_shlibdeps
+	dh_perl
+	dh_gencontrol
+	dh_installdeb
+	dh_md5sums
+	dh_builddeb
+
+binary-arch: checkroot build
+
+binary: binary-indep binary-arch
+
+checkroot:
+	dh_testdir
+	dh_testroot
+
+.PHONY: binary binary-arch binary-indep clean checkroot

Propchange: trunk/html-munger/debian/rules
------------------------------------------------------------------------------
    svn:executable = *




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