Date: Wednesday, December 7, 2022 @ 03:27:38
Author: polyzen
Revision: 1356941
archrelease: copy trunk to community-any
Added:
python-sphinx-furo/repos/community-any/PKGBUILD
(from rev 1356940, python-sphinx-furo/trunk/PKGBUILD)
Deleted:
python-sphinx-furo/repos/community-any/PKGBUILD
----------+
PKGBUILD | 110 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-07 03:27:15 UTC (rev 1356940)
+++ PKGBUILD 2022-12-07 03:27:38 UTC (rev 1356941)
@@ -1,55 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <[email protected]>
-# Maintainer: Daniel M. Capella <[email protected]>
-
-_pkgname=furo
-pkgname=python-sphinx-$_pkgname
-pkgver=2022.09.29
-pkgrel=1
-pkgdesc='A clean customizable documentation theme for Sphinx'
-arch=('any')
-url='https://github.com/pradyunsg/furo'
-license=('MIT')
-depends=('python-sphinx-basic-ng' 'python-pygments' 'python-beautifulsoup4')
-makedepends=('python-build' 'python-installer' 'python-sphinx-theme-builder'
'python-flit-core'
- 'nodejs-lts-gallium' 'npm' 'expac')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('62967c7449428ad02b8d38fe21afb1fa200febb1d8cb7c3999320988ddeac85ecd70eef5ede9bbc9d5b2fe586afeff11f53150d2e864941b177ba0680ef5a296')
-
-prepare() {
- cd $_pkgname-$pkgver
- # force use of system nodejs
- local node_ver=$(expac %v nodejs-lts-gallium | cut -d - -f 1)
- sed -i "s/16.13.1/$node_ver/" pyproject.toml
-}
-
-build() {
- cd $_pkgname-$pkgver
-
- python -m build -nw
-
- # docs disabled for now to unblock Python 3.10 update
-
- # sphinx needs this theme installed because it is uses it.
- # simply injecting the package to sys.path (via PYTHONPATH or similar)
- # is not enough because sphinx looks for themes in the registered
- # entrypoints, this means we actually have to install the package.
- # for this we will create a venv with access to system packages and
- # install the theme there, then we will build the documentation.
-
- #python -m venv --system-site-packages doc-env
- #doc-env/bin/python setup.py install --skip-build
-
- #doc-env/bin/python /usr/bin/sphinx-build -b dirhtml -v docs build/docs/html
-}
-
-package() {
- cd $_pkgname-$pkgver
-
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- #install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
- #cp -r -a --no-preserve=ownership build/docs/html
"$pkgdir"/usr/share/doc/$pkgname
- #rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
-
- install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-sphinx-furo/repos/community-any/PKGBUILD (from rev 1356940,
python-sphinx-furo/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-07 03:27:38 UTC (rev 1356941)
@@ -0,0 +1,55 @@
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+
+_pkgname=furo
+pkgname=python-sphinx-$_pkgname
+pkgver=2022.12.07
+pkgrel=1
+pkgdesc='A clean customizable documentation theme for Sphinx'
+arch=('any')
+url='https://github.com/pradyunsg/furo'
+license=('MIT')
+depends=('python-sphinx-basic-ng' 'python-pygments' 'python-beautifulsoup4')
+makedepends=('python-build' 'python-installer' 'python-sphinx-theme-builder'
'python-flit-core'
+ 'nodejs-lts-gallium' 'npm' 'expac')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('46f0e9492b6ce21459b4169d78b916a96931ac164a1fae037b599b41c7b78eb90f8c20ed8a26118e3e8bd23c4e6a23a46fabaf0316ebad0cc98d4c5553b3b714')
+
+prepare() {
+ cd $_pkgname-$pkgver
+ # force use of system nodejs
+ local node_ver=$(expac %v nodejs-lts-gallium | cut -d - -f 1)
+ sed -i "s/16.15.1/$node_ver/" pyproject.toml
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ STB_USE_SYSTEM_NODE=true python -m build -nw
+
+ # docs disabled for now to unblock Python 3.10 update
+
+ # sphinx needs this theme installed because it is uses it.
+ # simply injecting the package to sys.path (via PYTHONPATH or similar)
+ # is not enough because sphinx looks for themes in the registered
+ # entrypoints, this means we actually have to install the package.
+ # for this we will create a venv with access to system packages and
+ # install the theme there, then we will build the documentation.
+
+ #python -m venv --system-site-packages doc-env
+ #doc-env/bin/python setup.py install --skip-build
+
+ #doc-env/bin/python /usr/bin/sphinx-build -b dirhtml -v docs build/docs/html
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ #install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ #cp -r -a --no-preserve=ownership build/docs/html
"$pkgdir"/usr/share/doc/$pkgname
+ #rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}