From c82b5df028a4f7dad5361d32eb2a6ab0bd9aa213 Mon Sep 17 00:00:00 2001 From: kleink Date: Fri, 30 Jun 2023 07:56:34 +0000 Subject: [PATCH] print/py-weasyprint: Update to 59.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Version 59.0 ------------ Released on 2023-05-11. This version also includes the changes from unstable b1 version listed below. Bug fixes: * `#1864 `_: Handle overflow for svg and symbol tags in SVG images * `#1867 `_: Remove duplicate compression of attachments * `d0ad5c1 `_: Override use tag children instead of drawing their references * `93df1a5 `_: Don’t resize the same image twice when the --dpi option is set * `#1874 `_: Drawn underline and overline behind text Version 59.0b1 -------------- Released on 2023-04-14. **This version is experimental, don't use it in production. If you find bugs, please report them!** Command-line API: * The ``--optimize-size`` option and its short equivalent ``-O`` have been deprecated. To activate or deactivate different size optimizations, you can now use: * ``--uncompressed-pdf``, * ``--optimize-images``, * ``--full-fonts``, * ``--hinting``, * ``--dpi ``, and * ``--jpeg-quality ``. * A new ``--cache-folder `` option has been added to store temporary data in the given folder on the disk instead of keeping them in memory. Python API: * Global rendering options are now given in ``**options`` instead of dedicated parameters, with slightly different names. It means that the signature of the ``HTML.render()``, ``HTML.write_pdf()`` and ``Document.write_pdf()`` has changed. Here are the steps to port your Python code to v59.0: 1. Use named parameters for these functions, not positioned parameters. 2. Rename some the parameters: * ``image_cache`` becomes ``cache`` (see below), * ``identifier`` becomes ``pdf_identifier``, * ``variant`` becomes ``pdf_variant``, * ``version`` becomes ``pdf_version``, * ``forms`` becomes ``pdf_forms``. * The ``optimize_size`` parameter of ``HTML.render()``, ``HTML.write_pdf()`` and ``Document()`` has been removed and will be ignored. You can now use the ``uncompressed_pdf``, ``full_fonts``, ``hinting``, ``dpi`` and ``jpeg_quality`` parameters that are included in ``**options``. * The ``cache`` parameter can be included in ``**options`` to replace ``image_cache``. If it is a dictionary, this dictionary will be used to store temporary data in memory, and can be even shared between multiple documents. If it’s a folder Path or string, WeasyPrint stores temporary data in the given temporary folder on disk instead of keeping them in memory. New features: * `#1853 `_, `#1854 `_: Reduce PDF size, with financial support from Code & Co. * `#1824 `_, `#1829 `_: Reduce memory use for images * `#1858 `_: Add an option to keep hinting information in embedded fonts Bug fixes: * `#1855 `_: Fix position of emojis in justified text * `#1852 `_: Don’t crash when line can be split before trailing spaces * `#1843 `_: Fix syntax of dates in metadata * `#1827 `_, `#1832 `_: Fix word-spacing problems with nested tags Documentation: * `#1841 `_: Add a paragraph about unsupported calc() function Version 58.1 ------------ Released on 2023-03-07. Bug fixes: * `#1815 `_: Fix bookmarks coordinates * `#1822 `_, `#1823 `_: Fix vertical positioning for absolute replaced elements Documentation: * `#1814 `_: Fix broken link pointing to samples Version 58.0 ------------ Released on 2023-02-17. This version also includes the changes from unstable b1 version listed below. Bug fixes: * `#1807 `_: Don’t crash when out-of-flow box is split in out-of-flow parent * `#1806 `_: Don’t crash when fixed elements aren’t displayed yet in aborted line * `#1809 `_: Fix background drawing for out-of-the-page transformed boxes Version 58.0b1 -------------- Released on 2023-02-03. **This version is experimental, don't use it in production. If you find bugs, please report them!** New features: * `#61 `_, `#1796 `_: Support PDF forms, with financial support from Personalkollen * `#1173 `_: Add style for form fields Bug fixes: * `#1777 `_: Detect JPEG/MPO images as normal JPEG files * `#1771 `_: Improve SVG gradients Version 57.2 ------------ Released on 2022-12-23. Bug fixes: * `0f2e377 `_: Print annotations with PDF/A * `0e9426f `_: Hide annotations with PDF/UA * `#1764 `_: Use reference instead of stream for annotation appearance stream * `#1783 `_: Fix multiple font weights for @font-face declarations Version 57.1 ------------ Released on 2022-11-04. Dependencies: * `#1754 `_: Pillow 9.1.0 is now needed Bug fixes: * `#1756 `_: Fix rem font size for SVG images * `#1755 `_: Keep format when transposing images * `#1753 `_: Don’t use deprecated ``read_text`` function when ``files`` is available * `#1741 `_: Generate better manpage * `#1747 `_: Correctly set target counters in pages’ absolute elements * `#1748 `_: Always set font size when font is changed in line * `2b05137 `_: Fix stability of font identifiers Documentation: * `#1750 `_: Fix documentation spelling Version 57.0 ------------ Released on 2022-10-18. This version also includes the changes from unstable b1 version listed below. New features: * `a4fc7a1 `_: Support image-orientation Bug fixes: * `#1739 `_: Set baseline on all flex containers * `#1740 `_: Don’t crash when currentColor is set on root svg tag * `#1718 `_: Don’t crash with empty bitmap glyphs * `#1736 `_: Always use the font’s vector variant when possible * `eef8b4d `_: Always set color and state before drawing * `#1662 `_: Use a stable key to store stream fonts * `#1733 `_: Don’t remove attachments when adding internal anchors * `3c4fa50 `_, `c215697 `_, `d275dac `_, `b04bfff `_: Fix many bugs related to PDF/UA structure Performance: * `dfccf1b `_: Use faces as fonts dictionary keys * `0dc12b6 `_: Cache add_font to avoid calling get_face too often * `75e17bf `_: Don’t call process_whitespace twice on many children * `498d3e1 `_: Optimize __missing__ functions Documentation: * `863b3d6 `_: Update documentation of installation on macOS with Homebrew Version 57.0b1 -------------- Released on 2022-09-22. **This version is experimental, don't use it in production. If you find bugs, please report them!** New features: * `#1704 `_: Support PDF/UA, with financial support from Novareto * `#1454 `_: Support variable fonts Bug fixes: * `#1058 `_: Fix bullet position after page break, with financial support from OpenZeppelin * `#1707 `_: Fix footnote positioning in multicolumn layout, with financial support from Code & Co. * `#1722 `_: Handle skew transformation with only one parameter * `#1715 `_: Don’t crash when images are truncated * `#1697 `_: Don’t crash when attr() is used in text-decoration-color * `#1695 `_: Include language information in PDF metadata * `#1612 `_: Don’t lowercase letters when capitalizing text * `#1700 `_: Fix crash when rendering footnote with repagination * `#1667 `_: Follow EXIF metadata for image rotation * `#1669 `_: Take care of floats when remvoving placeholders * `#1638 `_: Use the original box when breaking waiting children --- print/py-weasyprint/Makefile | 9 ++++----- print/py-weasyprint/PLIST | 13 ++++++++++--- print/py-weasyprint/distinfo | 8 ++++---- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/print/py-weasyprint/Makefile b/print/py-weasyprint/Makefile index 5676c1b121ed..0f109bd65f93 100644 --- a/print/py-weasyprint/Makefile +++ b/print/py-weasyprint/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.41 2023/06/06 12:42:12 riastradh Exp $ +# $NetBSD: Makefile,v 1.42 2023/06/30 07:56:34 kleink Exp $ -DISTNAME= weasyprint-56.1 +DISTNAME= weasyprint-59.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -PKGREVISION= 1 CATEGORIES= print python MASTER_SITES= ${MASTER_SITE_PYPI:=w/weasyprint/} @@ -12,12 +11,12 @@ COMMENT= Converts HTML/CSS documents to PDF LICENSE= modified-bsd TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core-[0-9]*:../../devel/py-flit_core -DEPENDS+= ${PYPKGPREFIX}-Pillow>=4.0.0:../../graphics/py-Pillow +DEPENDS+= ${PYPKGPREFIX}-Pillow>=9.1.0:../../graphics/py-Pillow DEPENDS+= ${PYPKGPREFIX}-cffi>=0.6:../../devel/py-cffi DEPENDS+= ${PYPKGPREFIX}-cssselect2>=0.1:../../textproc/py-cssselect2 DEPENDS+= ${PYPKGPREFIX}-fonttools>=4.0.0:../../fonts/py-fonttools DEPENDS+= ${PYPKGPREFIX}-html5lib>=1.1:../../textproc/py-html5lib -DEPENDS+= ${PYPKGPREFIX}-pydyf>=0.2.0:../../print/py-pydyf +DEPENDS+= ${PYPKGPREFIX}-pydyf>=0.6.0:../../print/py-pydyf DEPENDS+= ${PYPKGPREFIX}-pyphen>=0.9.1:../../textproc/py-pyphen DEPENDS+= ${PYPKGPREFIX}-tinycss2>=1.0.0:../../textproc/py-tinycss2 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov diff --git a/print/py-weasyprint/PLIST b/print/py-weasyprint/PLIST index 67c15af4a1c0..6931218dec82 100644 --- a/print/py-weasyprint/PLIST +++ b/print/py-weasyprint/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.10 2022/07/09 18:39:22 kleink Exp $ +@comment $NetBSD: PLIST,v 1.11 2023/06/30 07:56:34 kleink Exp $ bin/weasyprint-${PYVERSSUFFIX} ${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE @@ -12,6 +12,8 @@ ${PYSITELIB}/weasyprint/__init__.py ${PYSITELIB}/weasyprint/__init__.pyc ${PYSITELIB}/weasyprint/__main__.py ${PYSITELIB}/weasyprint/__main__.pyc +${PYSITELIB}/weasyprint/anchors.py +${PYSITELIB}/weasyprint/anchors.pyc ${PYSITELIB}/weasyprint/css/__init__.py ${PYSITELIB}/weasyprint/css/__init__.pyc ${PYSITELIB}/weasyprint/css/computed_values.py @@ -20,6 +22,7 @@ ${PYSITELIB}/weasyprint/css/counters.py ${PYSITELIB}/weasyprint/css/counters.pyc ${PYSITELIB}/weasyprint/css/html5_ph.css ${PYSITELIB}/weasyprint/css/html5_ua.css +${PYSITELIB}/weasyprint/css/html5_ua_form.css ${PYSITELIB}/weasyprint/css/media_queries.py ${PYSITELIB}/weasyprint/css/media_queries.pyc ${PYSITELIB}/weasyprint/css/properties.py @@ -79,18 +82,22 @@ ${PYSITELIB}/weasyprint/layout/replaced.py ${PYSITELIB}/weasyprint/layout/replaced.pyc ${PYSITELIB}/weasyprint/layout/table.py ${PYSITELIB}/weasyprint/layout/table.pyc -${PYSITELIB}/weasyprint/links.py -${PYSITELIB}/weasyprint/links.pyc ${PYSITELIB}/weasyprint/logger.py ${PYSITELIB}/weasyprint/logger.pyc ${PYSITELIB}/weasyprint/matrix.py ${PYSITELIB}/weasyprint/matrix.pyc ${PYSITELIB}/weasyprint/pdf/__init__.py ${PYSITELIB}/weasyprint/pdf/__init__.pyc +${PYSITELIB}/weasyprint/pdf/anchors.py +${PYSITELIB}/weasyprint/pdf/anchors.pyc ${PYSITELIB}/weasyprint/pdf/fonts.py ${PYSITELIB}/weasyprint/pdf/fonts.pyc +${PYSITELIB}/weasyprint/pdf/metadata.py +${PYSITELIB}/weasyprint/pdf/metadata.pyc ${PYSITELIB}/weasyprint/pdf/pdfa.py ${PYSITELIB}/weasyprint/pdf/pdfa.pyc +${PYSITELIB}/weasyprint/pdf/pdfua.py +${PYSITELIB}/weasyprint/pdf/pdfua.pyc ${PYSITELIB}/weasyprint/pdf/sRGB2014.icc ${PYSITELIB}/weasyprint/pdf/stream.py ${PYSITELIB}/weasyprint/pdf/stream.pyc diff --git a/print/py-weasyprint/distinfo b/print/py-weasyprint/distinfo index 22b9854df7f1..9d746e8dff4a 100644 --- a/print/py-weasyprint/distinfo +++ b/print/py-weasyprint/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.27 2022/08/17 07:17:08 kleink Exp $ +$NetBSD: distinfo,v 1.28 2023/06/30 07:56:34 kleink Exp $ -BLAKE2s (weasyprint-56.1.tar.gz) = ff6bcd0bb81af8c8960ac948ff2e1a3448851d0dc38c05298cd1b00cd767b81a -SHA512 (weasyprint-56.1.tar.gz) = c64bcef9789cb8c52853cfe02f5249240b67fa8368f3467c0e56cefe8ee9fde3dc9a1a489278e7238ed7fddfebba2f238f37245a3ef4d7482a32cee14dbf66b0 -Size (weasyprint-56.1.tar.gz) = 420035 bytes +BLAKE2s (weasyprint-59.0.tar.gz) = c1edfe2cb4fdca7f9c2519f20ed20d155f35b52cc3c90a445b57517018a6c63f +SHA512 (weasyprint-59.0.tar.gz) = 58f81a1b3e3f1315caebd08f2cb556c89cb1aa818c13310998e72c436479c1a0d10031c7792502970490e73bd6fd769c836bd4e87be384fd83179957e71496e1 +Size (weasyprint-59.0.tar.gz) = 438338 bytes