--- libhtml-tidy-perl-1.50.orig/debian/changelog +++ libhtml-tidy-perl-1.50/debian/changelog @@ -0,0 +1,38 @@ +libhtml-tidy-perl (1.50-1build2) precise; urgency=low + + * Rebuild for Perl 5.14. + + -- Colin Watson Tue, 15 Nov 2011 19:59:35 +0000 + +libhtml-tidy-perl (1.50-1build1) oneiric; urgency=low + + * Rebuild for Perl 5.12. + + -- Colin Watson Sun, 08 May 2011 13:09:30 +0100 + +libhtml-tidy-perl (1.50-1) unstable; urgency=low + + [ Jonathan Yu ] + * New upstream release + * Standards-Version 3.8.4 (no changes) + * Rewrite control description + * Add myself to Uploaders and Copyright + * Remove fix-segfault patch, it has been applied upstream + * Add a patch to remove dependency on modified libtidy + + [ Nathan Handler ] + * debian/watch: Update to ignore development releases. + + [ Ryan Niebur ] + * Update ryan52's email address + + [ gregor herrmann ] + * debian/copyright: update formatting and years of upstream copyright. + + -- Jonathan Yu Sat, 20 Feb 2010 09:50:30 -0500 + +libhtml-tidy-perl (1.08-1) unstable; urgency=low + + * Initial Release. (Closes: #531138) + + -- Ryan Niebur Tue, 02 Jun 2009 21:15:36 -0700 --- libhtml-tidy-perl-1.50.orig/debian/rules +++ libhtml-tidy-perl-1.50/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +debian/webtidy.1: + sh ./debian/webtidy --help2man + +override_dh_installman: debian/webtidy.1 + dh_installman debian/webtidy.1 + +%: + dh --with quilt $@ --- libhtml-tidy-perl-1.50.orig/debian/watch +++ libhtml-tidy-perl-1.50/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://search.cpan.org/dist/HTML-Tidy/ .*/HTML-Tidy-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ --- libhtml-tidy-perl-1.50.orig/debian/clean +++ libhtml-tidy-perl-1.50/debian/clean @@ -0,0 +1 @@ +debian/webtidy.1 --- libhtml-tidy-perl-1.50.orig/debian/webtidy +++ libhtml-tidy-perl-1.50/debian/webtidy @@ -0,0 +1,26 @@ +#!/bin/sh + +run(){ + perl -Iblib/arch -Iblib/lib ./bin/webtidy --help +} + +case "$1" in + --help) + run | sed '1 d' + ;; + --version) + run | head -1 + ;; + --help2man) + chmod +x $0 + help2man -n "show errors in an (X)HTML document" -o $0.1 -N $0 | sed 's/DESCRIPTION/OPTIONS/' + ;; + --man) + sh $0 --help2man + man $0.1 + ;; + *) + echo "huh?" + exit 1 + ;; +esac --- libhtml-tidy-perl-1.50.orig/debian/README.source +++ libhtml-tidy-perl-1.50/debian/README.source @@ -0,0 +1,5 @@ +This package uses quilt to manage 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 explanation. --- libhtml-tidy-perl-1.50.orig/debian/compat +++ libhtml-tidy-perl-1.50/debian/compat @@ -0,0 +1 @@ +7 --- libhtml-tidy-perl-1.50.orig/debian/control +++ libhtml-tidy-perl-1.50/debian/control @@ -0,0 +1,23 @@ +Source: libhtml-tidy-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 7.0.50), quilt (>= 0.46-7), + perl, libtidy-dev, libtest-pod-perl, libtest-pod-coverage-perl, help2man +Maintainer: Debian Perl Group +Uploaders: Ryan Niebur , Jonathan Yu +Standards-Version: 3.8.4 +Homepage: http://search.cpan.org/dist/HTML-Tidy/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libhtml-tidy-perl/ +Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libhtml-tidy-perl/ + +Package: libhtml-tidy-perl +Architecture: any +Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} +Suggests: libwww-perl +Description: module for (X)HTML validation + HTML::Tidy is a Perl module useful for performing cleanup and providing basic + validation of input. It is based on Perl bindings to the HTML Tidy Project, + also known as libtidy; for details, see: . + . + This module is intended to replace HTML::Lint and includes documentation for + easing the migration from that module. --- libhtml-tidy-perl-1.50.orig/debian/copyright +++ libhtml-tidy-perl-1.50/debian/copyright @@ -0,0 +1,45 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Maintainer: Andy Lester +Source: http://search.cpan.org/dist/HTML-Tidy/ +Name: HTML-Tidy + +Files: * +Copyright: 2005-2010, Andy Lester +License: Artistic or GPL-1+ + +Files: ppport.h +Copyright: 2004-2009, Marcus Holland-Moritz + 2001, Paul Marquess (Version 2.x) + 1999, Kenneth Albanowski (Version 1.x) +License: Artistic or GPL-1+ + +Files: t/unicode.t +Copyright: 2006 Jonathan Rockway +License-Alias: Perl +License: Artistic or GPL-1+ +X-Comment: This file does not have an explicit license. According to + lib/HTML/Tidy.pm it is a contribution to the HTML-Tidy distribution, + therefore the same license as for the rest of the module is assumed. + Additionally putting code "under the same terms as Perl itself" is what the + author usually does for his Perl code. + +Files: debian/* +Copyright: 2009, Ryan Niebur + 2010, Jonathan Yu +License: Artistic or GPL-1+ + +License: Artistic + This program is free software; you can redistribute it and/or modify + it under the terms of the Artistic License, which comes with Perl. + . + On Debian GNU/Linux systems, the complete text of the Artistic License + can be found in `/usr/share/common-licenses/Artistic' + +License: GPL-1+ + 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 1, or (at your option) + any later version. + . + On Debian GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL' --- libhtml-tidy-perl-1.50.orig/debian/patches/remove-tidy_version.patch +++ libhtml-tidy-perl-1.50/debian/patches/remove-tidy_version.patch @@ -0,0 +1,58 @@ +Description: remove tidyVersion as it is a special call + to Andy Lester's modified version of libtidy. Also remove + the corresponding call from Perl, the documentation, and + the tests. +Author: gregor herrmann +Reviewed-by: Jonathan Yu +Origin: vendor +Forwarded: not-needed + +--- a/Tidy.xs ++++ b/Tidy.xs +@@ -189,14 +189,3 @@ + if ( rc < 0 ) { + XSRETURN_UNDEF; + } +- +- +-SV* +-_tidy_version() +- PREINIT: +- const char* version; +- CODE: +- version = tidyVersion(); +- RETVAL = newSVpv(version,0); /* will be automatically "mortalized" */ +- OUTPUT: +- RETVAL +--- a/lib/HTML/Tidy.pm ++++ b/lib/HTML/Tidy.pm +@@ -339,18 +339,6 @@ + return 1; + } + +-=head2 libtidy_version() +- +-Returns the version of the underling tidy library. +- +-=cut +- +-sub libtidy_version { +- my $version_str = _tidy_version(); +- +- return $version_str; +-} +- + require XSLoader; + XSLoader::load('HTML::Tidy', $VERSION); + +--- a/t/version.t ++++ b/t/version.t +@@ -5,6 +5,8 @@ + use Test::More; + + BEGIN { ++ plan skip_all => 'libtidy_version has been removed in Debian'; ++ + plan tests => 3; + use_ok( 'HTML::Tidy' ); + } --- libhtml-tidy-perl-1.50.orig/debian/patches/fix-error-message-in-webtidy +++ libhtml-tidy-perl-1.50/debian/patches/fix-error-message-in-webtidy @@ -0,0 +1,13 @@ +make it more debianish + +--- a/bin/webtidy ++++ b/bin/webtidy +@@ -30,7 +30,7 @@ + if ( $url =~ /^https?:/ ) { + eval { require LWP::Simple }; + if ( $@ ) { +- warn q{Can't retrieve URLs without LWP::Simple installed}; ++ warn q{Can't retrieve URLs without the libwww-perl package installed}; + next; + } + --- libhtml-tidy-perl-1.50.orig/debian/patches/series +++ libhtml-tidy-perl-1.50/debian/patches/series @@ -0,0 +1,2 @@ +fix-error-message-in-webtidy +remove-tidy_version.patch