Download raw body.
[update] textproc/py-sphinx_rtd_theme 3.0.2
Hi Stuart,
----- Mail original -----
> On 2025/04/21 17:45, Laurent Cheylus wrote:
> >
> > update for textproc/py-sphinx_rtd_theme (Python Sphinx theme from
> > Read the Docs) to the latest version 3.0.2.
>
> : MODULES = lang/python
> : -BUILD_DEPENDS = textproc/py-sphinxcontrib/jquery
> : -RUN_DEPENDS = textproc/py-sphinxcontrib/jquery
> : +BUILD_DEPENDS = textproc/py-sphinxcontrib/jquery,
> textproc/py-docutils
> : +RUN_DEPENDS = textproc/py-sphinxcontrib/jquery,
> textproc/py-docutils
>
> , is wrong. please split multiple *_DEPENDS onto new lines.
>
> : +TEST_DEPENDS = devel/py-test
>
> that is implicit with MODPY_PYBUILD (make show=TEST_DEPENDS)
Thanks for your review. Attached a new version of my patch for textproc/py-sphinx_rtd_theme port with fixes.
regards, Laurent
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/py-sphinx_rtd_theme/Makefile,v
diff -u -p -r1.25 Makefile
--- Makefile 21 Dec 2024 11:39:04 -0000 1.25
+++ Makefile 22 Apr 2025 13:15:22 -0000
@@ -1,7 +1,6 @@
COMMENT = readthedocs.org theme for Sphinx
-MODPY_DISTV = 1.2.2
-REVISION = 3
+MODPY_DISTV = 3.0.2
GH_ACCOUNT = readthedocs
GH_PROJECT = sphinx_rtd_theme
@@ -10,7 +9,7 @@ GH_TAGNAME = ${MODPY_DISTV}
PKGNAME = py-${DISTNAME}
SITES.deb = ${SITE_DEBIAN:=main/s/sphinx-rtd-theme/}
-DISTFILES.deb = sphinx-rtd-theme_${MODPY_DISTV}+dfsg-1.debian.tar.xz
+DISTFILES.deb = sphinx-rtd-theme_${MODPY_DISTV}+dfsg-2.debian.tar.xz
CATEGORIES = textproc
@@ -18,13 +17,13 @@ CATEGORIES = textproc
PERMIT_PACKAGE = Yes
MODULES = lang/python
-BUILD_DEPENDS = textproc/py-sphinxcontrib/jquery
-RUN_DEPENDS = textproc/py-sphinxcontrib/jquery
+BUILD_DEPENDS = textproc/py-sphinxcontrib/jquery \
+ textproc/py-docutils
+RUN_DEPENDS = textproc/py-sphinxcontrib/jquery \
+ textproc/py-docutils
MODPY_PYBUILD = setuptools
-NO_TEST = Yes
-
# upstream distfiles require use of npm to fetch dependencies.
# use files from Debian's packaging to provide those dep's and use
# their patchset to make use of them.
@@ -32,5 +31,7 @@ post-patch:
mv ${WRKDIR}/debian ${WRKSRC}/
cd ${WRKSRC}; for i in `cat debian/patches/series`; do \
patch -Ep1 -z.orig.deb < debian/patches/$$i; done
+ # Undo Debian patch for tests
+ cd ${WRKSRC}/tests && mv util.py.orig.deb util.py
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/py-sphinx_rtd_theme/distinfo,v
diff -u -p -r1.7 distinfo
--- distinfo 11 Jul 2023 07:51:09 -0000 1.7
+++ distinfo 22 Apr 2025 13:15:22 -0000
@@ -1,4 +1,4 @@
-SHA256 (sphinx-rtd-theme_1.2.2+dfsg-1.debian.tar.xz) = FHCLbHHejP4ynipZctFNuGGOof44hZOAvj/QqJLvR9E=
-SHA256 (sphinx_rtd_theme-1.2.2.tar.gz) = TnA03784YexgrBdXsuMJU43wOMgvgcx3mp29D6g5PK0=
-SIZE (sphinx-rtd-theme_1.2.2+dfsg-1.debian.tar.xz) = 64160
-SIZE (sphinx_rtd_theme-1.2.2.tar.gz) = 3160465
+SHA256 (sphinx-rtd-theme_3.0.2+dfsg-2.debian.tar.xz) = lheSebRBaj8yND+zay0rcYc6qequACg10sSu19t2gF8=
+SHA256 (sphinx_rtd_theme-3.0.2.tar.gz) = bY4ENeUlr+BMs6EOlCnP83/r72EqN2V2tptjF48omro=
+SIZE (sphinx-rtd-theme_3.0.2+dfsg-2.debian.tar.xz) = 64424
+SIZE (sphinx_rtd_theme-3.0.2.tar.gz) = 3161950
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/textproc/py-sphinx_rtd_theme/pkg/DESCR,v
diff -u -p -r1.1.1.1 DESCR
--- pkg/DESCR 20 Jan 2016 05:03:47 -0000 1.1.1.1
+++ pkg/DESCR 22 Apr 2025 13:15:22 -0000
@@ -1,4 +1,3 @@
-This is a mobile-friendly sphinx theme I made for readthedocs.org. It's
-currently in development there and includes some rtd variable checks that
-can be ignored if you're just trying to use it on your project outside of
-that site.
+This Sphinx theme was designed to provide a great reader experience for
+documentation users on both desktop and mobile devices. This theme is
+used primarily on Read the Docs but can work with any Sphinx project.
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/py-sphinx_rtd_theme/pkg/PLIST,v
diff -u -p -r1.10 PLIST
--- pkg/PLIST 21 Dec 2024 11:39:04 -0000 1.10
+++ pkg/PLIST 22 Apr 2025 13:15:22 -0000
@@ -123,5 +123,6 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/sphinx_rtd_theme/static/js/
lib/python${MODPY_VERSION}/site-packages/sphinx_rtd_theme/static/js/badge_only.js
lib/python${MODPY_VERSION}/site-packages/sphinx_rtd_theme/static/js/theme.js
+lib/python${MODPY_VERSION}/site-packages/sphinx_rtd_theme/static/js/versions.js_t
lib/python${MODPY_VERSION}/site-packages/sphinx_rtd_theme/theme.conf
lib/python${MODPY_VERSION}/site-packages/sphinx_rtd_theme/versions.html
[update] textproc/py-sphinx_rtd_theme 3.0.2