On 2025/04/21 17:45, Laurent Cheylus wrote: > Hi ports@ > > update for textproc/py-sphinx_rtd_theme (Python Sphinx theme from Read the > Docs) to the latest version 3.0.2. > > - Makefile: > * update version and Debian distfile used to patch sources > * add textproc/py-docutils for BDEP/RDEP > * use devel/py-test for tests (define TEST_DEPENDS) > * remove NO_TESTS (tests OK with 'make test') > - update pkg/DESCR > - regenerate pkg/PLIST with 'make update-plist' > > Build and tests OK on current/amd64 with Python 3.13.2 > > Tests welcome and please commit if OK. > > Laurent >
: 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) : : 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 +30,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 21 Apr 2025 15:37:37 -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 21 Apr 2025 15:37:37 -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 21 Apr 2025 15:37:37 -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