pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print py-xhtml2pdf: added version 0.2.5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c0595430566
branches:  trunk
changeset: 451559:4c0595430566
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Apr 28 09:56:15 2021 +0000

description:
py-xhtml2pdf: added version 0.2.5

xhtml2pdf is a HTML to PDF converter using Python, the ReportLab Toolkit,
html5lib and PyPDF2. It supports HTML5 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 is that a user with web skills like HTML and CSS
is able to generate PDF templates very quickly without learning new
technologies.

diffstat:

 print/Makefile                  |   3 +-
 print/py-xhtml2pdf/ALTERNATIVES |   2 +
 print/py-xhtml2pdf/DESCR        |   7 +++
 print/py-xhtml2pdf/Makefile     |  32 ++++++++++++++++++
 print/py-xhtml2pdf/PLIST        |  72 +++++++++++++++++++++++++++++++++++++++++
 print/py-xhtml2pdf/distinfo     |   6 +++
 6 files changed, 121 insertions(+), 1 deletions(-)

diffs (156 lines):

diff -r acbc6a9a8421 -r 4c0595430566 print/Makefile
--- a/print/Makefile    Wed Apr 28 09:54:24 2021 +0000
+++ b/print/Makefile    Wed Apr 28 09:56:15 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.804 2021/04/27 05:02:29 adam Exp $
+# $NetBSD: Makefile,v 1.805 2021/04/28 09:56:15 adam Exp $
 #
 
 COMMENT=       Desktop publishing
@@ -138,6 +138,7 @@
 SUBDIR+=       py-pslib
 SUBDIR+=       py-reportlab
 SUBDIR+=       py-weasyprint
+SUBDIR+=       py-xhtml2pdf
 SUBDIR+=       qpdf
 SUBDIR+=       qpdfview
 SUBDIR+=       rlpr
