[Python-modules-commits] r10718 - in packages/pisa/trunk (12 files)

debacle at users.alioth.debian.org debacle at users.alioth.debian.org
Tue Dec 8 18:13:27 UTC 2009


    Date: Tuesday, December 8, 2009 @ 18:13:24
  Author: debacle
Revision: 10718

Second try of packaging pisa/xhtml2pdf for Debian.

Added:
  packages/pisa/trunk/debian/
  packages/pisa/trunk/debian/changelog
  packages/pisa/trunk/debian/compat
  packages/pisa/trunk/debian/control
  packages/pisa/trunk/debian/copyright
  packages/pisa/trunk/debian/patches/
  packages/pisa/trunk/debian/patches/00list
  packages/pisa/trunk/debian/patches/01-fix-python-executable-paths.dpatch
  packages/pisa/trunk/debian/pycompat
  packages/pisa/trunk/debian/rules
  packages/pisa/trunk/debian/watch
  packages/pisa/trunk/debian/xhtml2pdf.dbk


Property changes on: packages/pisa/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/pisa/trunk/debian/changelog
===================================================================
--- packages/pisa/trunk/debian/changelog	                        (rev 0)
+++ packages/pisa/trunk/debian/changelog	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1,6 @@
+pisa (3.0.32-1) unstable; urgency=low
+
+  * Initial release (Closes: #504277). Thanks to Toby Smithe
+    <tsmithe at ubuntu.com> for preparing the package.
+
+ -- W. Martin Borgert <debacle at debian.org>  Tue, 08 Dec 2009 02:57:04 +0000

Added: packages/pisa/trunk/debian/compat
===================================================================
--- packages/pisa/trunk/debian/compat	                        (rev 0)
+++ packages/pisa/trunk/debian/compat	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1 @@
+7

Added: packages/pisa/trunk/debian/control
===================================================================
--- packages/pisa/trunk/debian/control	                        (rev 0)
+++ packages/pisa/trunk/debian/control	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1,25 @@
+Source: pisa
+Section: python
+Priority: extra
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: W. Martin Borgert <debacle at debian.org>
+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.3
+Homepage: http://www.xhtml2pdf.com/
+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.

Added: packages/pisa/trunk/debian/copyright
===================================================================
--- packages/pisa/trunk/debian/copyright	                        (rev 0)
+++ packages/pisa/trunk/debian/copyright	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1,25 @@
+This package was debianized by:
+
+    W. Martin Borgert <debacle at debian.org> on Tue, 2009-12-08 02:57:04 +0000
+
+It was downloaded from:
+
+    http://pypi.python.org/pypi/pisa/
+
+Upstream Author:
+
+    Dirk Holtwick <dirk.holtwick at gmail.com>
+
+Copyright:
+
+    Copyright © 2002-2009 Dirk Holtwick
+
+License:
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+On Debian systems, the complete text of the GNU General Public License v2 can
+be found in /usr/share/common-licenses/GPL-2 file.

Added: packages/pisa/trunk/debian/patches/00list
===================================================================
--- packages/pisa/trunk/debian/patches/00list	                        (rev 0)
+++ packages/pisa/trunk/debian/patches/00list	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1 @@
+01-fix-python-executable-paths

Added: packages/pisa/trunk/debian/patches/01-fix-python-executable-paths.dpatch
===================================================================
--- packages/pisa/trunk/debian/patches/01-fix-python-executable-paths.dpatch	                        (rev 0)
+++ packages/pisa/trunk/debian/patches/01-fix-python-executable-paths.dpatch	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01-fix-python-executable-paths.dpatch by  <toby at leopard>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at 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 -*-
+ 
+ """

Added: packages/pisa/trunk/debian/pycompat
===================================================================
--- packages/pisa/trunk/debian/pycompat	                        (rev 0)
+++ packages/pisa/trunk/debian/pycompat	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1 @@
+2

Added: packages/pisa/trunk/debian/rules
===================================================================
--- packages/pisa/trunk/debian/rules	                        (rev 0)
+++ packages/pisa/trunk/debian/rules	2009-12-08 18:13:24 UTC (rev 10718)
@@ -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) $<


Property changes on: packages/pisa/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/pisa/trunk/debian/watch
===================================================================
--- packages/pisa/trunk/debian/watch	                        (rev 0)
+++ packages/pisa/trunk/debian/watch	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/p/pisa/pisa-(.*).tar.gz

Added: packages/pisa/trunk/debian/xhtml2pdf.dbk
===================================================================
--- packages/pisa/trunk/debian/xhtml2pdf.dbk	                        (rev 0)
+++ packages/pisa/trunk/debian/xhtml2pdf.dbk	2009-12-08 18:13:24 UTC (rev 10718)
@@ -0,0 +1,228 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<refentry>
+  <refmeta>
+    <refentrytitle>xhtml2pdf</refentrytitle>
+    <manvolnum>1</manvolnum>
+    <refmiscinfo class="source">pisa</refmiscinfo>
+    <refmiscinfo class="manual">User Commands</refmiscinfo>
+  </refmeta>
+  <refnamediv>
+    <refname>xhtml2pdf</refname>
+
+    <refpurpose>PDF generator using HTML and CSS</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>xhtml2pdf</command>
+
+      <arg><option>-b <replaceable>base path</replaceable></option></arg>
+
+      <arg><option>--base=<replaceable>base path</replaceable></option></arg>
+
+      <arg><option>-c <replaceable>CSS file</replaceable></option></arg>
+
+      <arg><option>--css=<replaceable>CSS file</replaceable></option></arg>
+
+      <arg><option>--css-dump</option></arg>
+
+      <arg><option>-d</option></arg>
+
+      <arg><option>--debug</option></arg>
+
+      <arg><option>--encoding=<replaceable>character encoding</replaceable></option></arg>
+
+      <arg><option>-h</option></arg>
+
+      <arg><option>--help</option></arg>
+
+      <arg><option>-q</option></arg>
+
+      <arg><option>--quiet</option></arg>
+
+      <arg><option>--version</option></arg>
+
+      <arg><option>-w</option></arg>
+
+      <arg><option>--warn</option></arg>
+
+      <arg><option>-x</option></arg>
+
+      <arg><option>--xml</option></arg>
+
+      <arg><option>--xhtml</option></arg>
+
+      <arg><option>--html</option></arg>
+
+      <arg>SRC</arg>
+
+      <arg>DEST</arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>Description</title>
+    <para>
+      This manual page documents briefly the xhtml2pdf command.
+    </para>
+    <para>
+       xhtml2pdf is an HTML-to-PDF converter using the ReportLab
+       Toolkit, HTML5lib and pyPdf.
+    </para>
+    <para>
+       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.
+    </para>
+  </refsect1>
+  <refsect1>
+    <title>Options</title>
+    <para>
+      A summary of options is included below.
+    </para>
+    <variablelist>
+      <varlistentry>
+	<term>SRC</term>
+	<listitem>
+	  <para>
+	    Name of a HTML file or a file pattern using
+	    <literal>*</literal> placeholder.  If you want to read
+	    from stdin use <literal>-</literal> as file name.  You may
+	    also load an URL over HTTP. Take care of putting the
+	    <emphasis>src</emphasis> in quotes if it contains
+	    characters like <literal>?</literal>.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term>DEST</term>
+	<listitem>
+	  <para>
+	    Name of the generated PDF file or <literal>-</literal> 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.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>-b</option></term>
+	<term><option>--base</option></term>
+	<listitem>
+	  <para>
+	    Specify a base path if input comes via STDIN.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>-c</option></term>
+	<term><option>--css</option></term>
+	<listitem>
+	  <para>
+	    Path to default CSS file
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>--css-dump</option></term>
+	<listitem>
+	  <para>
+	    Dumps the default CSS definitions to STDOUT.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>-d</option></term>
+	<term><option>--debug</option></term>
+	<listitem>
+	  <para>
+	    Show debugging information.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>--encoding</option></term>
+	<listitem>
+	  <para>
+	    The character encoding of SRC. If left empty (default)
+	    this information will be extracted from the HTML header
+	    data.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>-h</option></term>
+	<term><option>--help</option></term>
+	<listitem>
+	  <para>
+	    Show the help text.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>-q</option></term>
+	<term><option>--quiet</option></term>
+	<listitem>
+	  <para>
+	    Show no messages.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>--version</option></term>
+	<listitem>
+	  <para>
+	    Show version information.
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>-w</option></term>
+	<term><option>--warn</option></term>
+	<listitem>
+	  <para>
+	    Show warnings
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>-x</option></term>
+	<term><option>--xml</option></term>
+	<term><option>--xhtml</option></term>
+	<listitem>
+	  <para>
+	    Force parsing in XML mode (automatically used if SRC ends
+	    with <filename>.xml</filename>).
+	  </para>
+	</listitem>
+      </varlistentry>
+      <varlistentry>
+	<term><option>--html</option></term>
+	<listitem>
+	  <para>
+	    Force parsin in HTML mode (default).
+	  </para>
+	</listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>Author</title>
+    <para>
+      xhtml2pdf was written by Dirk Holtwick
+      <email>&lt;dirk.holtwick at gmail.com&gt;</email>.
+    </para>
+    <para>
+       This manual page was written by Toby Smithe
+       <email>&lt;tsmithe at ubuntu.com&gt;</email>, for the Debian
+       project (but may be used by others).
+     </para>
+  </refsect1>
+</refentry>




More information about the Python-modules-commits mailing list