--- pisa-3.0.32.orig/debian/README.source +++ pisa-3.0.32/debian/README.source @@ -0,0 +1,2 @@ +This package needs to repack the upstream tarball in order to +remove the non-free (and huge) CODE2000.TTF font file from it. --- pisa-3.0.32.orig/debian/changelog +++ pisa-3.0.32/debian/changelog @@ -0,0 +1,21 @@ +pisa (3.0.32-2) unstable; urgency=medium + + * Team upload. + * Add debian/patches/02-reportlab_bigger_than_two.patch.dpatch to fix + reportlab version compatibility problems (Closes: #571120) + - Thanks to Walter Doekes and Jamie McClelland for patches - both were + fine patches, but the one used was the smaller change since Debian is in + pre-release freeze + + -- Scott Kitterman Sun, 23 Nov 2014 21:51:06 -0500 + +pisa (3.0.32-1) unstable; urgency=low + + * Initial release (Closes: #504277). Thanks to Toby Smithe + for preparing the package. Thanks to Thomas + Bechtold for helping with the licenses. And, yes, the file + demo/tgpisa/tgpisa/release.py is just an example, not necessarily + licensed under MIT license. CODE2000.TTF removed from source, + package is under GPL-2. + + -- W. Martin Borgert Mon, 08 Feb 2010 22:02:40 +0000 --- pisa-3.0.32.orig/debian/compat +++ pisa-3.0.32/debian/compat @@ -0,0 +1 @@ +7 --- pisa-3.0.32.orig/debian/control +++ pisa-3.0.32/debian/control @@ -0,0 +1,27 @@ +Source: pisa +Section: python +Priority: extra +Maintainer: Debian Python Modules Team +Uploaders: W. Martin Borgert +Build-Depends: cdbs, debhelper (>= 7), dpatch, python-dev, xsltproc, docbook-xsl +Build-Depends-Indep: python-support (>= 0.5.3), python-setuptools +Standards-Version: 3.8.4 +Homepage: http://www.xhtml2pdf.com/ +Vcs-Svn: svn://svn.debian.org/python-modules/packages/pisa/trunk/ +Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pisa/trunk/ +XS-Python-Version: all +XB-Python-Version: ${python:Versions} + +Package: python-pisa +Architecture: all +Provides: ${python:Provides} +Depends: ${misc:Depends}, ${python:Depends}, python-html5lib, python-imaging, python-pypdf, python-reportlab +Description: PDF generator using HTML and CSS (Python module) + pisa is an html2pdf converter using the ReportLab Toolkit, HTML5lib and pyPdf. + . + It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is completely written + in pure Python so it is platform independent. The main benefit of this tool + that a user with Web skills like HTML and CSS is able to generate PDF + templates very quickly without learning new technologies. Easy integration + into Python frameworks like CherryPy, KID Templating, TurboGears, Django, Zope, + Plone, Google AppEngine (GAE) etc. --- pisa-3.0.32.orig/debian/copyright +++ pisa-3.0.32/debian/copyright @@ -0,0 +1,68 @@ +This package was debianized by: + + W. Martin Borgert on Tue, 2009-12-08 02:57:04 +0000 + +It was downloaded from: + + http://pypi.python.org/pypi/pisa/ + +Upstream Author: + + Dirk Holtwick + +Copyright: + + Copyright © 2002-2009 Dirk Holtwick + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This package 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 package; 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 v2 can +be found in /usr/share/common-licenses/GPL-2 file. + +Files: sx/pisa3/reportlab_paragraph.py +Copyright: ReportLab Europe Ltd. 2000-2008 +License: deduced from http://www.reportlab.com/ftp/ReportLab_2_4.tar.gz + All rights reserved. + . + Redistribution and use in source and binary forms, with or without modification, + are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the company nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE OFFICERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED + TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER + IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +Files: sx/w3c/cssParser.py, sx/w3c/cssDOMElementInterface.py, sx/w3c/__init__.py, sx/w3c/css.py +Copyright: 2002-2004 TechGame Networks, LLC. +License: BSD + This library is free software; you can redistribute it and/or + modify it under the terms of the BSD style License as found in the + LICENSE file included with this distribution. --- pisa-3.0.32.orig/debian/patches/00list +++ pisa-3.0.32/debian/patches/00list @@ -0,0 +1,2 @@ +01-fix-python-executable-paths +02-reportlab_bigger_than_two.patch --- pisa-3.0.32.orig/debian/patches/01-fix-python-executable-paths.dpatch +++ pisa-3.0.32/debian/patches/01-fix-python-executable-paths.dpatch @@ -0,0 +1,25 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01-fix-python-executable-paths.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad pisa-3.0.32~/sx/pisa3/pisa_paragraph.py pisa-3.0.32/sx/pisa3/pisa_paragraph.py +--- pisa-3.0.32~/sx/pisa3/pisa_paragraph.py 2009-05-08 06:44:37.000000000 +0100 ++++ pisa-3.0.32/sx/pisa3/pisa_paragraph.py 2009-07-11 18:30:55.127773861 +0100 +@@ -1,4 +1,4 @@ +-#!/bin/env/python ++#!/usr/bin/env python + # -*- coding: utf-8 -*- + + """ +diff -urNad pisa-3.0.32~/sx/pisa3/pisa_paragraph2.py pisa-3.0.32/sx/pisa3/pisa_paragraph2.py +--- pisa-3.0.32~/sx/pisa3/pisa_paragraph2.py 2008-11-20 13:01:16.000000000 +0000 ++++ pisa-3.0.32/sx/pisa3/pisa_paragraph2.py 2009-07-11 18:30:49.924958835 +0100 +@@ -1,4 +1,4 @@ +-#!/bin/env/python ++#!/usr/bin/env python + # -*- coding: utf-8 -*- + + """ --- pisa-3.0.32.orig/debian/patches/02-reportlab_bigger_than_two.patch.dpatch +++ pisa-3.0.32/debian/patches/02-reportlab_bigger_than_two.patch.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02-reportlab_bigger_than_two.patch.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix checking for reportlab major version greater than 2 Closes: #571120 + +@DPATCH@ +diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' pisa-3.0.32~/sx/pisa3/pisa_util.py pisa-3.0.32/sx/pisa3/pisa_util.py +--- pisa-3.0.32~/sx/pisa3/pisa_util.py 2009-05-08 01:41:46.000000000 -0400 ++++ pisa-3.0.32/sx/pisa3/pisa_util.py 2014-11-23 21:48:31.738533971 -0500 +@@ -40,10 +40,10 @@ + + rgb_re = re.compile("^.*?rgb[(]([0-9]+).*?([0-9]+).*?([0-9]+)[)].*?[ ]*$") + +-if not(reportlab.Version[0] == "2" and reportlab.Version[2] >= "1"): ++if not((reportlab.Version[0] == "2" and reportlab.Version[2] >= "1") or reportlab.Version[0] > 2): + raise ImportError("Reportlab Version 2.1+ is needed!") + +-REPORTLAB22 = (reportlab.Version[0] == "2" and reportlab.Version[2] >= "2") ++REPORTLAB22 = ((reportlab.Version[0] == "2" and reportlab.Version[2] >= "2") or reportlab.Version[0] > 2) + # print "***", reportlab.Version, REPORTLAB22, reportlab.__file__ + + import logging --- pisa-3.0.32.orig/debian/pycompat +++ pisa-3.0.32/debian/pycompat @@ -0,0 +1 @@ +2 --- pisa-3.0.32.orig/debian/rules +++ pisa-3.0.32/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM := pysupport + +include /usr/share/cdbs/1/rules/dpatch.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +DEB_INSTALL_DOCS_python-pisa = CHANGELOG.txt README.txt doc/* +DEB_INSTALL_EXAMPLES_python-pisa = demo/* +DEB_INSTALL_MANPAGES_python-pisa = xhtml2pdf.1 +DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed +DEB_COMPRESS_EXCLUDE := .py + +PYVER=$(shell pyversions -vd) +DB2MAN=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl +XP=xsltproc --nonet --novalid + +clean:: + -rm -rf build/ + -rm -f $(DEB_INSTALL_MANPAGES_python-pisa) + +common-build-indep:: $(DEB_INSTALL_MANPAGES_python-pisa) + +# /usr/bin/xhtml2pdf and /usr/bin/pisa are the same thing, +# let's only install the one, that is documented +common-binary-post-install-indep:: + rm $(DEB_DESTDIR)/usr/bin/pisa + rm $(DEB_DESTDIR)/usr/share/doc/python-pisa/examples/djangoproject/._views.py + +%.1: debian/%.dbk + $(XP) $(DB2MAN) $< --- pisa-3.0.32.orig/debian/watch +++ pisa-3.0.32/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://pypi.python.org/packages/source/p/pisa/pisa-(.*).tar.gz --- pisa-3.0.32.orig/debian/xhtml2pdf.dbk +++ pisa-3.0.32/debian/xhtml2pdf.dbk @@ -0,0 +1,228 @@ + + + + + + xhtml2pdf + 1 + pisa + User Commands + + + xhtml2pdf + + PDF generator using HTML and CSS + + + + xhtml2pdf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SRC + + DEST + + + + Description + + This manual page documents briefly the xhtml2pdf command. + + + xhtml2pdf is an HTML-to-PDF converter using the ReportLab + Toolkit, HTML5lib and pyPdf. + + + It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is + completely written in pure Python so it is platform + independent. The main benefit of this tool that a user with Web + skills like HTML and CSS is able to generate PDF templates very + quickly without learning new technologies. Easy integration + into Python frameworks like CherryPy, KID Templating, + TurboGears, Django, Zope, Plone, Google AppEngine (GAE) etc. + + + + Options + + A summary of options is included below. + + + + SRC + + + Name of a HTML file or a file pattern using + * placeholder. If you want to read + from stdin use - as file name. You may + also load an URL over HTTP. Take care of putting the + src in quotes if it contains + characters like ?. + + + + + DEST + + + Name of the generated PDF file or - if + you like to send the result to stdout. Take care that the + destination file is not already opened by an other + application like the Adobe Reader. If the destination is + not writeable a similar name will be calculated + automatically. + + + + + + + + + Specify a base path if input comes via STDIN. + + + + + + + + + Path to default CSS file + + + + + + + + Dumps the default CSS definitions to STDOUT. + + + + + + + + + Show debugging information. + + + + + + + + The character encoding of SRC. If left empty (default) + this information will be extracted from the HTML header + data. + + + + + + + + + Show the help text. + + + + + + + + + Show no messages. + + + + + + + + Show version information. + + + + + + + + + Show warnings + + + + + + + + + + Force parsing in XML mode (automatically used if SRC ends + with .xml). + + + + + + + + Force parsin in HTML mode (default). + + + + + + + Author + + xhtml2pdf was written by Dirk Holtwick + <dirk.holtwick@gmail.com>. + + + This manual page was written by Toby Smithe + <tsmithe@ubuntu.com>, for the Debian + project (but may be used by others). + + +