diff options
author | wiz <wiz@pkgsrc.org> | 2016-11-08 11:42:01 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-11-08 11:42:01 +0000 |
commit | 2c0a3262749a704689c1e0ec4fbc8f3de8c62cac (patch) | |
tree | 9347d181f02cc4e1c0e0d948b82c447917ff8b4c | |
parent | a9013893756b83f82cc0414f5d6ccd5162d33704 (diff) | |
download | pkgsrc-2c0a3262749a704689c1e0ec4fbc8f3de8c62cac.tar.gz |
Re-import py27-pisa-3.0.33 as print/py-pisa as requested by joerg.
pisa is a html2pdf convert using ReportLab, HTML5lib and pyPDF.
It supports HTML 5 and CSS 2.1.
This package is obsolete. Please use print/py-weasyprint instead.
-rw-r--r-- | print/py-pisa/DESCR | 4 | ||||
-rw-r--r-- | print/py-pisa/Makefile | 27 | ||||
-rw-r--r-- | print/py-pisa/PLIST | 83 | ||||
-rw-r--r-- | print/py-pisa/distinfo | 7 | ||||
-rw-r--r-- | print/py-pisa/patches/patch-aa | 25 |
5 files changed, 146 insertions, 0 deletions
diff --git a/print/py-pisa/DESCR b/print/py-pisa/DESCR new file mode 100644 index 00000000000..2a9e088b5ab --- /dev/null +++ b/print/py-pisa/DESCR @@ -0,0 +1,4 @@ +pisa is a html2pdf convert using ReportLab, HTML5lib and pyPDF. +It supports HTML 5 and CSS 2.1. + +This package is obsolete. Please use print/py-weasyprint instead. diff --git a/print/py-pisa/Makefile b/print/py-pisa/Makefile new file mode 100644 index 00000000000..155fd811991 --- /dev/null +++ b/print/py-pisa/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.15 2016/11/08 11:42:01 wiz Exp $ + +DISTNAME= pisa-3.0.33 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= textproc print www python +MASTER_SITES= ${MASTER_SITE_PYPI:=p/pisa/} + +OWNER= joerg@NetBSD.org +HOMEPAGE= http://www.htmltopdf.org/ +COMMENT= HTML2pdf converter (obsolete, use print/py-weasyprint instead) +LICENSE= apache-2.0 + +DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf +DEPENDS+= ${PYPKGPREFIX}-reportlab>=2.2:../../print/py-reportlab +DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib + +PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # not ported as of 3.0.33 + +# remove CRs: fixes patching on Darwin and stops pkglint from complaining +pre-patch: +.for f in css.py cssDOMElementInterface.py + ${TR} -d '\r' < ${WRKSRC}/sx/w3c/${f} > ${WRKSRC}/sx/w3c/${f}.new + ${MV} ${WRKSRC}/sx/w3c/${f}.new ${WRKSRC}/sx/w3c/${f} +.endfor + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/print/py-pisa/PLIST b/print/py-pisa/PLIST new file mode 100644 index 00000000000..386c6683919 --- /dev/null +++ b/print/py-pisa/PLIST @@ -0,0 +1,83 @@ +@comment $NetBSD: PLIST,v 1.4 2016/11/08 11:42:01 wiz Exp $ +bin/pisa +bin/xhtml2pdf +${PYSITELIB}/ho/__init__.py +${PYSITELIB}/ho/__init__.pyc +${PYSITELIB}/ho/__init__.pyo +${PYSITELIB}/ho/pisa/__init__.py +${PYSITELIB}/ho/pisa/__init__.pyc +${PYSITELIB}/ho/pisa/__init__.pyo +${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}/top_level.txt +${PYSITELIB}/sx/__init__.py +${PYSITELIB}/sx/__init__.pyc +${PYSITELIB}/sx/__init__.pyo +${PYSITELIB}/sx/pisa3/__init__.py +${PYSITELIB}/sx/pisa3/__init__.pyc +${PYSITELIB}/sx/pisa3/__init__.pyo +${PYSITELIB}/sx/pisa3/pisa.py +${PYSITELIB}/sx/pisa3/pisa.pyc +${PYSITELIB}/sx/pisa3/pisa.pyo +${PYSITELIB}/sx/pisa3/pisa_context.py +${PYSITELIB}/sx/pisa3/pisa_context.pyc +${PYSITELIB}/sx/pisa3/pisa_context.pyo +${PYSITELIB}/sx/pisa3/pisa_default.py +${PYSITELIB}/sx/pisa3/pisa_default.pyc +${PYSITELIB}/sx/pisa3/pisa_default.pyo +${PYSITELIB}/sx/pisa3/pisa_document.py +${PYSITELIB}/sx/pisa3/pisa_document.pyc +${PYSITELIB}/sx/pisa3/pisa_document.pyo +${PYSITELIB}/sx/pisa3/pisa_paragraph.py +${PYSITELIB}/sx/pisa3/pisa_paragraph.pyc +${PYSITELIB}/sx/pisa3/pisa_paragraph.pyo +${PYSITELIB}/sx/pisa3/pisa_paragraph2.py +${PYSITELIB}/sx/pisa3/pisa_paragraph2.pyc +${PYSITELIB}/sx/pisa3/pisa_paragraph2.pyo +${PYSITELIB}/sx/pisa3/pisa_parser.py +${PYSITELIB}/sx/pisa3/pisa_parser.pyc +${PYSITELIB}/sx/pisa3/pisa_parser.pyo +${PYSITELIB}/sx/pisa3/pisa_pdf.py +${PYSITELIB}/sx/pisa3/pisa_pdf.pyc +${PYSITELIB}/sx/pisa3/pisa_pdf.pyo +${PYSITELIB}/sx/pisa3/pisa_reportlab.py +${PYSITELIB}/sx/pisa3/pisa_reportlab.pyc +${PYSITELIB}/sx/pisa3/pisa_reportlab.pyo +${PYSITELIB}/sx/pisa3/pisa_tables.py +${PYSITELIB}/sx/pisa3/pisa_tables.pyc +${PYSITELIB}/sx/pisa3/pisa_tables.pyo +${PYSITELIB}/sx/pisa3/pisa_tags.py +${PYSITELIB}/sx/pisa3/pisa_tags.pyc +${PYSITELIB}/sx/pisa3/pisa_tags.pyo +${PYSITELIB}/sx/pisa3/pisa_turbogears.py +${PYSITELIB}/sx/pisa3/pisa_turbogears.pyc +${PYSITELIB}/sx/pisa3/pisa_turbogears.pyo +${PYSITELIB}/sx/pisa3/pisa_util.py +${PYSITELIB}/sx/pisa3/pisa_util.pyc +${PYSITELIB}/sx/pisa3/pisa_util.pyo +${PYSITELIB}/sx/pisa3/pisa_version.py +${PYSITELIB}/sx/pisa3/pisa_version.pyc +${PYSITELIB}/sx/pisa3/pisa_version.pyo +${PYSITELIB}/sx/pisa3/pisa_wsgi.py +${PYSITELIB}/sx/pisa3/pisa_wsgi.pyc +${PYSITELIB}/sx/pisa3/pisa_wsgi.pyo +${PYSITELIB}/sx/pisa3/reportlab_paragraph.py +${PYSITELIB}/sx/pisa3/reportlab_paragraph.pyc +${PYSITELIB}/sx/pisa3/reportlab_paragraph.pyo +${PYSITELIB}/sx/w3c/__init__.py +${PYSITELIB}/sx/w3c/__init__.pyc +${PYSITELIB}/sx/w3c/__init__.pyo +${PYSITELIB}/sx/w3c/css.py +${PYSITELIB}/sx/w3c/css.pyc +${PYSITELIB}/sx/w3c/css.pyo +${PYSITELIB}/sx/w3c/cssDOMElementInterface.py +${PYSITELIB}/sx/w3c/cssDOMElementInterface.pyc +${PYSITELIB}/sx/w3c/cssDOMElementInterface.pyo +${PYSITELIB}/sx/w3c/cssParser.py +${PYSITELIB}/sx/w3c/cssParser.pyc +${PYSITELIB}/sx/w3c/cssParser.pyo +${PYSITELIB}/sx/w3c/cssSpecial.py +${PYSITELIB}/sx/w3c/cssSpecial.pyc +${PYSITELIB}/sx/w3c/cssSpecial.pyo diff --git a/print/py-pisa/distinfo b/print/py-pisa/distinfo new file mode 100644 index 00000000000..02c7fa607cf --- /dev/null +++ b/print/py-pisa/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.7 2016/11/08 11:42:01 wiz Exp $ + +SHA1 (pisa-3.0.33.tar.gz) = 3d7e644b96b7c8f98bfd5823a163c3badd662209 +RMD160 (pisa-3.0.33.tar.gz) = 1479865d1f0b14f4a37c74fc8aae7e72e9d0efac +SHA512 (pisa-3.0.33.tar.gz) = 5d11d717734ca30876697ce25c77f381a560f4b266b2dbd9f2445ac9b39e2750cc3ff31603d9a1cba6ed51a047fca38ac95a2a4dddf88b238aa5c0d6f810a975 +Size (pisa-3.0.33.tar.gz) = 4500555 bytes +SHA1 (patch-aa) = 39354cac1592787d43622c04ef776f13b39450ca diff --git a/print/py-pisa/patches/patch-aa b/print/py-pisa/patches/patch-aa new file mode 100644 index 00000000000..a68fc58bb67 --- /dev/null +++ b/print/py-pisa/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.4 2016/11/08 11:42:01 wiz Exp $ + +--- sx/w3c/css.py.orig 2009-03-18 13:02:36.000000000 +0000 ++++ sx/w3c/css.py +@@ -37,7 +37,10 @@ Dependencies: + #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + import copy +-import sets ++try: ++ set ++except NameError: ++ from sets import Set as set + import cssParser + import cssSpecial + +@@ -526,7 +529,7 @@ class CSSInlineRuleset(CSSRuleset, CSSDe + class CSSBuilder(cssParser.CSSBuilderAbstract): + RulesetFactory = CSSRuleset + SelectorFactory = CSSMutableSelector +- MediumSetFactory = sets.Set ++ MediumSetFactory = set + DeclarationsFactory = CSSDeclarations + TermFunctionFactory = CSSTerminalFunction + TermOperatorFactory = CSSTerminalOperator |