diff -r acbc6a9a8421 -r 4c0595430566 print/py-xhtml2pdf/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-xhtml2pdf/ALTERNATIVES   Wed Apr 28 09:56:15 2021 +0000
@@ -0,0 +1,2 @@
+bin/pisa @PREFIX@/bin/pisa-@PYVERSSUFFIX@
+bin/xhtml2pdf @PREFIX@/bin/xhtml2pdf-@PYVERSSUFFIX@
diff -r acbc6a9a8421 -r 4c0595430566 print/py-xhtml2pdf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-xhtml2pdf/DESCR  Wed Apr 28 09:56:15 2021 +0000
@@ -0,0 +1,7 @@
+xhtml2pdf is a HTML to PDF converter using Python, the ReportLab Toolkit,
+html5lib and PyPDF2. It supports HTML5 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 is that a user with web skills like HTML and CSS
+is able to generate PDF templates very quickly without learning new
+technologies.
diff -r acbc6a9a8421 -r 4c0595430566 print/py-xhtml2pdf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-xhtml2pdf/Makefile       Wed Apr 28 09:56:15 2021 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2021/04/28 09:56:15 adam Exp $
+
+DISTNAME=      xhtml2pdf-0.2.5
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    print python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=x/xhtml2pdf/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/xhtml2pdf/xhtml2pdf
+COMMENT=       PDF generator using HTML and CSS
+LICENSE=       apache-2.0
+
+DEPENDS+=      ${PYPKGPREFIX}-PDF2-[0-9]*:../../print/py-PDF2
+DEPENDS+=      ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+DEPENDS+=      ${PYPKGPREFIX}-arabic-reshaper>=2.1.0:../../converters/py-arabic-reshaper
+DEPENDS+=      ${PYPKGPREFIX}-bidi>=0.4.2:../../converters/py-bidi
+DEPENDS+=      ${PYPKGPREFIX}-html5lib>=1.0:../../textproc/py-html5lib
+DEPENDS+=      ${PYPKGPREFIX}-reportlab>=3.3.0:../../print/py-reportlab
+DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27      # py-pyphen
+
+post-install:
+.for bin in pisa xhtml2pdf
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
+.endfor
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r acbc6a9a8421 -r 4c0595430566 print/py-xhtml2pdf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-xhtml2pdf/PLIST  Wed Apr 28 09:56:15 2021 +0000
@@ -0,0 +1,72 @@
+@comment $NetBSD: PLIST,v 1.1 2021/04/28 09:56:15 adam Exp $
+bin/pisa-${PYVERSSUFFIX}
+bin/xhtml2pdf-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/xhtml2pdf/__init__.py
+${PYSITELIB}/xhtml2pdf/__init__.pyc
+${PYSITELIB}/xhtml2pdf/__init__.pyo
+${PYSITELIB}/xhtml2pdf/config/__init__.py
+${PYSITELIB}/xhtml2pdf/config/__init__.pyc
+${PYSITELIB}/xhtml2pdf/config/__init__.pyo
+${PYSITELIB}/xhtml2pdf/config/httpconfig.py
+${PYSITELIB}/xhtml2pdf/config/httpconfig.pyc
+${PYSITELIB}/xhtml2pdf/config/httpconfig.pyo
+${PYSITELIB}/xhtml2pdf/context.py
+${PYSITELIB}/xhtml2pdf/context.pyc
+${PYSITELIB}/xhtml2pdf/context.pyo
+${PYSITELIB}/xhtml2pdf/default.py
+${PYSITELIB}/xhtml2pdf/default.pyc
+${PYSITELIB}/xhtml2pdf/default.pyo
+${PYSITELIB}/xhtml2pdf/document.py
+${PYSITELIB}/xhtml2pdf/document.pyc
+${PYSITELIB}/xhtml2pdf/document.pyo
+${PYSITELIB}/xhtml2pdf/paragraph.py
+${PYSITELIB}/xhtml2pdf/paragraph.pyc
+${PYSITELIB}/xhtml2pdf/paragraph.pyo
+${PYSITELIB}/xhtml2pdf/parser.py
+${PYSITELIB}/xhtml2pdf/parser.pyc
+${PYSITELIB}/xhtml2pdf/parser.pyo
+${PYSITELIB}/xhtml2pdf/pdf.py
+${PYSITELIB}/xhtml2pdf/pdf.pyc
+${PYSITELIB}/xhtml2pdf/pdf.pyo
+${PYSITELIB}/xhtml2pdf/pisa.py
+${PYSITELIB}/xhtml2pdf/pisa.pyc
+${PYSITELIB}/xhtml2pdf/pisa.pyo
+${PYSITELIB}/xhtml2pdf/reportlab_paragraph.py
+${PYSITELIB}/xhtml2pdf/reportlab_paragraph.pyc
+${PYSITELIB}/xhtml2pdf/reportlab_paragraph.pyo
+${PYSITELIB}/xhtml2pdf/tables.py
+${PYSITELIB}/xhtml2pdf/tables.pyc
+${PYSITELIB}/xhtml2pdf/tables.pyo
+${PYSITELIB}/xhtml2pdf/tags.py
+${PYSITELIB}/xhtml2pdf/tags.pyc
+${PYSITELIB}/xhtml2pdf/tags.pyo
+${PYSITELIB}/xhtml2pdf/util.py
+${PYSITELIB}/xhtml2pdf/util.pyc
+${PYSITELIB}/xhtml2pdf/util.pyo
+${PYSITELIB}/xhtml2pdf/w3c/__init__.py
+${PYSITELIB}/xhtml2pdf/w3c/__init__.pyc
+${PYSITELIB}/xhtml2pdf/w3c/__init__.pyo
+${PYSITELIB}/xhtml2pdf/w3c/css.py
+${PYSITELIB}/xhtml2pdf/w3c/css.pyc
+${PYSITELIB}/xhtml2pdf/w3c/css.pyo
+${PYSITELIB}/xhtml2pdf/w3c/cssDOMElementInterface.py
+${PYSITELIB}/xhtml2pdf/w3c/cssDOMElementInterface.pyc
+${PYSITELIB}/xhtml2pdf/w3c/cssDOMElementInterface.pyo
+${PYSITELIB}/xhtml2pdf/w3c/cssParser.py
+${PYSITELIB}/xhtml2pdf/w3c/cssParser.pyc
+${PYSITELIB}/xhtml2pdf/w3c/cssParser.pyo
+${PYSITELIB}/xhtml2pdf/w3c/cssSpecial.py
+${PYSITELIB}/xhtml2pdf/w3c/cssSpecial.pyc
+${PYSITELIB}/xhtml2pdf/w3c/cssSpecial.pyo
+${PYSITELIB}/xhtml2pdf/wsgi.py
+${PYSITELIB}/xhtml2pdf/wsgi.pyc
+${PYSITELIB}/xhtml2pdf/wsgi.pyo
+${PYSITELIB}/xhtml2pdf/xhtml2pdf_reportlab.py
+${PYSITELIB}/xhtml2pdf/xhtml2pdf_reportlab.pyc
+${PYSITELIB}/xhtml2pdf/xhtml2pdf_reportlab.pyo
diff -r acbc6a9a8421 -r 4c0595430566 print/py-xhtml2pdf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-xhtml2pdf/distinfo       Wed Apr 28 09:56:15 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/04/28 09:56:15 adam Exp $
+
+SHA1 (xhtml2pdf-0.2.5.tar.gz) = 4178dd9831b003cd74a246054011f3b8ead768f8
+RMD160 (xhtml2pdf-0.2.5.tar.gz) = 1314366bcddb31344db53b22b1fc1464da9bc376
+SHA512 (xhtml2pdf-0.2.5.tar.gz) = 370a8772ed85e8fddd7bcdd7f116310042294b9cb541b227ff1e1864ad52b9e3af034332fccc86a57260b1ca82bf34dc3327c273cc3bfa05ba2e46708619305c
+Size (xhtml2pdf-0.2.5.tar.gz) = 100124 bytes



Home | Main Index | Thread Index | Old Index