Skip to content

Commit

Permalink
textproc/py-sphinx-theme-builder: Add py-sphinx-theme-builder 0.2.0a13
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sunpoet committed Jan 23, 2022
1 parent bdf8e17 commit e0c2948
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions textproc/py-sphinx-theme-builder/Makefile
Original file line number Diff line number Diff line change
@@ -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>
3 changes: 3 additions & 0 deletions textproc/py-sphinx-theme-builder/distinfo
Original file line number Diff line number Diff line change
@@ -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
39 changes: 39 additions & 0 deletions textproc/py-sphinx-theme-builder/files/setup.py
Original file line number Diff line number Diff line change
@@ -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',
)
8 changes: 8 additions & 0 deletions textproc/py-sphinx-theme-builder/pkg-descr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e0c2948

Please sign in to comment.