Date: Tuesday, September 20, 2022 @ 11:08:43
  Author: arojas
Revision: 1305457

upgpkg: sagemath-doc 9.7-1: Update to 9.7

Modified:
  sagemath-doc/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-20 11:08:06 UTC (rev 1305456)
+++ PKGBUILD    2022-09-20 11:08:43 UTC (rev 1305457)
@@ -1,8 +1,8 @@
 # Maintainer: Antonio Rojas <[email protected]>
 
 pkgname=sagemath-doc
-pkgver=9.6
-pkgrel=2
+pkgver=9.7
+pkgrel=1
 pkgdesc='HTML documentation for SageMath'
 arch=(any)
 url='http://www.sagemath.org'
@@ -9,15 +9,21 @@
 license=(GPL)
 depends=(gap-doc python-pplpy)
 makedepends=(sagemath python-pyzmq python-docutils python-jupyter_client 
python-pkgconfig cython
-             python-jupyter-sphinx mathjax2)
+             python-jupyter-sphinx mathjax python-sphinx-furo)
 
source=(https://github.com/sagemath/sage/archive/$pkgver/sagemath-$pkgver.tar.gz)
-sha256sums=('c6225d48f70ac955fceed5c1fddfdd7294001d460b43a686329d5d44d836f6a3')
+sha256sums=('9f26f14aa322e3cf38a71835b12ac34b23026b467f74d54b064c5d025e76fbfd')
 options=(!strip) # nothing to strip, save packaging time
 
 prepare() {
   cd sage-$pkgver
 
+# https://trac.sagemath.org/ticket/25833#comment:98
+  mkdir mathjax-tmp
+  cp -r /usr/share/mathjax mathjax-tmp
+
   SAGE_ROOT="$PWD" PATH="$PWD/build/bin:$PATH" src/doc/bootstrap
+  make -C src/doc doc-src
+
   rm -r src/sage # Use the installed sage, not the one from the source tree
 }
 
@@ -26,7 +32,7 @@
 
   export SAGE_SRC="$PWD" \
          SAGE_DOC="$PWD"/doc \
-         MATHJAX_DIR=/usr/share/mathjax2 \
+         MATHJAX_DIR="$srcdir"/sage-$pkgver/mathjax-tmp \
          SAGE_NUM_THREADS=10 \
          LANGUAGE=C
   python -m sage_docbuild --no-pdf-links --mathjax all html

Reply via email to