diff --git a/devel/py-breathe/Makefile b/devel/py-breathe/Makefile index 059efe657c97..5c34f163b062 100644 --- a/devel/py-breathe/Makefile +++ b/devel/py-breathe/Makefile @@ -1,77 +1,76 @@ PORTNAME= breathe -PORTVERSION= 4.35.0 -PORTREVISION= 3 +PORTVERSION= 4.36.0 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= mandree@FreeBSD.org COMMENT= Extension to reStructuredText and Sphinx to render Doxygen xml output WWW= https://github.com/michaeljones/breathe LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${RUN_DEPENDS} \ - ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}flit-core>=3.7:devel/py-flit-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}furo>=0:textproc/py-furo@${PY_FLAVOR} \ graphviz>=0:graphics/graphviz \ - ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=7.2,1:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx-copybutton>=0:textproc/py-sphinx-copybutton@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinxcontrib-spelling>=0:textproc/py-sphinxcontrib-spelling@${PY_FLAVOR} \ doxygen:devel/doxygen USES= gmake python USE_GITHUB= yes GH_TUPLE= michaeljones:breathe:v${PORTVERSION} USE_PYTHON= autoplist pep517 pytest NO_ARCH= yes BINARY_ALIAS= sphinx-build=sphinx-build-${PYTHON_VER} OPTIONS_DEFINE= DOCS EXAMPLES PDFDOCS OPTIONS_SUB= yes PDFDOCS_DESC= Build PDF documentation (implies DOCS) PDFDOCS_IMPLIES= DOCS PDFDOCS_BUILD_DEPENDS= pdflatex:print/tex-formats dvips:print/tex-dvipsk PORTDOCS= * PORTEXAMPLES= * post-patch: - ${REINPLACE_CMD} "s/^git_tag = subprocess.*/git_tag = b'v${PORTVERSION}'/" \ + ${REINPLACE_CMD} "s/%%VERSION%%/v${PORTVERSION}/" \ ${WRKSRC}/documentation/source/conf.py post-build-DOCS-on: cd ${WRKSRC} && \ ${SETENV} PYTHONPATH=${WRKSRC}/ \ ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS:N${DESTDIRNAME}=*} html diff --git a/devel/py-breathe/distinfo b/devel/py-breathe/distinfo index b80301f08de6..208b1a4e6528 100644 --- a/devel/py-breathe/distinfo +++ b/devel/py-breathe/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1678299982 -SHA256 (michaeljones-breathe-4.35.0-v4.35.0_GH0.tar.gz) = 55b54723752fc04b892a0f868782b1df65e69db6ca94fb32cf04be495bfd7841 -SIZE (michaeljones-breathe-4.35.0-v4.35.0_GH0.tar.gz) = 212932 +TIMESTAMP = 1777191940 +SHA256 (michaeljones-breathe-4.36.0-v4.36.0_GH0.tar.gz) = 94fc2277e639929e898cb95559d9d2c51cf764b787eaf6fa04f848a6550c2ff5 +SIZE (michaeljones-breathe-4.36.0-v4.36.0_GH0.tar.gz) = 219346 diff --git a/devel/py-breathe/files/patch-documentation_source_conf.py b/devel/py-breathe/files/patch-documentation_source_conf.py new file mode 100644 index 000000000000..53b66da2c945 --- /dev/null +++ b/devel/py-breathe/files/patch-documentation_source_conf.py @@ -0,0 +1,18 @@ +--- documentation/source/conf.py.orig 2026-04-26 08:35:23 UTC ++++ documentation/source/conf.py +@@ -37,12 +37,12 @@ else: + version = release = "compare" + else: + # Get a description of the current position. +- git_tag = subprocess.run(["git", "describe", "--tags"], capture_output=True, encoding="utf-8") +- if re.match(r"^v\d+\.\d+\.\d+$", git_tag.stdout): ++ git_tag = "%%VERSION%%" ++ if re.match(r"^v\d+\.\d+\.\d+$", git_tag): + # Check if it matches a pure tag number vX.Y.Z, + # rather than vX.Y.Z-91-g8676988, which is how non-tagged commits + # are described (relative to the last tag). +- version = release = git_tag.stdout ++ version = release = git_tag + else: + version = release = "latest" +