git: 59590a9fcf6c - main - textproc/py-mdformat: Allow build with py-markdown-it-py 4.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Sep 2025 23:26:14 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=59590a9fcf6c82557b3700adf944529e70b2d111
commit 59590a9fcf6c82557b3700adf944529e70b2d111
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-09-07 22:55:53 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-09-07 23:07:36 +0000
textproc/py-mdformat: Allow build with py-markdown-it-py 4.0.0+
- Bump PORTREVISION for package change
Obtained from: https://github.com/hukkin/mdformat/commit/a822aca00e5b918953597499e67c8bb7767c7960
---
textproc/py-mdformat/Makefile | 3 ++-
textproc/py-mdformat/files/patch-pyproject.toml | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/textproc/py-mdformat/Makefile b/textproc/py-mdformat/Makefile
index 740ccb42bbe0..043ff38dc623 100644
--- a/textproc/py-mdformat/Makefile
+++ b/textproc/py-mdformat/Makefile
@@ -1,6 +1,7 @@
# XXX: see below (post-patch target) before updating
PORTNAME= mdformat
DISTVERSION= 0.7.22
+PORTREVISION= 1
CATEGORIES= textproc python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0.41.3:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6.0:devel/py-importlib-metadata@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}markdown-it-py>=1.0.0<4.0.0:textproc/py-markdown-it-py@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}markdown-it-py>=1<5:textproc/py-markdown-it-py@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mdurl>=0.1.2:textproc/py-mdurl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}zipp>=0.5:devel/py-zipp@${PY_FLAVOR}
diff --git a/textproc/py-mdformat/files/patch-pyproject.toml b/textproc/py-mdformat/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b34885e1d500
--- /dev/null
+++ b/textproc/py-mdformat/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+Obtained from: https://github.com/hukkin/mdformat/commit/a822aca00e5b918953597499e67c8bb7767c7960
+
+--- pyproject.toml.orig 2025-01-30 17:57:20 UTC
++++ pyproject.toml
+@@ -13,7 +13,7 @@ dependencies = [
+ license = { file = "LICENSE" }
+ requires-python = ">=3.9"
+ dependencies = [
+- 'markdown-it-py >=1.0.0,<4.0.0',
++ 'markdown-it-py>=1,<5',
+ 'tomli >=1.1.0; python_version < "3.11"',
+ 'importlib-metadata >=3.6.0; python_version < "3.10"',
+ ]