textproc/py-sphinx-examples: Add py-sphinx-examples 0.0.5
sphinx-examples is a small Sphinx extension to create examples of source markup and the result of rendering it in your documentation. This is useful if you wish to demonstrate the functionality of a new directive or role in Sphinx.
This commit is contained in:
parent
52cbf47c37
commit
dfbff6728c
@ -1499,6 +1499,7 @@
|
||||
SUBDIR += py-sphinx-book-theme
|
||||
SUBDIR += py-sphinx-copybutton
|
||||
SUBDIR += py-sphinx-design
|
||||
SUBDIR += py-sphinx-examples
|
||||
SUBDIR += py-sphinx-inline-tabs
|
||||
SUBDIR += py-sphinx-intl
|
||||
SUBDIR += py-sphinx-issues
|
||||
|
25
textproc/py-sphinx-examples/Makefile
Normal file
25
textproc/py-sphinx-examples/Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
PORTNAME= sphinx-examples
|
||||
PORTVERSION= 0.0.5
|
||||
CATEGORIES= textproc python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Lightweight example directive to make it easy to demonstrate code/results
|
||||
WWW= https://github.com/executablebooks/sphinx-examples
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=4,1:textproc/py-sphinx@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}sphinx-design>=0:textproc/py-sphinx-design@${PY_FLAVOR}
|
||||
|
||||
USES= python:3.7+
|
||||
USE_PYTHON= autoplist concurrent distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
post-patch:
|
||||
@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
3
textproc/py-sphinx-examples/distinfo
Normal file
3
textproc/py-sphinx-examples/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1664767808
|
||||
SHA256 (sphinx-examples-0.0.5.tar.gz) = 552772a5e6de97b6ca0930125f6272a9fb7b2d875afdc02c8e2fbec9eaf93ff4
|
||||
SIZE (sphinx-examples-0.0.5.tar.gz) = 4754
|
37
textproc/py-sphinx-examples/files/setup.py
Normal file
37
textproc/py-sphinx-examples/files/setup.py
Normal file
@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env python
|
||||
# setup.py generated by flit for tools that don't yet use PEP 517
|
||||
|
||||
from distutils.core import setup
|
||||
|
||||
packages = \
|
||||
['sphinx_examples']
|
||||
|
||||
package_data = \
|
||||
{'': ['*'], 'sphinx_examples': ['_static/*', '_static/styles/*']}
|
||||
|
||||
package_dir = \
|
||||
{'': 'src'}
|
||||
|
||||
install_requires = \
|
||||
['sphinx>4', 'sphinx-design']
|
||||
|
||||
extras_require = \
|
||||
{'sphinx': ['sphinx-book-theme',
|
||||
'sphinx-copybutton',
|
||||
'myst-parser',
|
||||
'sphinx-rtd-theme',
|
||||
'furo']}
|
||||
|
||||
setup(name='sphinx-examples',
|
||||
version='%%PORTVERSION%%',
|
||||
description='A lightweight example directive to make it easy to demonstrate code / results.',
|
||||
author=None,
|
||||
author_email='Executable Book Project <executablebooks@gmail.com>',
|
||||
url=None,
|
||||
packages=packages,
|
||||
package_data=package_data,
|
||||
package_dir=package_dir,
|
||||
install_requires=install_requires,
|
||||
extras_require=extras_require,
|
||||
python_requires='>=3.7',
|
||||
)
|
3
textproc/py-sphinx-examples/pkg-descr
Normal file
3
textproc/py-sphinx-examples/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
sphinx-examples is a small Sphinx extension to create examples of source markup
|
||||
and the result of rendering it in your documentation. This is useful if you wish
|
||||
to demonstrate the functionality of a new directive or role in Sphinx.
|
Loading…
Reference in New Issue
Block a user