git: e0c2948af28f - main - textproc/py-sphinx-theme-builder: Add py-sphinx-theme-builder 0.2.0a13

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 23 Jan 2022 19:26:13 UTC
The branch main has been updated by sunpoet:

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

commit e0c2948af28f756741aec86165fe9ecb5a770280
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-23 18:05:39 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-23 18:05:39 +0000

    textproc/py-sphinx-theme-builder: Add py-sphinx-theme-builder 0.2.0a13
    
    Streamline the Sphinx theme development workflow, by building upon existing
    standardised tools.
    - simplified packaging experience
    - simplified JavaScript tooling setup
    - development server, with rebuild-on-save and automagical browser reloading
    - consistent repository structure across themes
    
    WWW: https://github.com/pradyunsg/sphinx-theme-builder
---
 textproc/Makefile                               |  1 +
 textproc/py-sphinx-theme-builder/Makefile       | 29 ++++++++++++++++++
 textproc/py-sphinx-theme-builder/distinfo       |  3 ++
 textproc/py-sphinx-theme-builder/files/setup.py | 39 +++++++++++++++++++++++++
 textproc/py-sphinx-theme-builder/pkg-descr      |  8 +++++
 5 files changed, 80 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 4e7b4c7d8198..5cd08c01634a 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1478,6 +1478,7 @@
     SUBDIR += py-sphinx-markdown-tables
     SUBDIR += py-sphinx-me
     SUBDIR += py-sphinx-tabs
+    SUBDIR += py-sphinx-theme-builder
     SUBDIR += py-sphinx_press_theme
     SUBDIR += py-sphinx_rtd_theme
     SUBDIR += py-sphinx_wikipedia
diff --git a/textproc/py-sphinx-theme-builder/Makefile b/textproc/py-sphinx-theme-builder/Makefile
new file mode 100644
index 000000000000..8813463d9a84
--- /dev/null
+++ b/textproc/py-sphinx-theme-builder/Makefile
@@ -0,0 +1,29 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	sphinx-theme-builder
+DISTVERSION=	0.2.0a13
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Tool for authoring Sphinx themes with a simple (opinionated) workflow
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nodeenv>=0:devel/py-nodeenv@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pep621>=0:devel/py-pep621@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>=0:textproc/py-rich@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${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-theme-builder/distinfo b/textproc/py-sphinx-theme-builder/distinfo
new file mode 100644
index 000000000000..395363d5d9b0
--- /dev/null
+++ b/textproc/py-sphinx-theme-builder/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1642102119
+SHA256 (sphinx-theme-builder-0.2.0a13.tar.gz) = d0bf4429a9c051910eee94a32942fa940db546fd033a7cef8986c8ea68f23fc5
+SIZE (sphinx-theme-builder-0.2.0a13.tar.gz) = 21363
diff --git a/textproc/py-sphinx-theme-builder/files/setup.py b/textproc/py-sphinx-theme-builder/files/setup.py
new file mode 100644
index 000000000000..34719f111cc4
--- /dev/null
+++ b/textproc/py-sphinx-theme-builder/files/setup.py
@@ -0,0 +1,39 @@
+#!/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_theme_builder',
+ 'sphinx_theme_builder._internal',
+ 'sphinx_theme_builder._internal.cli']
+
+package_data = \
+{'': ['*']}
+
+package_dir = \
+{'': 'src'}
+
+install_requires = \
+['packaging', 'rich', 'tomli', 'nodeenv', 'setuptools', 'pep621']
+
+extras_require = \
+{'cli': ['build', 'click', 'sphinx-autobuild']}
+
+entry_points = \
+{'console_scripts': ['stb = sphinx_theme_builder._internal.cli:main']}
+
+setup(name='sphinx-theme-builder',
+      version='%%PORTVERSION%%',
+      description='A tool for authoring Sphinx themes with a simple (opinionated) workflow.',
+      author=None,
+      author_email='Pradyun Gedam <mail@pradyunsg.me>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      package_dir=package_dir,
+      install_requires=install_requires,
+      extras_require=extras_require,
+      entry_points=entry_points,
+      python_requires='~=3.7',
+     )
diff --git a/textproc/py-sphinx-theme-builder/pkg-descr b/textproc/py-sphinx-theme-builder/pkg-descr
new file mode 100644
index 000000000000..21050c577928
--- /dev/null
+++ b/textproc/py-sphinx-theme-builder/pkg-descr
@@ -0,0 +1,8 @@
+Streamline the Sphinx theme development workflow, by building upon existing
+standardised tools.
+- simplified packaging experience
+- simplified JavaScript tooling setup
+- development server, with rebuild-on-save and automagical browser reloading
+- consistent repository structure across themes
+
+WWW: https://github.com/pradyunsg/sphinx-theme-builder