Release 1.7.5: Bugs fixed * html search: Upper characters problem in any other languages * apidoc: some subpackage is ignored if sibling subpackage contains a module starting with underscore * i18n doesn’t handle node.title correctly tat used for contents, topic, admonition, table and section. * i18n: literal blocks in bullet list are not translated * C++, raised TypeError on duplicate declaration. * C++, properly parse expr roles and give better error messages when (escaped) line breaks are present. * C++, properly use desc_addname nodes for prefixes of names. * C++, parse pack expansions in function calls. * * links on search page are broken when using dirhtml builder * autodoc: constructor method should not have return annotation * latex: deeply nested enumerated list which is beginning with non-1 causes LaTeX engine crashed * latex: shorthandoff is not set up for Brazil locale * i18n: Ignore dot-directories like .git/ in LC_MESSAGES/ * py domain: type field could not handle “None” as a type * latex: Incorrect escaping of curly braces in index entries * autodoc: Failed to extract document from a subclass of the class on mocked module * latex: glossary directive adds whitespace to each item * latex: Explicit labels on code blocks are duplicated * node.asdom() crashes if toctree has :numbered: option * autodoc: Parsing error when using dataclasses without default values * autodoc: crashed when handler for autodoc-skip-member raises an error * autodoc: crashed when subclass of mocked class are processed by napoleon module * sphinx-build crashes when error log contains a “%” character
54 lines
2.1 KiB
Makefile
54 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.51 2018/05/29 07:13:07 adam Exp $
|
|
|
|
DISTNAME= Sphinx-1.7.5
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=S/Sphinx/}
|
|
|
|
MAINTAINER= markd@NetBSD.org
|
|
HOMEPAGE= http://sphinx.pocoo.org/
|
|
COMMENT= Python documentation generator
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-alabaster>=0.7:../../textproc/py-alabaster
|
|
DEPENDS+= ${PYPKGPREFIX}-babel>=1.3:../../devel/py-babel
|
|
DEPENDS+= ${PYPKGPREFIX}-docutils>=0.11:../../textproc/py-docutils
|
|
DEPENDS+= ${PYPKGPREFIX}-imagesize-[0-9]*:../../graphics/py-imagesize
|
|
DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.3:../../textproc/py-jinja2
|
|
DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
|
|
DEPENDS+= ${PYPKGPREFIX}-pygments>=2.0:../../textproc/py-pygments
|
|
DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
|
|
DEPENDS+= ${PYPKGPREFIX}-requests>=2.0.0:../../devel/py-requests
|
|
DEPENDS+= ${PYPKGPREFIX}-snowballstemmer>=1.1:../../textproc/py-snowballstemmer
|
|
DEPENDS+= ${PYPKGPREFIX}-sphinx-rtd-theme-[0-9]*:../../textproc/py-sphinx-rtd-theme
|
|
DEPENDS+= ${PYPKGPREFIX}-sphinxcontrib-websupport-[0-9]*:../../textproc/py-sphinxcontrib-websupport
|
|
DEPENDS+= ${PYPKGPREFIX}-six>=1.5:../../lang/py-six
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.if "${PYPKGPREFIX}" == "py27" || "${PYPKGPREFIX}" == "py34"
|
|
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
|
|
.endif
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
|
|
|
|
USE_LANGUAGES= # none
|
|
USE_TOOLS+= makeinfo
|
|
|
|
REPLACE_PYTHON+= sphinx/pycode/pgen2/token.py
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} sphinx-apidoc sphinx-apidoc${PYVERSSUFFIX} && \
|
|
${MV} sphinx-autogen sphinx-autogen${PYVERSSUFFIX} && \
|
|
${MV} sphinx-build sphinx-build${PYVERSSUFFIX} && \
|
|
${MV} sphinx-quickstart sphinx-quickstart${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|