diff --git a/textproc/Makefile b/textproc/Makefile --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1637,6 +1637,7 @@ SUBDIR += py-sphinx_wikipedia SUBDIR += py-sphinxcontrib-actdiag SUBDIR += py-sphinxcontrib-adadomain + SUBDIR += py-sphinxcontrib-apidoc SUBDIR += py-sphinxcontrib-applehelp SUBDIR += py-sphinxcontrib-autoprogram SUBDIR += py-sphinxcontrib-bibtex diff --git a/textproc/py-sphinxcontrib-apidoc/Makefile b/textproc/py-sphinxcontrib-apidoc/Makefile new file mode 100644 --- /dev/null +++ b/textproc/py-sphinxcontrib-apidoc/Makefile @@ -0,0 +1,27 @@ +PORTNAME= sphinxcontrib-apidoc +DISTVERSION= 0.5.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= agh@riseup.net +COMMENT= Sphinx extension for running sphinx-apidoc on each build +WWW= https://pypi.org/project/sphinxcontrib-apidoc + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=4.0:devel/py-pbr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=5.0.0:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent flavors pep517 pytest +PYTEST_BROKEN_TESTS= test_advanced test_advanced_negative test_basics + +NO_ARCH= yes + +.include diff --git a/textproc/py-sphinxcontrib-apidoc/distinfo b/textproc/py-sphinxcontrib-apidoc/distinfo new file mode 100644 --- /dev/null +++ b/textproc/py-sphinxcontrib-apidoc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1742701215 +SHA256 (sphinxcontrib-apidoc-0.5.0.tar.gz) = 65efcd92212a5f823715fb95ee098b458a6bb09a5ee617d9ed3dead97177cd55 +SIZE (sphinxcontrib-apidoc-0.5.0.tar.gz) = 16117 diff --git a/textproc/py-sphinxcontrib-apidoc/pkg-descr b/textproc/py-sphinxcontrib-apidoc/pkg-descr new file mode 100644 --- /dev/null +++ b/textproc/py-sphinxcontrib-apidoc/pkg-descr @@ -0,0 +1,9 @@ +sphinx-apidoc is a tool for automatic generation of Sphinx sources that, using +the autodoc extension, documents a whole package in the style of other +automatic API documentation tools. sphinx-apidoc does not actually build +documentation; rather it simply generates it. As a result, it must be run +before sphinx-build. + +This extension eliminates the need to keep that configuration outside Sphinx. +Instead, this functionality can be enabled and configured from your +documentation's conf.py file.