diff --git a/textproc/py-sphinx-material/Makefile b/textproc/py-sphinx-material/Makefile index 53e9933828f4..b44024d550df 100644 --- a/textproc/py-sphinx-material/Makefile +++ b/textproc/py-sphinx-material/Makefile @@ -1,37 +1,33 @@ PORTNAME= sphinx_material DISTVERSION= 0.0.36 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= thierry@FreeBSD.org COMMENT= Responsive Material Design theme for Sphinx documentation WWW= https://bashtage.github.io/sphinx-material/ LICENSE= MIT # See https://github.com/bashtage/sphinx-material/issues/141 -DEPRECATED= No longer maintained and does not work with Python 3.12 +DEPRECATED= No longer maintained BUILD_DEPENDS= ${PY_DEPENDS} RUN_DEPENDS= ${PY_DEPENDS} PY_DEPENDS= sphinx-build:textproc/py-sphinx@${PY_FLAVOR} \ slugify:textproc/py-python-slugify@${PY_FLAVOR} \ css-html-js-minify:www/py-css-html-js-minify@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR} #USE_GITHUB= yes #GH_ACCOUNT= bashtage USES= python USE_PYTHON= distutils -.include +NO_ARCH= yes -.if ${PYTHON_REL} >= 31200 -BROKEN= AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. -.endif - -.include +.include diff --git a/textproc/py-sphinx-material/files/patch-versioneer.py b/textproc/py-sphinx-material/files/patch-versioneer.py new file mode 100644 index 000000000000..dfc4f7007384 --- /dev/null +++ b/textproc/py-sphinx-material/files/patch-versioneer.py @@ -0,0 +1,14 @@ +--- versioneer.py.orig 2020-04-07 07:24:05 UTC ++++ versioneer.py +@@ -343,9 +343,8 @@ def get_config_from_root(root): + # configparser.NoOptionError (if it lacks "VCS="). See the docstring at + # the top of versioneer.py for instructions on writing your setup.cfg . + setup_cfg = os.path.join(root, "setup.cfg") +- parser = configparser.SafeConfigParser() +- with open(setup_cfg, "r") as f: +- parser.readfp(f) ++ parser = configparser.ConfigParser() ++ parser.read(setup_cfg) + VCS = parser.get("versioneer", "VCS") # mandatory + + def get(parser, name):