aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-08-08 14:32:31 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-08-08 14:53:55 +0000
commit25625d556e8f760ea75a8980523e9f8678bc51b7 (patch)
treec8cc5648b18a07dcb187cd324ea174d860a14ba2
parent6c7fc56c1df7b05f37864a624c0ad0f9976b35df (diff)
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-sphinxcontrib-bibtex/Makefile31
-rw-r--r--textproc/py-sphinxcontrib-bibtex/distinfo3
-rw-r--r--textproc/py-sphinxcontrib-bibtex/pkg-descr6
4 files changed, 41 insertions, 0 deletions
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 <sunpoet@FreeBSD.org>
+
+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 <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30700
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
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