git: 14212fa873f4 - main - net/py-gntp: Fix build with sphinx 9.0.4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 17:26:07 UTC
The branch main has been updated by makc:
URL: https://cgit.FreeBSD.org/ports/commit/?id=14212fa873f4f5c53b391c4080f8abccb7786087
commit 14212fa873f4f5c53b391c4080f8abccb7786087
Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com>
AuthorDate: 2026-06-26 17:23:13 +0000
Commit: Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-06-26 17:23:13 +0000
net/py-gntp: Fix build with sphinx 9.0.4
PR: 284845
Co-authored-by: Max Brazhnikov <makc@FreeBSD.org>
---
net/py-gntp/Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/net/py-gntp/Makefile b/net/py-gntp/Makefile
index f6aefa629a9e..6fabb2bc4e15 100644
--- a/net/py-gntp/Makefile
+++ b/net/py-gntp/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gntp
PORTVERSION= 1.0.3
-PORTREVISION= 1
+PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -26,7 +26,12 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
-DOCS_VARS= PYDISTUTILS_BUILD_TARGET+=build_sphinx
+DOCS_MAKE_ENV= PYTHONPATH=${WRKSRC}
+
+post-build-DOCS-on:
+ cd ${WRKSRC} && ${SETENVI} ${MAKE_ENV} \
+ ${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} \
+ -b html -d build/doctrees docs build/sphinx/html
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}