diff options
Diffstat (limited to 'textproc/py-mdformat')
-rw-r--r-- | textproc/py-mdformat/Makefile | 7 | ||||
-rw-r--r-- | textproc/py-mdformat/files/patch-pyproject.toml | 13 |
2 files changed, 17 insertions, 3 deletions
diff --git a/textproc/py-mdformat/Makefile b/textproc/py-mdformat/Makefile index 740ccb42bbe0..989ab1be270d 100644 --- a/textproc/py-mdformat/Makefile +++ b/textproc/py-mdformat/Makefile @@ -1,12 +1,13 @@ # XXX: see below (post-patch target) before updating PORTNAME= mdformat DISTVERSION= 0.7.22 +PORTREVISION= 2 CATEGORIES= textproc python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= CommonMark compliant Markdown formatter -WWW= https://github.com/executablebooks/mdformat +WWW= https://github.com/hukkin/mdformat LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE @@ -14,9 +15,9 @@ 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} \ + ${PY_TOMLI} \ ${PYTHON_PKGNAMEPREFIX}zipp>=0.5:devel/py-zipp@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}covdefaults>=2.3.0_1:devel/py-covdefaults@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=4.1.0:devel/py-pytest-cov@${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"', + ] |