pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/py-pisa Re-import py27-pisa-3.0.33 as print/py-p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9539447150d5
branches:  trunk
changeset: 354765:9539447150d5
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Nov 08 11:42:01 2016 +0000

description:
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.

diffstat:

 print/py-pisa/DESCR            |   4 ++
 print/py-pisa/Makefile         |  27 +++++++++++++
 print/py-pisa/PLIST            |  83 ++++++++++++++++++++++++++++++++++++++++++
 print/py-pisa/distinfo         |   7 +++
 print/py-pisa/patches/patch-aa |  25 ++++++++++++
 5 files changed, 146 insertions(+), 0 deletions(-)

diffs (166 lines):

diff -r 91981674fc92 -r 9539447150d5 print/py-pisa/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-pisa/DESCR       Tue Nov 08 11:42:01 2016 +0000
@@ -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 -r 91981674fc92 -r 9539447150d5 print/py-pisa/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-pisa/Makefile    Tue Nov 08 11:42:01 2016 +0000
@@ -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@localhost
+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 -r 91981674fc92 -r 9539447150d5 print/py-pisa/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-pisa/PLIST       Tue Nov 08 11:42:01 2016 +0000
@@ -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 -r 91981674fc92 -r 9539447150d5 print/py-pisa/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-pisa/distinfo    Tue Nov 08 11:42:01 2016 +0000
@@ -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 -r 91981674fc92 -r 9539447150d5 print/py-pisa/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-pisa/patches/patch-aa    Tue Nov 08 11:42:01 2016 +0000
@@ -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



Home | Main Index | Thread Index | Old Index