git: 325b2ee579a3 - main - textproc/py-xhtml2pdf: Update to 0.2.18
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Sep 2026 14:56:14 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=325b2ee579a36c72af38f2785cfc37a3657516c1
commit 325b2ee579a36c72af38f2785cfc37a3657516c1
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-09 14:40:53 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-09 14:48:49 +0000
textproc/py-xhtml2pdf: Update to 0.2.18
Changes: https://github.com/xhtml2pdf/xhtml2pdf/releases
https://github.com/xhtml2pdf/xhtml2pdf/blob/master/docs/source/release-notes.rst
https://xhtml2pdf.readthedocs.io/en/latest/release-notes.html
---
textproc/py-xhtml2pdf/Makefile | 7 +++----
textproc/py-xhtml2pdf/distinfo | 6 +++---
textproc/py-xhtml2pdf/files/patch-python-bidi | 24 ------------------------
3 files changed, 6 insertions(+), 31 deletions(-)
diff --git a/textproc/py-xhtml2pdf/Makefile b/textproc/py-xhtml2pdf/Makefile
index 97001d33a8a8..63d541ec1b0b 100644
--- a/textproc/py-xhtml2pdf/Makefile
+++ b/textproc/py-xhtml2pdf/Makefile
@@ -1,6 +1,5 @@
PORTNAME= xhtml2pdf
-PORTVERSION= 0.2.17
-PORTREVISION= 1
+PORTVERSION= 0.2.18
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -21,8 +20,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}arabic-reshaper>=3.0.0:textproc/py-arabic-re
${PYTHON_PKGNAMEPREFIX}pyhanko>=0.12.1:security/py-pyhanko@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyhanko-certvalidator>=0.19.5:security/py-pyhanko-certvalidator@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pypdf>=3.1.0:print/py-pypdf@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}python-bidi>=0.4.2:textproc/py-python-bidi@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}reportlab>=4.0.4<5:print/py-reportlab@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-bidi>=0.5.0:textproc/py-python-bidi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}reportlab>=4.0.4<6:print/py-reportlab@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}svglib>=1.2.1:converters/py-svglib@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=1.0:devel/py-nose@${PY_FLAVOR}
diff --git a/textproc/py-xhtml2pdf/distinfo b/textproc/py-xhtml2pdf/distinfo
index 87f6ebdffc50..f678e63ba785 100644
--- a/textproc/py-xhtml2pdf/distinfo
+++ b/textproc/py-xhtml2pdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1740836188
-SHA256 (xhtml2pdf-0.2.17.tar.gz) = 09ddbc31aa0e38a16f2f3cb73be89af5f7c968c17a564afdd685d280e39c526d
-SIZE (xhtml2pdf-0.2.17.tar.gz) = 139727
+TIMESTAMP = 1788500326
+SHA256 (xhtml2pdf-0.2.18.tar.gz) = 2e1a8ec7a060497deaaeb87a607bdf1e6a23f69bb16edb25937b081b3aedd059
+SIZE (xhtml2pdf-0.2.18.tar.gz) = 212844
diff --git a/textproc/py-xhtml2pdf/files/patch-python-bidi b/textproc/py-xhtml2pdf/files/patch-python-bidi
deleted file mode 100644
index 7c770b389421..000000000000
--- a/textproc/py-xhtml2pdf/files/patch-python-bidi
+++ /dev/null
@@ -1,24 +0,0 @@
-Reference: https://github.com/xhtml2pdf/xhtml2pdf/commit/3ac6559d670736696e0a12a7e945191b7961428d
-
---- pyproject.toml.orig 2025-02-23 23:16:52 UTC
-+++ pyproject.toml
-@@ -53,7 +53,7 @@ dependencies = [
- "pyHanko>=0.12.1",
- "pyhanko-certvalidator>=0.19.5",
- "pypdf>=3.1.0",
-- "python-bidi>=0.5.0",
-+ "python-bidi>=0.4.2",
- "reportlab>=4.0.4,<5",
- "svglib>=1.2.1"
- ]
---- xhtml2pdf/util.py.orig 2025-02-23 22:08:13 UTC
-+++ xhtml2pdf/util.py
-@@ -22,7 +22,7 @@ import reportlab.pdfbase._cidfontdata
- import arabic_reshaper
- import reportlab
- import reportlab.pdfbase._cidfontdata
--from bidi import get_display
-+from bidi.algorithm import get_display
- from reportlab.lib.colors import Color, toColor
- from reportlab.lib.enums import TA_CENTER, TA_JUSTIFY, TA_LEFT, TA_RIGHT
- from reportlab.lib.units import cm, inch