diff options
author | kleink <kleink> | 2015-08-14 17:05:04 +0000 |
---|---|---|
committer | kleink <kleink> | 2015-08-14 17:05:04 +0000 |
commit | 730225b020adcf4bb762001e7065b127ab792841 (patch) | |
tree | 37e3f337f624b6e4daf8127ddc1326fcb94a0f3b /print/py-weasyprint | |
parent | 916e2ea6e81e20c5b2dbc12233e241cf2d91cdf4 (diff) | |
download | pkgsrc-730225b020adcf4bb762001e7065b127ab792841.tar.gz |
Import Weasyprint-0.24 as print/py-weasyprint.
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.
Diffstat (limited to 'print/py-weasyprint')
-rw-r--r-- | print/py-weasyprint/DESCR | 7 | ||||
-rw-r--r-- | print/py-weasyprint/Makefile | 26 | ||||
-rw-r--r-- | print/py-weasyprint/PLIST | 171 | ||||
-rw-r--r-- | print/py-weasyprint/distinfo | 6 | ||||
-rw-r--r-- | print/py-weasyprint/patches/patch-setup.py | 15 |
5 files changed, 225 insertions, 0 deletions
diff --git a/print/py-weasyprint/DESCR b/print/py-weasyprint/DESCR new file mode 100644 index 00000000000..2735fe58c23 --- /dev/null +++ b/print/py-weasyprint/DESCR @@ -0,0 +1,7 @@ +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. diff --git a/print/py-weasyprint/Makefile b/print/py-weasyprint/Makefile new file mode 100644 index 00000000000..0e711e99de4 --- /dev/null +++ b/print/py-weasyprint/Makefile @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2015/08/14 17:05:04 kleink Exp $ + +DISTNAME= WeasyPrint-0.24 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} +CATEGORIES= print python +MASTER_SITES= ${MASTER_SITE_PYPI:=W/WeasyPrint/} + +MAINTAINER= kleink@NetBSD.org +HOMEPAGE= http://weasyprint.org/ +COMMENT= Converts HTML/CSS documents to PDF +LICENSE= modified-bsd + +USE_LANGUAGES= # empty + +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q} + +DEPENDS+= ${PYPKGPREFIX}-cairosvg>=0.4.1:../../converters/py-cairosvg +DEPENDS+= ${PYPKGPREFIX}-cairocffi>=0.5:../../graphics/py-cairocffi +DEPENDS+= ${PYPKGPREFIX}-lxml>=3.0:../../textproc/py-lxml +DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.999:../../textproc/py-html5lib +DEPENDS+= ${PYPKGPREFIX}-tinycss>=0.3:../../textproc/py-tinycss +DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.6:../../textproc/py-cssselect +DEPENDS+= ${PYPKGPREFIX}-pyphen>=0.8:../../textproc/py-pyphen + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/print/py-weasyprint/PLIST b/print/py-weasyprint/PLIST new file mode 100644 index 00000000000..f8f21ce705d --- /dev/null +++ b/print/py-weasyprint/PLIST @@ -0,0 +1,171 @@ +@comment $NetBSD: PLIST,v 1.1 2015/08/14 17:05:04 kleink Exp $ +bin/weasyprint${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}/not-zip-safe +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/weasyprint/__init__.py +${PYSITELIB}/weasyprint/__init__.pyc +${PYSITELIB}/weasyprint/__init__.pyo +${PYSITELIB}/weasyprint/__main__.py +${PYSITELIB}/weasyprint/__main__.pyc +${PYSITELIB}/weasyprint/__main__.pyo +${PYSITELIB}/weasyprint/compat.py +${PYSITELIB}/weasyprint/compat.pyc +${PYSITELIB}/weasyprint/compat.pyo +${PYSITELIB}/weasyprint/css/__init__.py +${PYSITELIB}/weasyprint/css/__init__.pyc +${PYSITELIB}/weasyprint/css/__init__.pyo +${PYSITELIB}/weasyprint/css/computed_values.py +${PYSITELIB}/weasyprint/css/computed_values.pyc +${PYSITELIB}/weasyprint/css/computed_values.pyo +${PYSITELIB}/weasyprint/css/html5_ua.css +${PYSITELIB}/weasyprint/css/properties.py +${PYSITELIB}/weasyprint/css/properties.pyc +${PYSITELIB}/weasyprint/css/properties.pyo +${PYSITELIB}/weasyprint/css/tests_ua.css +${PYSITELIB}/weasyprint/css/validation.py +${PYSITELIB}/weasyprint/css/validation.pyc +${PYSITELIB}/weasyprint/css/validation.pyo +${PYSITELIB}/weasyprint/document.py +${PYSITELIB}/weasyprint/document.pyc +${PYSITELIB}/weasyprint/document.pyo +${PYSITELIB}/weasyprint/draw.py +${PYSITELIB}/weasyprint/draw.pyc +${PYSITELIB}/weasyprint/draw.pyo +${PYSITELIB}/weasyprint/formatting_structure/__init__.py +${PYSITELIB}/weasyprint/formatting_structure/__init__.pyc +${PYSITELIB}/weasyprint/formatting_structure/__init__.pyo +${PYSITELIB}/weasyprint/formatting_structure/boxes.py +${PYSITELIB}/weasyprint/formatting_structure/boxes.pyc +${PYSITELIB}/weasyprint/formatting_structure/boxes.pyo +${PYSITELIB}/weasyprint/formatting_structure/build.py +${PYSITELIB}/weasyprint/formatting_structure/build.pyc +${PYSITELIB}/weasyprint/formatting_structure/build.pyo +${PYSITELIB}/weasyprint/formatting_structure/counters.py +${PYSITELIB}/weasyprint/formatting_structure/counters.pyc +${PYSITELIB}/weasyprint/formatting_structure/counters.pyo +${PYSITELIB}/weasyprint/html.py +${PYSITELIB}/weasyprint/html.pyc +${PYSITELIB}/weasyprint/html.pyo +${PYSITELIB}/weasyprint/images.py +${PYSITELIB}/weasyprint/images.pyc +${PYSITELIB}/weasyprint/images.pyo +${PYSITELIB}/weasyprint/layout/__init__.py +${PYSITELIB}/weasyprint/layout/__init__.pyc +${PYSITELIB}/weasyprint/layout/__init__.pyo +${PYSITELIB}/weasyprint/layout/absolute.py +${PYSITELIB}/weasyprint/layout/absolute.pyc +${PYSITELIB}/weasyprint/layout/absolute.pyo +${PYSITELIB}/weasyprint/layout/backgrounds.py +${PYSITELIB}/weasyprint/layout/backgrounds.pyc +${PYSITELIB}/weasyprint/layout/backgrounds.pyo +${PYSITELIB}/weasyprint/layout/blocks.py +${PYSITELIB}/weasyprint/layout/blocks.pyc +${PYSITELIB}/weasyprint/layout/blocks.pyo +${PYSITELIB}/weasyprint/layout/float.py +${PYSITELIB}/weasyprint/layout/float.pyc +${PYSITELIB}/weasyprint/layout/float.pyo +${PYSITELIB}/weasyprint/layout/inlines.py +${PYSITELIB}/weasyprint/layout/inlines.pyc +${PYSITELIB}/weasyprint/layout/inlines.pyo +${PYSITELIB}/weasyprint/layout/markers.py +${PYSITELIB}/weasyprint/layout/markers.pyc +${PYSITELIB}/weasyprint/layout/markers.pyo +${PYSITELIB}/weasyprint/layout/min_max.py +${PYSITELIB}/weasyprint/layout/min_max.pyc +${PYSITELIB}/weasyprint/layout/min_max.pyo +${PYSITELIB}/weasyprint/layout/pages.py +${PYSITELIB}/weasyprint/layout/pages.pyc +${PYSITELIB}/weasyprint/layout/pages.pyo +${PYSITELIB}/weasyprint/layout/percentages.py +${PYSITELIB}/weasyprint/layout/percentages.pyc +${PYSITELIB}/weasyprint/layout/percentages.pyo +${PYSITELIB}/weasyprint/layout/preferred.py +${PYSITELIB}/weasyprint/layout/preferred.pyc +${PYSITELIB}/weasyprint/layout/preferred.pyo +${PYSITELIB}/weasyprint/layout/replaced.py +${PYSITELIB}/weasyprint/layout/replaced.pyc +${PYSITELIB}/weasyprint/layout/replaced.pyo +${PYSITELIB}/weasyprint/layout/tables.py +${PYSITELIB}/weasyprint/layout/tables.pyc +${PYSITELIB}/weasyprint/layout/tables.pyo +${PYSITELIB}/weasyprint/logger.py +${PYSITELIB}/weasyprint/logger.pyc +${PYSITELIB}/weasyprint/logger.pyo +${PYSITELIB}/weasyprint/navigator.py +${PYSITELIB}/weasyprint/navigator.pyc +${PYSITELIB}/weasyprint/navigator.pyo +${PYSITELIB}/weasyprint/pdf.py +${PYSITELIB}/weasyprint/pdf.pyc +${PYSITELIB}/weasyprint/pdf.pyo +${PYSITELIB}/weasyprint/stacking.py +${PYSITELIB}/weasyprint/stacking.pyc +${PYSITELIB}/weasyprint/stacking.pyo +${PYSITELIB}/weasyprint/tests/__init__.py +${PYSITELIB}/weasyprint/tests/__init__.pyc +${PYSITELIB}/weasyprint/tests/__init__.pyo +${PYSITELIB}/weasyprint/tests/resources/acid2-reference.html +${PYSITELIB}/weasyprint/tests/resources/acid2-test.html +${PYSITELIB}/weasyprint/tests/resources/blue.jpg +${PYSITELIB}/weasyprint/tests/resources/doc1.html +${PYSITELIB}/weasyprint/tests/resources/doc1_UTF-16BE.html +${PYSITELIB}/weasyprint/tests/resources/icon.png +${PYSITELIB}/weasyprint/tests/resources/latin1-test.css +${PYSITELIB}/weasyprint/tests/resources/logo_small.png +${PYSITELIB}/weasyprint/tests/resources/mini_ua.css +${PYSITELIB}/weasyprint/tests/resources/pattern.gif +${PYSITELIB}/weasyprint/tests/resources/pattern.palette.png +${PYSITELIB}/weasyprint/tests/resources/pattern.png +${PYSITELIB}/weasyprint/tests/resources/pattern.svg +${PYSITELIB}/weasyprint/tests/resources/really-a-png.svg +${PYSITELIB}/weasyprint/tests/resources/really-a-svg.png +${PYSITELIB}/weasyprint/tests/resources/sheet2.css +${PYSITELIB}/weasyprint/tests/resources/sub_directory/sheet1.css +${PYSITELIB}/weasyprint/tests/resources/user.css +${PYSITELIB}/weasyprint/tests/resources/utf8-test.css +${PYSITELIB}/weasyprint/tests/test_api.py +${PYSITELIB}/weasyprint/tests/test_api.pyc +${PYSITELIB}/weasyprint/tests/test_api.pyo +${PYSITELIB}/weasyprint/tests/test_boxes.py +${PYSITELIB}/weasyprint/tests/test_boxes.pyc +${PYSITELIB}/weasyprint/tests/test_boxes.pyo +${PYSITELIB}/weasyprint/tests/test_css.py +${PYSITELIB}/weasyprint/tests/test_css.pyc +${PYSITELIB}/weasyprint/tests/test_css.pyo +${PYSITELIB}/weasyprint/tests/test_css_validation.py +${PYSITELIB}/weasyprint/tests/test_css_validation.pyc +${PYSITELIB}/weasyprint/tests/test_css_validation.pyo +${PYSITELIB}/weasyprint/tests/test_draw.py +${PYSITELIB}/weasyprint/tests/test_draw.pyc +${PYSITELIB}/weasyprint/tests/test_draw.pyo +${PYSITELIB}/weasyprint/tests/test_layout.py +${PYSITELIB}/weasyprint/tests/test_layout.pyc +${PYSITELIB}/weasyprint/tests/test_layout.pyo +${PYSITELIB}/weasyprint/tests/test_pdf.py +${PYSITELIB}/weasyprint/tests/test_pdf.pyc +${PYSITELIB}/weasyprint/tests/test_pdf.pyo +${PYSITELIB}/weasyprint/tests/test_stacking.py +${PYSITELIB}/weasyprint/tests/test_stacking.pyc +${PYSITELIB}/weasyprint/tests/test_stacking.pyo +${PYSITELIB}/weasyprint/tests/test_text.py +${PYSITELIB}/weasyprint/tests/test_text.pyc +${PYSITELIB}/weasyprint/tests/test_text.pyo +${PYSITELIB}/weasyprint/tests/test_web/__init__.py +${PYSITELIB}/weasyprint/tests/test_web/__init__.pyc +${PYSITELIB}/weasyprint/tests/test_web/__init__.pyo +${PYSITELIB}/weasyprint/tests/test_web/run.py +${PYSITELIB}/weasyprint/tests/test_web/run.pyc +${PYSITELIB}/weasyprint/tests/test_web/run.pyo +${PYSITELIB}/weasyprint/tests/testing_utils.py +${PYSITELIB}/weasyprint/tests/testing_utils.pyc +${PYSITELIB}/weasyprint/tests/testing_utils.pyo +${PYSITELIB}/weasyprint/text.py +${PYSITELIB}/weasyprint/text.pyc +${PYSITELIB}/weasyprint/text.pyo +${PYSITELIB}/weasyprint/urls.py +${PYSITELIB}/weasyprint/urls.pyc +${PYSITELIB}/weasyprint/urls.pyo diff --git a/print/py-weasyprint/distinfo b/print/py-weasyprint/distinfo new file mode 100644 index 00000000000..ad8a738dab0 --- /dev/null +++ b/print/py-weasyprint/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2015/08/14 17:05:04 kleink Exp $ + +SHA1 (WeasyPrint-0.24.tar.gz) = 9500a7511bb6c3b952d4ee7b5df16eec46761ddf +RMD160 (WeasyPrint-0.24.tar.gz) = 7e33a4158544cf2571ef1ec4c16d8a8b73cf74dc +Size (WeasyPrint-0.24.tar.gz) = 349200 bytes +SHA1 (patch-setup.py) = a3470aec4e7f32adb785cb7a731e802aeb7562c4 diff --git a/print/py-weasyprint/patches/patch-setup.py b/print/py-weasyprint/patches/patch-setup.py new file mode 100644 index 00000000000..356f270379b --- /dev/null +++ b/print/py-weasyprint/patches/patch-setup.py @@ -0,0 +1,15 @@ +$NetBSD: patch-setup.py,v 1.1 2015/08/14 17:05:04 kleink Exp $ + +Adjust script path to allow multiple Python version installs. + +--- setup.py.orig 2014-05-05 12:33:27.000000000 +0200 ++++ setup.py 2015-07-16 19:14:03.000000000 +0200 +@@ -75,7 +75,7 @@ + test_suite='weasyprint.tests', + entry_points={ + 'console_scripts': [ +- 'weasyprint = weasyprint.__main__:main', ++ 'weasyprint%s = weasyprint.__main__:main' % sys.version[0:3], + ], + }, + ) |