[Python-apps-commits] r3786 - in packages (18 files)
debacle at users.alioth.debian.org
debacle at users.alioth.debian.org
Sat Sep 19 21:23:50 UTC 2009
Date: Saturday, September 19, 2009 @ 21:23:48
Author: debacle
Revision: 3786
New package pisa/xhtml2pdf by Toby Smithe.
Added:
packages/pisa/
packages/pisa/branches/
packages/pisa/tags/
packages/pisa/trunk/
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/docs
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/pisa.1
packages/pisa/trunk/debian/pisa.manpages
packages/pisa/trunk/debian/rules
packages/pisa/trunk/debian/watch
packages/pisa/trunk/debian/xhtml2pdf.1
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-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,5 @@
+pisa (3.0.32-1) unstable; urgency=low
+
+ * Initial release (Closes: #504277)
+
+ -- Toby Smithe <tsmithe at ubuntu.com> Sat, 11 Jul 2009 15:50:17 +0100
Added: packages/pisa/trunk/debian/compat
===================================================================
--- packages/pisa/trunk/debian/compat (rev 0)
+++ packages/pisa/trunk/debian/compat 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1 @@
+7
Added: packages/pisa/trunk/debian/control
===================================================================
--- packages/pisa/trunk/debian/control (rev 0)
+++ packages/pisa/trunk/debian/control 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,42 @@
+Source: pisa
+Section: python
+Priority: extra
+Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
+Uploaders: W. Martin Borgert <debacle at debian.org>
+Build-Depends: debhelper (>= 7), dpatch, python-dev
+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: pisa
+Architecture: all
+Depends: ${misc:Depends}, python, python-pisa
+Description: PDF generator using HTML and CSS (executable script)
+ 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.
+ .
+ This package provides the console scripts.
+
+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.
+ .
+ This package provides the Python module.
Added: packages/pisa/trunk/debian/copyright
===================================================================
--- packages/pisa/trunk/debian/copyright (rev 0)
+++ packages/pisa/trunk/debian/copyright 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,40 @@
+This package was debianized by:
+
+ Toby Smithe <tsmithe at ubuntu.com> on Sat, 11 Jul 2009 15:50:17 +0100
+
+It was downloaded from:
+
+ http://pypi.python.org/pypi/pisa/
+
+Upstream Author:
+
+ Dirk Holtwick <dirk.holtwick at gmail.com>
+
+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 version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is:
+
+ Copyright (C) 2009 Toby Smithe <tsmithe at ubuntu.com>
+
+and is licensed under the GPL version 3,
+see `/usr/share/common-licenses/GPL-3'.
Added: packages/pisa/trunk/debian/docs
===================================================================
--- packages/pisa/trunk/debian/docs (rev 0)
+++ packages/pisa/trunk/debian/docs 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,2 @@
+CHANGELOG.txt
+README.txt
Added: packages/pisa/trunk/debian/patches/00list
===================================================================
--- packages/pisa/trunk/debian/patches/00list (rev 0)
+++ packages/pisa/trunk/debian/patches/00list 2009-09-19 21:23:48 UTC (rev 3786)
@@ -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-09-19 21:23:48 UTC (rev 3786)
@@ -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/pisa.1
===================================================================
--- packages/pisa/trunk/debian/pisa.1 (rev 0)
+++ packages/pisa/trunk/debian/pisa.1 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,93 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH PISA 1 "July 11, 2009"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+pisa \- PDF generator using HTML and CSS
+.SH SYNOPSIS
+.B pisa
+.RI [ options ]\ SRC\ [ DEST ]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B pisa
+command.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBpisa\fP is an html2pdf converter using the ReportLab Toolkit, HTML5lib and
+pyPdf.
+.PP
+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.
+.SH OPTIONS
+A summary of options is included below.
+.TP
+.B 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 "?".
+.TP
+.B 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.
+.TP
+.B \-b, \-\-base
+Specify a base path if input comes via STDIN.
+.TP
+.B \-c, \-\-css
+Path to default CSS file
+.TP
+.B \-\-css\-dump
+Dumps the default CSS definitions to STDOUT.
+.TP
+.B \-d, \-\-debug
+Show debugging information.
+.TP
+.B \-\-encoding
+The character encoding of \fBSRC\fP. If left empty (default) this information will be extracted from the HTML header data.
+.TP
+.B \-h, \-\-help
+Show the help text.
+.TP
+.B \-q, \-\-quiet
+Show no messages.
+.TP
+.B \-\-version
+Show version information.
+.TP
+.B \-w, \-\-warn
+Show warnings
+.TP
+.B \-x, \-\-xml, \-\-xhtml
+Force parsing in XML mode (automatically used if SRC ends with ".xml").
+.TP
+.B \-\-html
+Force parsin in HTML mode (default).
+.br
+.SH AUTHOR
+pisa was written by Dirk Holtwick <dirk.holtwick at gmail.com>.
+.PP
+This manual page was written by Toby Smithe <tsmithe at ubuntu.com>,
+for the Debian project (but may be used by others).
Added: packages/pisa/trunk/debian/pisa.manpages
===================================================================
--- packages/pisa/trunk/debian/pisa.manpages (rev 0)
+++ packages/pisa/trunk/debian/pisa.manpages 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,2 @@
+debian/pisa.1
+debian/xhtml2pdf.1
Added: packages/pisa/trunk/debian/rules
===================================================================
--- packages/pisa/trunk/debian/rules (rev 0)
+++ packages/pisa/trunk/debian/rules 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,65 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+#export DH_VERBOSE=1
+PREFIX := debian/pisa/usr
+PYPREFIX := debian/python-pisa/usr
+
+build: patch build-stamp
+build-stamp:
+ touch $@
+
+unpatch:
+ dpatch deapply-all
+ rm -rf patch-stamp debian/patched
+
+patch: patch-stamp
+
+patch-stamp:
+ dpatch apply-all
+ dpatch cat-all >patch-stamp
+
+clean: clean-patched unpatch
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -rf build build-stamp binary-stamp
+ python ./setup.py clean
+ dh_clean
+
+install:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ mkdir -p $(PYPREFIX)/share/python-support/python-pisa
+ PYTHONPATH=$(PYPREFIX)/share/python-support/python-pisa \
+ python ./setup.py install --no-compile \
+ --prefix=$(PREFIX) \
+ --install-lib=$(PYPREFIX)/share/python-support/python-pisa
+
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs CHANGELOG.txt
+ dh_installdocs
+ dh_pysupport
+ -rm -r $(PYPREFIX)/share/pyshared/site.py*
+ find $(PYPREFIX)/share/pyshared -name \*py -exec chmod 644 {} +
+ dh_installman
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-stamp: build install
+ $(MAKE) -f debian/rules binary-common
+ touch $@
+
+binary-indep: binary-stamp
+binary-arch: binary-stamp
+binary: binary-stamp
+
+.PHONY: build clean binary-indep binary-arch binary install
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-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/p/pisa/pisa-(.*).tar.gz
Added: packages/pisa/trunk/debian/xhtml2pdf.1
===================================================================
--- packages/pisa/trunk/debian/xhtml2pdf.1 (rev 0)
+++ packages/pisa/trunk/debian/xhtml2pdf.1 2009-09-19 21:23:48 UTC (rev 3786)
@@ -0,0 +1,93 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH PISA 1 "July 11, 2009"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+pisa \- PDF generator using HTML and CSS
+.SH SYNOPSIS
+.B pisa
+.RI [ options ]\ SRC\ [ DEST ]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B pisa
+command.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBpisa\fP is an html2pdf converter using the ReportLab Toolkit, HTML5lib and
+pyPdf.
+.PP
+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.
+.SH OPTIONS
+A summary of options is included below.
+.TP
+.B 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 "?".
+.TP
+.B 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.
+.TP
+.B \-b, \-\-base
+Specify a base path if input comes via STDIN.
+.TP
+.B \-c, \-\-css
+Path to default CSS file
+.TP
+.B \-\-css\-dump
+Dumps the default CSS definitions to STDOUT.
+.TP
+.B \-d, \-\-debug
+Show debugging information.
+.TP
+.B \-\-encoding
+The character encoding of \fBSRC\fP. If left empty (default) this information will be extracted from the HTML header data.
+.TP
+.B \-h, \-\-help
+Show the help text.
+.TP
+.B \-q, \-\-quiet
+Show no messages.
+.TP
+.B \-\-version
+Show version information.
+.TP
+.B \-w, \-\-warn
+Show warnings
+.TP
+.B \-x, \-\-xml, \-\-xhtml
+Force parsing in XML mode (automatically used if SRC ends with ".xml").
+.TP
+.B \-\-html
+Force parsin in HTML mode (default).
+.br
+.SH AUTHOR
+pisa was written by Dirk Holtwick <dirk.holtwick at gmail.com>.
+.PP
+This manual page was written by Toby Smithe <tsmithe at ubuntu.com>,
+for the Debian project (but may be used by others).
More information about the Python-apps-commits
mailing list