git: 1016eec5c4f2 - main - textproc/py-sphinx-book-theme: Update to 0.3.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jun 2022 16:37:36 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1016eec5c4f29a3211c57fe76b4b4390ac1bb694
commit 1016eec5c4f29a3211c57fe76b4b4390ac1bb694
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-21 16:33:19 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-21 16:36:24 +0000
textproc/py-sphinx-book-theme: Update to 0.3.2
Changes: https://github.com/executablebooks/sphinx-book-theme/releases
---
textproc/py-sphinx-book-theme/Makefile | 22 +++++---
textproc/py-sphinx-book-theme/distinfo | 8 ++-
textproc/py-sphinx-book-theme/files/patch-setup.py | 11 ----
textproc/py-sphinx-book-theme/files/setup.py | 66 ++++++++++++++++++++++
textproc/py-sphinx-book-theme/pkg-plist | 48 ++++++++++++++++
5 files changed, 134 insertions(+), 21 deletions(-)
diff --git a/textproc/py-sphinx-book-theme/Makefile b/textproc/py-sphinx-book-theme/Makefile
index f81db6d801ed..5631c10d78c4 100644
--- a/textproc/py-sphinx-book-theme/Makefile
+++ b/textproc/py-sphinx-book-theme/Makefile
@@ -1,26 +1,34 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
PORTNAME= sphinx-book-theme
-PORTVERSION= 0.2.0
+PORTVERSION= 0.3.2
CATEGORIES= textproc python
-MASTER_SITES= CHEESESHOP
+MASTER_SITES= CHEESESHOP \
+ LOCAL/sunpoet:static
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= sphinx_book_theme-${PORTVERSION}${EXTRACT_SUFX} \
+ sphinx_book_theme-${PORTVERSION}-static${EXTRACT_SUFX}:static
MAINTAINER= sunpoet@FreeBSD.org
-COMMENT= Clean book theme for scientific explanations and documentation with Sphinx
+COMMENT= Bootstrap-based Sphinx theme from the PyData community
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.6.1<5:www/py-beautifulsoup@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}docutils>=0.17.1:textproc/py-docutils@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pydata-sphinx-theme>=0.7.2<0.8:textproc/py-pydata-sphinx-theme@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydata-sphinx-theme>=0.8.0<0.9:textproc/py-pydata-sphinx-theme@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}sphinx>=3,1<5,1:textproc/py-sphinx@${PY_FLAVOR}
+ ${PYTHON_PKGNAMEPREFIX}sphinx>=3,1<5,1:textproc/py-sphinx@${PY_FLAVOR} \
USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
+WRKSRC= ${WRKDIR}/sphinx_book_theme-${PORTVERSION}
+
+post-patch:
+ @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
+post-install:
+ cd ${WRKDIR}/static/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinx_book_theme/theme/sphinx_book_theme/static/
.include <bsd.port.mk>
diff --git a/textproc/py-sphinx-book-theme/distinfo b/textproc/py-sphinx-book-theme/distinfo
index e5ca961a6117..74a4f8c1fde8 100644
--- a/textproc/py-sphinx-book-theme/distinfo
+++ b/textproc/py-sphinx-book-theme/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1643971132
-SHA256 (sphinx-book-theme-0.2.0.tar.gz) = 9f9762f2c6372e7ebaac905707628efe80386d3e5160945d8965d309aeed940d
-SIZE (sphinx-book-theme-0.2.0.tar.gz) = 58970
+TIMESTAMP = 1655561172
+SHA256 (sphinx_book_theme-0.3.2.tar.gz) = 182b5657a345f3bbb2c5b86da65db9b47e27de0ab406cda168142768645121f5
+SIZE (sphinx_book_theme-0.3.2.tar.gz) = 269284
+SHA256 (sphinx_book_theme-0.3.2-static.tar.gz) = 9227e0bd6f6813dc623616eda26ef1d3a91a77565e54dc9b7475c1f117caea1e
+SIZE (sphinx_book_theme-0.3.2-static.tar.gz) = 188928
diff --git a/textproc/py-sphinx-book-theme/files/patch-setup.py b/textproc/py-sphinx-book-theme/files/patch-setup.py
deleted file mode 100644
index 9ec12675262c..000000000000
--- a/textproc/py-sphinx-book-theme/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py.orig 2022-01-10 10:21:14 UTC
-+++ setup.py
-@@ -29,7 +29,7 @@ setup(
- packages=find_packages(),
- install_requires=[
- "beautifulsoup4>=4.6.1,<5",
-- "docutils>=0.15,<0.17",
-+ "docutils>=0.17.1",
- 'importlib-resources>=3.0,<3.5; python_version < "3.7"',
- "pydata-sphinx-theme~=0.7.2",
- "pyyaml",
diff --git a/textproc/py-sphinx-book-theme/files/setup.py b/textproc/py-sphinx-book-theme/files/setup.py
new file mode 100644
index 000000000000..4fe5af94b5ae
--- /dev/null
+++ b/textproc/py-sphinx-book-theme/files/setup.py
@@ -0,0 +1,66 @@
+from setuptools import setup
+
+setup(
+ name = 'sphinx-book-theme',
+ version = '%%PORTVERSION%%',
+ description = 'A clean book theme for scientific explanations and documentation with Sphinx',
+ maintainer = 'Chris Holdgraf',
+ maintainer_email = 'choldgraf@gmail.com',
+ url = None,
+ packages = ['sphinx_book_theme'],
+ package_dir = {'': 'src'},
+ package_data = {'': ['*']},
+ install_requires = [
+ 'sphinx>=3,<5',
+ 'pydata-sphinx-theme~=0.8.0',
+ 'pyyaml',
+ ],
+ extras_require = {
+ 'code_style': [
+ 'pre-commit~=2.7.0'
+ ],
+ 'doc': [
+ 'ablog~=0.10.13',
+ 'ipywidgets',
+ 'folium',
+ 'numpy',
+ 'matplotlib',
+ 'numpydoc',
+ 'myst-nb~=0.13',
+ 'nbclient',
+ 'pandas',
+ 'plotly',
+ 'sphinx~=4.0', # Force Sphinx to be the latest version
+ 'sphinx-design',
+ 'sphinx-copybutton',
+ 'sphinx-tabs',
+ 'sphinx-togglebutton>=0.2.1',
+ 'sphinx-thebe>=0.1.1',
+ 'sphinxcontrib-bibtex~=2.2',
+ 'sphinxcontrib-youtube',
+ 'sphinxext-opengraph',
+ ],
+ 'test': [
+ 'beautifulsoup4>=4.6.1,<5',
+ 'coverage',
+ 'myst_nb~=0.13',
+ 'pytest~=6.0.1',
+ 'pytest-cov',
+ 'pytest-regressions~=2.0.1',
+ 'sphinx_thebe'
+ ],
+ },
+ entry_points = {
+ 'sphinx.html_themes': ['sphinx_book_theme = sphinx_book_theme'],
+ },
+ classifiers = [
+ 'Development Status :: 4 - Beta',
+ 'Programming Language :: Python :: 3',
+ 'Framework :: Sphinx',
+ 'Framework :: Sphinx :: Theme',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ ],
+ license = 'BSD License',
+ python_requires = '>= 3.7',
+)
diff --git a/textproc/py-sphinx-book-theme/pkg-plist b/textproc/py-sphinx-book-theme/pkg-plist
new file mode 100644
index 000000000000..ba6ac267dbb2
--- /dev/null
+++ b/textproc/py-sphinx-book-theme/pkg-plist
@@ -0,0 +1,48 @@
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ar/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/bg/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/bn/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ca/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/cs/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/da/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/de/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/el/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/eo/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/es/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/et/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/fi/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/fr/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/hr/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/id/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/it/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/iw/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ja/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ko/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/lt/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/lv/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ml/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/mr/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ms/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/nl/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/no/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/pl/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/pt/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ro/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ru/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/sk/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/sl/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/sr/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/sv/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ta/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/te/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/tg/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/th/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/tl/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/tr/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/uk/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/ur/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/vi/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/zh_CN/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/locales/zh_TW/LC_MESSAGES/booktheme.po
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/scripts/sphinx-book-theme.js
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/scripts/sphinx-book-theme.js.map
+%%PYTHON_SITELIBDIR%%/sphinx_book_theme/theme/sphinx_book_theme/static/styles/sphinx-book-theme.css