diff --git a/textproc/Makefile b/textproc/Makefile index 1ddd37d88491..f5651be61625 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1407,6 +1407,7 @@ SUBDIR += py-sphinx-argparse SUBDIR += py-sphinx-autoapi SUBDIR += py-sphinx-autodoc-typehints + SUBDIR += py-sphinx-copybutton SUBDIR += py-sphinx-inline-tabs SUBDIR += py-sphinx-intl SUBDIR += py-sphinx-issues diff --git a/textproc/py-sphinx-copybutton/Makefile b/textproc/py-sphinx-copybutton/Makefile new file mode 100644 index 000000000000..d0f5eb77c837 --- /dev/null +++ b/textproc/py-sphinx-copybutton/Makefile @@ -0,0 +1,22 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= sphinx-copybutton +PORTVERSION= 0.3.1 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Add a copy button to each of your code cells + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.8,1:textproc/py-sphinx@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/textproc/py-sphinx-copybutton/distinfo b/textproc/py-sphinx-copybutton/distinfo new file mode 100644 index 000000000000..f3046357a1d8 --- /dev/null +++ b/textproc/py-sphinx-copybutton/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1618319920 +SHA256 (sphinx-copybutton-0.3.1.tar.gz) = 0e0461df394515284e3907e3f418a0c60ef6ab6c9a27a800c8552772d0a402a2 +SIZE (sphinx-copybutton-0.3.1.tar.gz) = 112606 diff --git a/textproc/py-sphinx-copybutton/pkg-descr b/textproc/py-sphinx-copybutton/pkg-descr new file mode 100644 index 000000000000..05b28d0355a4 --- /dev/null +++ b/textproc/py-sphinx-copybutton/pkg-descr @@ -0,0 +1,4 @@ +sphinx-copybutton is a small sphinx extension to add a "copy" button to code +blocks. + +WWW: https://github.com/executablebooks/sphinx-copybutton