--- html2ps-1.0b5.orig/debian/html2ps.manpages +++ html2ps-1.0b5/debian/html2ps.manpages @@ -0,0 +1,2 @@ +html2ps.1 +html2psrc.5 --- html2ps-1.0b5.orig/debian/NEWS +++ html2ps-1.0b5/debian/NEWS @@ -0,0 +1,7 @@ +html2ps (1.0b4-4) unstable; urgency=low + + * As of this version, the html2ps package doesn't include the contributed + xhtml2ps GUI frontend anymore. Please install the new xhtml2ps package if + you need it. + + -- Florian Ernst Mon, 5 Dec 2005 17:47:13 +0100 --- html2ps-1.0b5.orig/debian/control +++ html2ps-1.0b5/debian/control @@ -0,0 +1,33 @@ +Source: html2ps +Section: text +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 5), dpatch +Standards-Version: 3.7.2 + +Package: html2ps +Architecture: all +Depends: ${perl:Depends}, perlmagick, libwww-perl, libhtml-parser-perl, + libpaper-utils +Recommends: gs-gpl +Suggests: postscript-viewer, texlive-base, weblint-perl, xhtml2ps +Homepage: http://www.tdb.uu.se/~jan/html2ps.html +Description: HTML to PostScript converter + This program converts HTML directly to PostScript. The HTML code can be + retrieved from one or more URLs or local files, specified as parameters on the + command line. A comprehensive level of HTML is supported, including inline + images, CSS 1.0, and some features of HTML 4.0. + +Package: xhtml2ps +Architecture: all +Depends: html2ps (= ${binary:Version}), tk8.3 | wish +Suggests: weblint-perl, mime-support, postscript-viewer, lpr +Enhances: html2ps +Homepage: http://www.tdb.uu.se/~jan/html2ps.html +Description: HTML to PostScript converter (Tcl/Tk GUI frontend) + This program converts HTML directly to PostScript. The HTML code can be + retrieved from one or more URLs or local files, specified as parameters on the + command line. A comprehensive level of HTML is supported, including inline + images, CSS 1.0, and some features of HTML 4.0. + . + This package provides an (outdated) GUI frontend to the html2ps converter. --- html2ps-1.0b5.orig/debian/rules +++ html2ps-1.0b5/debian/rules @@ -0,0 +1,46 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +build: patch + +clean: unpatch + dh_testdir + dh_testroot + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + install -D -m 0755 html2ps debian/html2ps/usr/bin/html2ps + install -D -m 0644 debian/config/html2psrc debian/html2ps/etc/html2psrc + install -D -m 0755 contrib/xhtml2ps/xhtml2ps \ + debian/xhtml2ps/usr/bin/xhtml2ps + +binary-arch: build install + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install + dh_installmenu + dh_installman + dh_link + dh_compress + dh_fixperms + dh_perl + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch --- html2ps-1.0b5.orig/debian/watch +++ html2ps-1.0b5/debian/watch @@ -0,0 +1,4 @@ +# Watch control file for uscan + +version=3 +http://user.it.uu.se/~jan/html2ps-(.*)\.tar\.gz --- html2ps-1.0b5.orig/debian/changelog +++ html2ps-1.0b5/debian/changelog @@ -0,0 +1,240 @@ +html2ps (1.0b5-5) unstable; urgency=low + + * QA upload. + * Fixed several missing variable escapes, and a spurious paper setting + in debian/config/html2psrc. Thanks to Trent Buck for the patch! + (closes: #421385). + * Allow option "--DSC" as alias for "-D" (closes: #446773). + * Set the default postscript viewer in xhtml2ps to "see". Add Suggests: + mime-support. Thanks to Matej Vela for the idea! (closes: #72034). + * debian/config/html2psrc: + - removed /usr/X11R6/bin from path setting as we do not use /usr/X11R6 + any longer + - hyphenation table: use file location from texlive + * Changed menu section from Apps to Applications. + * debian/control: + - use Homepage field for upstream homepage + - removed useless dependency on ${misc:Depends} + - switched from tetex-base to texlive-base (in Suggests) + * Manage patches with dpatch + + -- Ralf Treinen Sat, 20 Oct 2007 22:16:32 +0200 + +html2ps (1.0b5-4) unstable; urgency=low + + * QA upload. + * html2ps: Applied patch from Trent Buck to respect + PAPERSIZE environment variable (Closes: #410011). + + -- Daniel Baumann Thu, 8 Feb 2007 08:56:00 +0100 + +html2ps (1.0b5-3) unstable; urgency=low + + * Orphaning package. + + -- Daniel Baumann Sat, 20 Jan 2007 12:00:00 +0100 + +html2ps (1.0b5-2) unstable; urgency=low + + * New maintainer (Closes: #360940). + * Redone debian directory based on current debhelper templates, additionally: + - added menu file. + + -- Daniel Baumann Mon, 6 Nov 2006 21:37:00 +0100 + +html2ps (1.0b5-1) unstable; urgency=low + + * New upstream release + + -- Florian Ernst Mon, 19 Dec 2005 21:19:37 +0100 + +html2ps (1.0b4-4) unstable; urgency=low + + * Split out a separate xhtml2ps package as a first step for evaluating + whether this contributed frontend is still in use, and to be able to + use html2ps without installing Tcl/Tk + * Upgrade debhelper compatibility level + + -- Florian Ernst Mon, 5 Dec 2005 17:48:53 +0100 + +html2ps (1.0b4-3) unstable; urgency=low + + * Back out patch for URL handling introduced in 1.0b3-5 as it breaks + cross-referencing / links within a document (Closes: #320913, #335701), + thus effectively "reopening" #222640 + * Suggests: on virtual packages postscript-viewer and lpr, partially fixing + xhtml2ps to use those (see: #72034), explaining the story in README.Debian; + also changing Recommends on gs to gs-gpl + + -- Florian Ernst Sun, 30 Oct 2005 11:26:13 +0100 + +html2ps (1.0b4-2) unstable; urgency=low + + * New maintainer, many thanks to Nigel Jones for his work (Closes: #327440), + Matt Currington as co-maintainer isn't active anymore, too + * Back out some small patches that aren't needed anymore + * Replace a latin1 char in html2psrc.5 + * debian/changelog: remove old closes format at 1.0b1-3 + * debian/control: + + move debhelper to Build-Depends as it is needed for the clean target + + add upstream Homepage to long description + * debian/copyright: + + list past and present maintainer(s) + + elaborate copyright notice and authors + * debian/rules: + + export compat, docs, examples and manpages to files in debian/ + + drop debian/html2psrc from examples as it doesn't provide anything new + + general cleanup, stripping out all unneeded parts + * debian/xhtml2ps.1x: linking via debian/links instead + * don't convert the html doc to ps anymore + + -- Florian Ernst Thu, 22 Sep 2005 19:07:46 +0200 + +html2ps (1.0b4-1) unstable; urgency=low + + * New upstream release + * Patched debian/rules + * New Standards Version + * New Co-Maintainer + + -- Nigel Jones Wed, 18 Jun 2005 14:34:36 +1200 + +html2ps (1.0b3-6) unstable; urgency=medium + + * Found upstream patch hopefully fixing a few bugs. + * Renamed --DSC to --dsc (closes: #76569, #176012) + + -- Nigel Jones Sun, 29 May 2005 15:53:23 +1200 + +html2ps (1.0b3-5) unstable; urgency=low + + * New Maintainer (closes: #279769) + * Patched URL Handing (closes: #222640) + + -- Nigel Jones Thu, 26 May 2005 16:10:30 +1200 + +html2ps (1.0b3-4) unstable; urgency=low + + * QA Group upload orphaning this package + * debian/control: Depend on weblint-perl instead of weblint (closes: + #271377) + * Incorporates previous NMUs (closes: #185479, #193692) + * debian/control: add dependency on tk8.3 or'ed with wish + * debian/copyright: corrected spelling mistake + + -- Andrew Pollock Sun, 27 Feb 2005 09:14:07 +1100 + +html2ps (1.0b3-3.1) unstable; urgency=low + + * NMU. + * Improve handling -W and special characters in document. (Closes: #185479) + * Improve handling large EPS images. (Closes: #193692) + + -- Petter Reinholdtsen Sat, 23 Aug 2003 19:11:20 +0200 + +html2ps (1.0b3-3) unstable; urgency=low + + * Add support to the default paper size specified by the libpaper + package (thanks to Matej Cepl for the suggestion, + although I didn't use his proposed fix), + Closes: #26945 + * Fix mis-protected open call that caused html2ps to crash, + Closes: #168805 + + -- Stephen Zander Tue, 19 Nov 2002 01:29:07 -0800 + +html2ps (1.0b3-2) unstable; urgency=high + + * Applied security patch from Sebastian Krahmer of SuSE to stop html2ps + execute arbitrary code when parsing a HTML file + * Close miscellaneous bugs already addressed by previous releases: + * support for perl5.00503 + * page generation request + * imagemagic depndency (html2ps depends on perlmagick) + Closes: #42105, #51667, #71765 + * Support http_proxy environment variable, + Closes: #51666 + * Review package depndencies to reduce overall package foot print, + specifically change 'Depends: tetex-base' to 'Suggests: tetex-base', + Closes: #105226 + * Add Build-Depends-Indep for debhelper, + Closes: #139194 + + -- Stephen Zander Sun, 3 Nov 2002 11:18:09 -0800 + +html2ps (1.0b3-1) unstable; urgency=low + + * New upstream version. + * Now correctly render tables, Closes: #22633 + * Fixed incorrect spereation of & sections & included + section in temporary file used for syntax checking, + Closes: #26944 + * Now correctly renders
, Closes: #30711 + * Now correectly display the man page under xhtml2ps, Closes: #33357 + * Now supports perl 5.005, Closes: #42004, #58889 + * Now correctly generates DSC postript using perl5.005, + Closes: #45596, #46275, #71447 + * Reinforced the dependency on perlmagick, Closes: #50297 + * Now handles non-alphanumeric characters in URLs correctly, Closes: #63691 + + -- Stephen Zander Thu, 14 Sep 2000 21:51:01 -0700 + +html2ps (1.0b1-8) unstable; urgency=low + + * New maintainer. + + -- Stephen Zander Wed, 18 Aug 1999 23:10:58 -0700 + +html2ps (1.0b1-7.1) unstable; urgency=low + + * NMU for the perl upgrade. Closes: #41485 + * Corrected the perl dependency. + * Upgraded standards-version to 2.5.1. + * Changed the way html2ps is launched. Now it's #!/usr/bin/perl, + the shell tricks has been removed. Closes: #37614, #39076 + + -- Raphael Hertzog Sat, 24 Jul 1999 01:13:45 +0200 + +html2ps (1.0b1-7) unstable; urgency=low + + * Fixed location of ushyph1.tex for potato, closes: #36895. + + -- Johnie Ingram Thu, 29 Apr 1999 12:20:02 -0400 + +html2ps (1.0b1-6) frozen unstable; urgency=low + + * Fixed critical bug #31824 (html2ps: can't execute). + + -- Johnie Ingram Fri, 22 Jan 1999 12:30:27 -0500 + +html2ps (1.0b1-5) frozen unstable; urgency=low + + * Added dependency on libhtml-parser-perl, which was apparently split + from libwww-perl (#28492). + * Correct debian/rules target (binary-indep) used. + + -- Johnie Ingram Mon, 21 Dec 1998 15:11:23 -0500 + +html2ps (1.0b1-4) unstable; urgency=low + + * Cleaned up debian diff to make package easier to take over. + + -- Johnie Ingram Mon, 29 Jun 1998 15:22:44 -0400 + +html2ps (1.0b1-3) unstable; urgency=low + + * Added dependency on perlmagick (#22835). + + -- Johnie Ingram Mon, 15 Jun 1998 18:41:37 -0400 + +html2ps (1.0b1-2) unstable; urgency=low + + * Released to the correct distribution. ;-) + + -- Johnie Ingram Sat, 16 May 1998 06:32:15 -0400 + +html2ps (1.0b1-1) contrib; urgency=low + + * Initial Release. + + -- Johnie Ingram Fri, 15 May 1998 18:32:33 -0400 --- html2ps-1.0b5.orig/debian/xhtml2ps.README.Debian +++ html2ps-1.0b5/debian/xhtml2ps.README.Debian @@ -0,0 +1,8 @@ +xhtml2ps for Debian +------------------- + +The default command for viewing a postscript document from xhtml is +now "see" from the mime-support package. This will launch a postscript +viewer according to the mailcap entry for application/postscript. + + -- Ralf Treinen , Sat, 20 Oct 2007 22:48:38 +0200 --- html2ps-1.0b5.orig/debian/html2ps.examples +++ html2ps-1.0b5/debian/html2ps.examples @@ -0,0 +1,2 @@ +sample +hyphen.tex --- html2ps-1.0b5.orig/debian/compat +++ html2ps-1.0b5/debian/compat @@ -0,0 +1 @@ +5 --- html2ps-1.0b5.orig/debian/config/html2psrc +++ html2ps-1.0b5/debian/config/html2psrc @@ -0,0 +1,21 @@ +/* Global configuration file for html2ps */ + +@html2ps { + package { + ImageMagick: 1; + PerlMagick: 1; + TeX: 1; + Ghostscript: 1; + check: weblint; + libwww-perl: 1; + path: "/usr/bin"; + } + paper { + type: letter; + } + hyphenation { + en { + file: "/usr/share/texmf-texlive/tex/generic/hyphen/hyphen.tex"; + } + } +} --- html2ps-1.0b5.orig/debian/html2ps.docs +++ html2ps-1.0b5/debian/html2ps.docs @@ -0,0 +1,2 @@ +html2ps.html +README --- html2ps-1.0b5.orig/debian/patches/02_xhtml2ps_defaults.dpatch +++ html2ps-1.0b5/debian/patches/02_xhtml2ps_defaults.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## Extracted from html2ps_1.0b5-4.diff.gz +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set xhmtml2ps defaults for a debian environment + +@DPATCH@ +diff -urNad html2ps-1.0b5~/contrib/xhtml2ps/xhtml2ps html2ps-1.0b5/contrib/xhtml2ps/xhtml2ps +--- html2ps-1.0b5~/contrib/xhtml2ps/xhtml2ps 2007-10-20 22:28:53.000000000 +0200 ++++ html2ps-1.0b5/contrib/xhtml2ps/xhtml2ps 2007-10-20 22:42:06.000000000 +0200 +@@ -804,8 +804,8 @@ + array set stusr { + command "html2ps" + checker "weblint -x Netscape" +- viewer "ghostview -magstep -2 -a4" +- printcmd "lp" ++ viewer "see" ++ printcmd "lpr" + filepcmd "exec cp" + orientation " " + colonnes " " --- html2ps-1.0b5.orig/debian/patches/01_manpages.dpatch +++ html2ps-1.0b5/debian/patches/01_manpages.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## Extracted from html2ps_1.0b5-4.diff.gz +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patches to manpages + +@DPATCH@ + +--- html2ps-1.0b5.orig/html2ps.1 ++++ html2ps-1.0b5/html2ps.1 +@@ -107,7 +107,7 @@ + Generate debugging information. You should always use this + option when reporting problems with html2ps. + .TP +-.B -D --DSC ++.B -D --dsc --DSC + Generate DSC compliant PostScript. This requires Ghostscript and + can take quite some time to do. Note that a PostScript file generated + with this option cannot be used as input to html2ps for reformatting + +--- html2ps-1.0b5.orig/html2psrc.5 ++++ html2ps-1.0b5/html2psrc.5 +@@ -725,7 +725,7 @@ + Language specific quotation marks are defined in this block. + These quotation marks are used with the HTML 4.01 element Q for short + quotations. Quotation marks are predefined for a few languages (English, +-Swedish, Danish, Norwegian (also Nynorsk and Bokmål), Finnish, Spanish, ++Swedish, Danish, Norwegian (also Nynorsk and Bokm\(oal), Finnish, Spanish, + French, German and Italian). It is possible to define different quotation + marks for quotes within quotes. --- html2ps-1.0b5.orig/debian/patches/00list +++ html2ps-1.0b5/debian/patches/00list @@ -0,0 +1,3 @@ +01_manpages.dpatch +02_xhtml2ps_defaults.dpatch +03_html2ps.dpatch --- html2ps-1.0b5.orig/debian/patches/03_html2ps.dpatch +++ html2ps-1.0b5/debian/patches/03_html2ps.dpatch @@ -0,0 +1,128 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## Extracted from html2ps_1.0b5-4.diff.gz +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: patches to html2ps script + +@DPATCH@ +diff -urNad html2ps-1.0b5~/html2ps html2ps-1.0b5/html2ps +--- html2ps-1.0b5~/html2ps 2007-10-20 22:08:17.000000000 +0200 ++++ html2ps-1.0b5/html2ps 2007-10-20 22:09:16.000000000 +0200 +@@ -1,6 +1,4 @@ +-: # Use perl +-eval 'exec perl -S $0 "$@"' +- if $running_under_some_shell; ++#! /usr/bin/perl + + # This is html2ps version 1.0 beta5, an HTML-to-PostScript converter. + # Copyright (C) 1995-2005 Jan Karrman. +@@ -26,11 +24,12 @@ + # Set the name of the global configuration file. See the installation notes + # and manual page for more details on configuration files. + +-$globrc='/opt/misc/lib/html2ps/html2psrc'; +-$ug='/opt/misc/lib/html2ps/html2ps.html'; ++$globrc='/etc/html2psrc'; ++$ug='/usr/share/doc/html2ps/html2ps.html'; ++$default_paper=`paperconf` || 'a4'; + +-$conf=<<'EOR'; +-@html2ps { ++$conf=<<"EOR"; ++\@html2ps { + package { + PerlMagick: 0; + ImageMagick: 0; +@@ -46,7 +45,7 @@ + path: ""; + } + paper { +- type: A4; ++ type: $default_paper; + height: ""; + width: ""; + } +@@ -89,7 +88,7 @@ + middle: 2cm; + } + xref { +- text: "[p $N]"; ++ text: "[p \$N]"; + passes: 1; + } + quote { +@@ -136,8 +135,8 @@ + } + titlepage { + content: "
+-

$T

+-

$[author]

"; ++

\$T

++

\$[author]

"; + margin-top: 4cm; + } + font { +@@ -269,7 +268,7 @@ + fuchsia: FF00FF; + aqua: 00FFFF; + } +- html2psrc: "$HOME/.html2psrc"; ++ html2psrc: "\$HOME/.html2psrc"; + imgalt: "[IMAGE]"; + datefmt: "%e %b %Y %R"; + locale: ""; +@@ -345,7 +344,7 @@ + + A:link, HR { color: black } + +-@page { ++\@page { + margin-left: 2.5cm; + margin-right: 2.5cm; + margin-top: 3cm; +@@ -354,8 +353,8 @@ + + EOR + +-eval "require POSIX"; +-$posix = !$@; ++use POSIX; ++$posix = 1; + + %extend=('quote',1, 'font',1, 'colour',1, 'hyphenation',1); + %fal=("serif","times", "sans_serif","helvetica", "monospace","courier"); +@@ -380,7 +379,7 @@ + $opts="2|b:|c|C:|d|D|e:|f:|F|g|h|H|i:|k:|l:|L|m:|M:|n|N:|o:|O|r:|R|s:|S:|t|T|" + ."u|U|v|W:|x:"; + %optalias=( 'twoup','2', 'base','b', 'check','c', 'toc','C', 'debug','d', +- 'DSC','D', 'encoding','e', 'rcfile','f', 'frame','F', 'grayscale','g', ++ 'DSC','D', 'dsc','D', 'encoding','e', 'rcfile','f', 'frame','F', 'grayscale','g', + 'help','h', 'hyphenate','H', 'scaleimage','i', 'cookie','k', 'language','l', + 'landscape','L', 'scalemath','m', 'mainchapter','M', 'number','n', + 'startno','N', 'output','o', 'original','O', 'rootdir','r', 'xref','R', +@@ -496,6 +495,8 @@ + die "Ghostscript is required to generate cross references\n" + if($opt_R && !$package{'Ghostscript'}); + $tmpname=$posix?POSIX::tmpnam():"h2p_$$"; ++sysopen TMP, $tmpname, O_RDWR|O_CREAT|O_EXCL, 0600 or die "$!"; ++close TMP; + ($scr=$tmpname)=~/\w+$/; + $tempdir=$`; + +@@ -1607,7 +1608,6 @@ + Fi cH 1 eq and{fill}if} {Bz 0 RL 0 Bz RL Bz neg 0 RL 0 Bz neg RL + Fi cH 1 eq and{fill}if} {0 -5 R Bz 0 RL 0 21 RL Bz neg 0 RL 0 -21 RL}]} D + /MS {/Sm E D WB}D +-/O {BN()Sm BX} D + /O {BN()0 Sm BX} D + /BX {/Bt E D Bt 2 lt{/Ch E D CS 0.8 mul}{11 mul}ie W XO sub MR sub + 2 copy gt{E}if pop /HZ E D Bt 2 eq{Fi not{pop()}if ( )E join /Ft E D TT +@@ -4321,7 +4321,7 @@ + push(@IT,1); + $nli=30000; + $n=1; +- $npr=$ps=~s|(.*\n){$nli}|sprintf("$&} D\n/P$nimg\_%d {",$n++)|eg; ++ $npr=$ps=~s|(.*\n{$nli})|sprintf("$1} D\n/P$nimg\_%d {",$n++)|eg; + if($npr) { + $proc=" ("; + for $i (0..$npr) { --- html2ps-1.0b5.orig/debian/copyright +++ html2ps-1.0b5/debian/copyright @@ -0,0 +1,28 @@ +This package was first debianized by Johnie Ingram on +Fri, 15 May 1998 18:32:33 -0400. + +It was downloaded from . + +Upstream Author: Jan Karrman + +License: + + Copyright (C) 1995-2000 Jan Karrman + Copyright (C) 1997-2000 Jean-Philippe Argaud + + 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 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL file. --- html2ps-1.0b5.orig/debian/xhtml2ps.docs +++ html2ps-1.0b5/debian/xhtml2ps.docs @@ -0,0 +1 @@ +contrib/xhtml2ps/README --- html2ps-1.0b5.orig/debian/xhtml2ps.menu +++ html2ps-1.0b5/debian/xhtml2ps.menu @@ -0,0 +1,2 @@ +?package(xhtml2ps):needs="X11" section="Applications/Text"\ + title="Xhtml2ps" command="/usr/bin/xhtml2ps" --- html2ps-1.0b5.orig/debian/xhtml2ps.links +++ html2ps-1.0b5/debian/xhtml2ps.links @@ -0,0 +1 @@ +/usr/share/man/man1/html2ps.1.gz /usr/share/man/man1/xhtml2ps.1.gz