From 25625d556e8f760ea75a8980523e9f8678bc51b7 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sun, 8 Aug 2021 22:32:31 +0800 Subject: [PATCH] textproc/py-sphinxcontrib-bibtex: Add py-sphinxcontrib-bibtex 2.3.0 The bibtex extension allows BibTeX citations to be inserted into documentation generated by Sphinx, via a bibliography directive, along with :cite:p: and :cite:t: roles. These work similarly to LaTeX's thebibliography environment and the \citet and \citep commands. WWW: https://github.com/mcmtroffaes/sphinxcontrib-bibtex --- textproc/Makefile | 1 + textproc/py-sphinxcontrib-bibtex/Makefile | 31 ++++++++++++++++++++++ textproc/py-sphinxcontrib-bibtex/distinfo | 3 +++ textproc/py-sphinxcontrib-bibtex/pkg-descr | 6 +++++ 4 files changed, 41 insertions(+) create mode 100644 textproc/py-sphinxcontrib-bibtex/Makefile create mode 100644 textproc/py-sphinxcontrib-bibtex/distinfo create mode 100644 textproc/py-sphinxcontrib-bibtex/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index 4ebb211c6690..270fafda4a72 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1446,6 +1446,7 @@ SUBDIR += py-sphinxcontrib-adadomain SUBDIR += py-sphinxcontrib-applehelp SUBDIR += py-sphinxcontrib-autoprogram + SUBDIR += py-sphinxcontrib-bibtex SUBDIR += py-sphinxcontrib-bitbucket SUBDIR += py-sphinxcontrib-devhelp SUBDIR += py-sphinxcontrib-fulltoc diff --git a/textproc/py-sphinxcontrib-bibtex/Makefile b/textproc/py-sphinxcontrib-bibtex/Makefile new file mode 100644 index 000000000000..4d8faeeda376 --- /dev/null +++ b/textproc/py-sphinxcontrib-bibtex/Makefile @@ -0,0 +1,31 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= sphinxcontrib-bibtex +PORTVERSION= 2.3.0 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Sphinx extension for BibTeX style citations + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.rst + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0.8:textproc/py-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pybtex>=0.20:textproc/py-pybtex@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pybtex-docutils>=1.0.0:textproc/py-pybtex-docutils@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=2.1,1:textproc/py-sphinx@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include + +.if ${PYTHON_REL} < 30700 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR} +.endif + +.include diff --git a/textproc/py-sphinxcontrib-bibtex/distinfo b/textproc/py-sphinxcontrib-bibtex/distinfo new file mode 100644 index 000000000000..28de050c1076 --- /dev/null +++ b/textproc/py-sphinxcontrib-bibtex/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1628103022 +SHA256 (sphinxcontrib-bibtex-2.3.0.tar.gz) = 1aae1005935ae8e6499750b4ef1c8251a14ba16e025d0c0154fe2b6bf45defc0 +SIZE (sphinxcontrib-bibtex-2.3.0.tar.gz) = 100159 diff --git a/textproc/py-sphinxcontrib-bibtex/pkg-descr b/textproc/py-sphinxcontrib-bibtex/pkg-descr new file mode 100644 index 000000000000..95b28c4bebe5 --- /dev/null +++ b/textproc/py-sphinxcontrib-bibtex/pkg-descr @@ -0,0 +1,6 @@ +The bibtex extension allows BibTeX citations to be inserted into documentation +generated by Sphinx, via a bibliography directive, along with :cite:p: and +:cite:t: roles. These work similarly to LaTeX's thebibliography environment and +the \citet and \citep commands. + +WWW: https://github.com/mcmtroffaes/sphinxcontrib-bibtex