Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / sagemath-doc
Commits: 81554499 by Antonio Rojas at 2023-08-28T09:53:15+02:00 upgpkg: 10.1-2: Use system mathjax at runtime - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -2,18 +2,20 @@ pkgname=sagemath-doc pkgver=10.1 -pkgrel=1 +pkgrel=2 pkgdesc='HTML documentation for SageMath' arch=(any) url='http://www.sagemath.org' license=(GPL) -depends=(python-pplpy) +depends=(python-pplpy mathjax) makedepends=(sagemath python-pyzmq python-docutils python-jupyter_client python-pkgconfig cython - python-jupyter-sphinx mathjax python-sphinx-furo python-sphinx-copybutton) + python-jupyter-sphinx python-sphinx-furo python-sphinx-copybutton) source=(https://github.com/sagemath/sage/archive/$pkgver/sagemath-$pkgver.tar.gz - fix-build.patch) + fix-build.patch + https://github.com/sagemath/sage/commit/a3e6bb2e.patch) sha256sums=('a658612b1b2376ddaf207cc8ed0ef458d4c2880c16e19139bedbe8baa42ad62f' - 'ff0ae9866b6e6b74f8b5c947eacd2de50ec2dfd9ab4ca8d07e69df5a35a7c617') + 'ff0ae9866b6e6b74f8b5c947eacd2de50ec2dfd9ab4ca8d07e69df5a35a7c617' + '1c7cd3f12be9330ccb19d5a8bc4c2f916fc13199995decf38fb00b73acb599fb') options=(!strip) # nothing to strip, save packaging time prepare() { @@ -21,10 +23,8 @@ prepare() { # fix build with sphinx 7.2 patch -p1 -i ../fix-build.patch - -# https://trac.sagemath.org/ticket/25833#comment:98 - mkdir mathjax-tmp - cp -r /usr/share/mathjax mathjax-tmp +# correctly detect mathjax path + patch -p1 -i ../a3e6bb2e.patch SAGE_ROOT="$PWD" PATH="$PWD/build/bin:$PATH" src/doc/bootstrap make -C src/doc doc-src @@ -39,7 +39,6 @@ build() { SAGE_ROOT="$PWD/.." \ SAGE_DOC="$PWD"/doc \ PYTHONPATH="$PWD" \ - MATHJAX_DIR="$srcdir"/sage-$pkgver/mathjax-tmp \ SAGE_NUM_THREADS=10 \ LANGUAGE=C python -m sage_docbuild --no-pdf-links --mathjax all html View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/sagemath-doc/-/commit/815544995cfc0fa7dc5a65fbfb36e1ffe7ae22cf -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/sagemath-doc/-/commit/815544995cfc0fa7dc5a65fbfb36e1ffe7ae22cf You're receiving this email because of your account on gitlab.archlinux.org.
