From f564fa1aec5fbc57e92b39ab88649e29fbb309b6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 29 Oct 2013 21:22:05 -0400 Subject: Initial commit. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..70af57f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!*/ +!debian/* diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..cc969ec --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,11 @@ +!.gitignore +!* +files +*.debhelper.log +*.substvars +*.debhelper +tmp/ +weasyprint/ +python-weasyprint/ +python3-weasyprint/ +weasyprint-doc/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a19c5e7 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +weasyprint (0.19.2-1) unstable; urgency=low + + * Initial release + + -- "P. J. McDermott" Sun, 27 Oct 2013 16:06:02 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..332517a --- /dev/null +++ b/debian/control @@ -0,0 +1,92 @@ +Source: weasyprint +Section: python +Priority: optional +Maintainer: "P. J. McDermott" +Build-Depends: debhelper (>= 9), +# Needed to build Python 2 modules: + python-all (>= 2.6.6-3~), + python-setuptools, +# Needed to build Python 3 modules: +# Uncomment when python3-cssselect is built. +# python3-all (>= 3.1.2-7~), +# python3-setuptools, +# Needed to build documenation: + python-sphinx, +# Needed to build documentation with sphinx.ext.autodoc: + python-lxml, + python-tinycss, + python-cssselect, + python-cairosvg, + python-cffi, + python-cairocffi, + python-pyphen, +# Needed to build documentation with sphinx.ext.intersphinx: + python-cairo-dev, + python-cairocffi-doc, +Standards-Version: 3.9.4 +Homepage: http://weasyprint.org/ +X-Python-Version: >= 2.6 +# Uncomment when python3-cssselect is built. +#X-Python3-Version: >= 3.1 + +Package: weasyprint +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, + python-weasyprint (= ${binary:Version}), +Description: Utility to convert Web documents to PDF + WeasyPrint is a visual rendering engine for HTML and CSS that can export to + PDF. It aims to support web standards for printing. WeasyPrint is free + software made available under a BSD license. + . + It is based on various libraries but *not* on a full rendering engine like + WebKit or Gecko. The CSS layout engine is written in Python, designed for + pagination, and meant to be easy to hack on. + . + This package provides the /usr/bin/weasyprint utility. + +Package: python-weasyprint +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, +Description: Rendering engine to convert HTML/CSS to PDF (Python 2) + WeasyPrint is a visual rendering engine for HTML and CSS that can export to + PDF. It aims to support web standards for printing. WeasyPrint is free + software made available under a BSD license. + . + It is based on various libraries but *not* on a full rendering engine like + WebKit or Gecko. The CSS layout engine is written in Python, designed for + pagination, and meant to be easy to hack on. + . + This package provides the Python 2 modules for the WeasyPrint visual rendering + engine. + +# Uncomment when python3-cssselect is built. +#Package: python3-weasyprint +#Architecture: all +#Depends: ${misc:Depends}, ${python3:Depends}, +#Description: Rendering engine to convert HTML/CSS to PDF (Python 3) +# WeasyPrint is a visual rendering engine for HTML and CSS that can export to +# PDF. It aims to support web standards for printing. WeasyPrint is free +# software made available under a BSD license. +# . +# It is based on various libraries but *not* on a full rendering engine like +# WebKit or Gecko. The CSS layout engine is written in Python, designed for +# pagination, and meant to be easy to hack on. +# . +# This package provides the Python 3 modules for the WeasyPrint visual rendering +# engine. + +Package: weasyprint-doc +Section: doc +Architecture: all +Depends: ${misc:Depends}, ${sphinxdoc:Depends}, +Description: Rendering engine to convert HTML/CSS to PDF - documentation + WeasyPrint is a visual rendering engine for HTML and CSS that can export to + PDF. It aims to support web standards for printing. WeasyPrint is free + software made available under a BSD license. + . + It is based on various libraries but *not* on a full rendering engine like + WebKit or Gecko. The CSS layout engine is written in Python, designed for + pagination, and meant to be easy to hack on. + . + This package provides the documentation for the WeasyPrint visual rendering + engine. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c5d2a1d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,41 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: WeasyPrint +Source: https://pypi.python.org/pypi/WeasyPrint + +Files: * +Copyright: 2011-2013 Simon Sapin and contributors, see AUTHORS. +License: BSD-3-Clause + +Files: debian/* +Copyright: 2013 Patrick "P. J." McDermott +License: BSD-3-Clause + +License: BSD-3-Clause + Redistribution and use in source and binary forms of the software as well + as documentation, 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. + . + * The names of the contributors may not be used to endorse or + promote products derived from this software without specific + prior written permission. + . + THIS SOFTWARE AND DOCUMENTATION 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 COPYRIGHT OWNER + 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 AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/patches/add-AUTHORS.patch b/debian/patches/add-AUTHORS.patch new file mode 100644 index 0000000..fce188b --- /dev/null +++ b/debian/patches/add-AUTHORS.patch @@ -0,0 +1,27 @@ +From: "P. J. McDermott" +Origin: upstream, https://github.com/Kozea/WeasyPrint/blob/master/AUTHORS +Subject: Add missing "AUTHORS" file + +--- a/AUTHORS ++++ b/AUTHORS +@@ -0,0 +1,20 @@ ++Authors ++------- ++ ++Development Lead: ++ ++- Simon Sapin ++ ++Contributors: ++ ++- Andres Riofrio ++- Aymeric Bois ++- Chung Wu ++- Guillaume Ayoub ++- Johan Dahlin ++- mbarkhau ++- Peter Moulder ++- Pierre-Alain Mignot ++- Priit Laes ++- Salem Harrache ++- Sergey Pikhovkin diff --git a/debian/patches/intersphinx_mapping.patch b/debian/patches/intersphinx_mapping.patch new file mode 100644 index 0000000..6b8fa17 --- /dev/null +++ b/debian/patches/intersphinx_mapping.patch @@ -0,0 +1,22 @@ +Author: "P. J. McDermott" +Forwarded: not-needed +Subject: Use non-None object inventory values in intersphinx_mapping + +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -251,7 +251,12 @@ + + # Example configuration for intersphinx: refer to the Python standard library. + intersphinx_mapping = { +- 'python': ('http://docs.python.org/', None), +- 'pycairo': ('http://www.cairographics.org/documentation/pycairo/2/', None), +- 'cairocffi': ('http://pythonhosted.org/cairocffi/', None), ++ 'python': ('http://docs.python.org/', ++ '/usr/share/doc/python' + ++ '.'.join([str(x) for x in sys.version_info[0:2]]) + ++ '/html/objects.inv'), ++ 'pycairo': ('http://www.cairographics.org/documentation/pycairo/2/', ++ '/usr/share/doc/python-cairo-dev/html/objects.inv'), ++ 'cairocffi': ('http://pythonhosted.org/cairocffi/', ++ '/usr/share/doc/python-cairocffi-doc/html/objects.inv'), + } diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..a85a61e --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +add-AUTHORS.patch +intersphinx_mapping.patch diff --git a/debian/python-weasyprint.install b/debian/python-weasyprint.install new file mode 100644 index 0000000..0105c59 --- /dev/null +++ b/debian/python-weasyprint.install @@ -0,0 +1 @@ +usr/lib/python2.*/ diff --git a/debian/python3-weasyprint.install b/debian/python3-weasyprint.install new file mode 100644 index 0000000..eae3930 --- /dev/null +++ b/debian/python3-weasyprint.install @@ -0,0 +1 @@ +usr/lib/python3/ diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..187f72e --- /dev/null +++ b/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + # Uncomment when python3-cssselect is built. + #dh $@ --with python2,python3,sphinxdoc + dh $@ --with python2,sphinxdoc + +override_dh_auto_build: + # Uncomment when python3-cssselect is built. + #set -ex; for python in $$(py3versions -r); do \ + # $$python setup.py build; \ + #done + dh_auto_build + +override_dh_auto_install: + # Uncomment when python3-cssselect is built. + #set -ex; for python in $$(py3versions -r); do \ + # $$python setup.py install --root=$$(pwd)/debian/tmp \ + # --install-layout=deb; \ + #done + dh_auto_install + rm -Rf debian/tmp/usr/share/pyshared/weasyprint/tests/ + +override_dh_installdocs: + python setup.py build_sphinx + dh_installdocs + +override_dh_compress: + dh_compress -X.rst + +override_dh_auto_clean: + dh_auto_clean + rm -Rf build/ docs/_build/ + +get-orig-source: + uscan --noconf --verbose --rename --force-download \ + --download-current-version + +unpack-orig-source: get-orig-source + # Remove currently unpacked source. + for f in * .[!.] .??*; do \ + if [ -e $${f} ] && [ $${f} != debian ] && \ + [ $${f} != .gitignore ]; then \ + rm -Rf $${f}; \ + fi; \ + done + # Unpack source archive. + set -e; \ + source=$$(dpkg-parsechangelog | sed -n 's/^Source: //p'); \ + version=$$(dpkg-parsechangelog | \ + sed -n 's/^Version: \([^-]*\).*$$/\1/p'); \ + tar -xzf ../$${source}_$${version}.orig.tar.gz + # Find directory containing unpacked source files. Move source files + # into the top-level directory. + set -e; \ + for f in */ .[!.]/ .??*/; do \ + if [ -d $${f} ] && [ $${f} != debian ]; then \ + for ff in $${f}/* $${f}/.[!.] $${f}/.??*; do \ + if [ -e $${ff} ]; then \ + mv $${ff} .; \ + fi; \ + done; \ + rmdir $${f}/; \ + fi; \ + done diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..4889976 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 + +https://pypi.python.org/packages/source/W/WeasyPrint/WeasyPrint-(.*)\.tar\.gz diff --git a/debian/weasyprint-doc.doc-base b/debian/weasyprint-doc.doc-base new file mode 100644 index 0000000..42f38ed --- /dev/null +++ b/debian/weasyprint-doc.doc-base @@ -0,0 +1,10 @@ +Document: weasyprint +Title: WeasyPrint manual +Author: Simon Sapin and contributors +Abstract: WeasyPrint is a visual rendering engine for HTML and CSS that can + export to PDF. It aims to support web standards for printing. +Section: Text + +Format: HTML +Index: /usr/share/doc/weasyprint-doc/html/index.html +Files: /usr/share/doc/weasyprint-doc/html/*.html diff --git a/debian/weasyprint-doc.docs b/debian/weasyprint-doc.docs new file mode 100644 index 0000000..dd2636a --- /dev/null +++ b/debian/weasyprint-doc.docs @@ -0,0 +1 @@ +docs/_build/html/ diff --git a/debian/weasyprint.install b/debian/weasyprint.install new file mode 100644 index 0000000..c703cf8 --- /dev/null +++ b/debian/weasyprint.install @@ -0,0 +1 @@ +usr/bin/ -- cgit v0.9.1