devel/py-breathe: add NO_ARCH, misc' cleanups

- add NO_ARCH, no binary parts inside
- make portlint clean
  - recode pkg-descr to pure 7-bit ASCII
  - revise COMMENT
- rearrange and reformat Makefile with portclippy/portfmt
- consequentially, bump PORTREVISION
This commit is contained in:
Matthias Andree 2021-10-20 20:22:11 +02:00
parent 2a4f51a416
commit 47570d5b3c
2 changed files with 17 additions and 15 deletions

View File

@ -1,28 +1,30 @@
PORTNAME= breathe
PORTVERSION= 4.31.0
PORTREVISION= 1
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= mandree@FreeBSD.org
COMMENT= an extension to reStructuredText and Sphinx to render Doxygen xml output
COMMENT= Extension to reStructuredText and Sphinx to render Doxygen xml output
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= doxygen:devel/doxygen \
${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
PDFDOCS_BUILD_DEPENDS= pdflatex:print/tex-formats
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \
doxygen:devel/doxygen
USES= gmake python:3.6+
USE_GITHUB= yes
USE_PYTHON= distutils
GH_TUPLE= michaeljones:breathe:v${PORTVERSION}
USE_PYTHON= distutils
NO_ARCH= yes
OPTIONS_DEFINE= DOCS EXAMPLES PDFDOCS
OPTIONS_SUB= yes
PDFDOCS_DESC= Build PDF documentation (implies DOCS)
PDFDOCS_IMPLIES=DOCS
OPTIONS_DEFINE= DOCS EXAMPLES PDFDOCS
OPTIONS_SUB= yes
PDFDOCS_DESC= Build PDF documentation (implies DOCS)
PDFDOCS_IMPLIES= DOCS
PDFDOCS_BUILD_DEPENDS= pdflatex:print/tex-formats
post-patch:
${REINPLACE_CMD} "s/^git_tag = subprocess.*/git_tag = b'v${PORTVERSION}'/" \
@ -46,15 +48,15 @@ post-install-DOCS-on:
${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} && \
${RM} -r ${STAGEDIR}${DOCSDIR}/html/_sources
post-install-PDFDOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/documentation/build/latex/*.pdf ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && \
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
post-install-PDFDOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/documentation/build/latex/*.pdf ${STAGEDIR}${DOCSDIR}
do-test:
cd ${WRKSRC}/tests && \
PYTHONPATH=../:${STAGEDIR}${PYTHON_SITELIBDIR} \

View File

@ -3,6 +3,6 @@ Breathe provides a bridge between the Sphinx and Doxygen documentation systems.
It is an easy way to include Doxygen information in a set of documentation
generated by Sphinx. The aim is to produce an autodoc like support for people
who enjoy using Sphinx but work with languages other than Python. The system
relies on the Doxygens xml output.
relies on the Doxygen's xml output.
WWW: https://github.com/michaeljones/breathe