Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Oct 2022 17:12:27 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: dfbff6728c6c - main - textproc/py-sphinx-examples: Add py-sphinx-examples 0.0.5
Message-ID:  <202210031712.293HCRjJ011517@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dfbff6728c6caad3ddf86ec15df90e1523e90b64

commit dfbff6728c6caad3ddf86ec15df90e1523e90b64
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-10-03 16:56:38 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-10-03 17:10:13 +0000

    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.
---
 textproc/Makefile                          |  1 +
 textproc/py-sphinx-examples/Makefile       | 25 ++++++++++++++++++++
 textproc/py-sphinx-examples/distinfo       |  3 +++
 textproc/py-sphinx-examples/files/setup.py | 37 ++++++++++++++++++++++++++++++
 textproc/py-sphinx-examples/pkg-descr      |  3 +++
 5 files changed, 69 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 054ad0515a03..a14231c4e068 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -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
diff --git a/textproc/py-sphinx-examples/Makefile b/textproc/py-sphinx-examples/Makefile
new file mode 100644
index 000000000000..ac3fdf85cdab
--- /dev/null
+++ b/textproc/py-sphinx-examples/Makefile
@@ -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>
diff --git a/textproc/py-sphinx-examples/distinfo b/textproc/py-sphinx-examples/distinfo
new file mode 100644
index 000000000000..da4df7901a4e
--- /dev/null
+++ b/textproc/py-sphinx-examples/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1664767808
+SHA256 (sphinx-examples-0.0.5.tar.gz) = 552772a5e6de97b6ca0930125f6272a9fb7b2d875afdc02c8e2fbec9eaf93ff4
+SIZE (sphinx-examples-0.0.5.tar.gz) = 4754
diff --git a/textproc/py-sphinx-examples/files/setup.py b/textproc/py-sphinx-examples/files/setup.py
new file mode 100644
index 000000000000..fb35dbe8da5a
--- /dev/null
+++ b/textproc/py-sphinx-examples/files/setup.py
@@ -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',
+     )
diff --git a/textproc/py-sphinx-examples/pkg-descr b/textproc/py-sphinx-examples/pkg-descr
new file mode 100644
index 000000000000..faf1d40110ff
--- /dev/null
+++ b/textproc/py-sphinx-examples/pkg-descr
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210031712.293HCRjJ011517>