Date: Tuesday, September 20, 2022 @ 11:08:53
  Author: arojas
Revision: 1305459

archrelease: copy trunk to community-any

Added:
  sagemath-doc/repos/community-any/PKGBUILD
    (from rev 1305457, sagemath-doc/trunk/PKGBUILD)
Deleted:
  sagemath-doc/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  106 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 56 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-20 11:08:52 UTC (rev 1305458)
+++ PKGBUILD    2022-09-20 11:08:53 UTC (rev 1305459)
@@ -1,50 +0,0 @@
-# Maintainer: Antonio Rojas <[email protected]>
-
-pkgname=sagemath-doc
-pkgver=9.6
-pkgrel=2
-pkgdesc='HTML documentation for SageMath'
-arch=(any)
-url='http://www.sagemath.org'
-license=(GPL)
-depends=(gap-doc python-pplpy)
-makedepends=(sagemath python-pyzmq python-docutils python-jupyter_client 
python-pkgconfig cython
-             python-jupyter-sphinx mathjax2)
-source=(https://github.com/sagemath/sage/archive/$pkgver/sagemath-$pkgver.tar.gz)
-sha256sums=('c6225d48f70ac955fceed5c1fddfdd7294001d460b43a686329d5d44d836f6a3')
-options=(!strip) # nothing to strip, save packaging time
-
-prepare() {
-  cd sage-$pkgver
-
-  SAGE_ROOT="$PWD" PATH="$PWD/build/bin:$PATH" src/doc/bootstrap
-  rm -r src/sage # Use the installed sage, not the one from the source tree
-}
-
-build() {
-  cd sage-$pkgver/src
-
-  export SAGE_SRC="$PWD" \
-         SAGE_DOC="$PWD"/doc \
-         MATHJAX_DIR=/usr/share/mathjax2 \
-         SAGE_NUM_THREADS=10 \
-         LANGUAGE=C
-  python -m sage_docbuild --no-pdf-links --mathjax all html
-}
-
-package() {
-  cd sage-$pkgver/src/doc
- 
-  mkdir -p "$pkgdir"/usr/share/doc/sage
-  cp -r common "$pkgdir"/usr/share/doc/sage
-  cp -r html "$pkgdir"/usr/share/doc/sage
-
-# Replace duplicated files by symlinks (Gentoo)
-  cd "$pkgdir"/usr/share/doc/sage
-  mv html/en/_static{,.tmp}
-  for _dir in `find -name _static` ; do
-    rm -r $_dir
-    ln -s /usr/share/doc/sage/html/en/_static $_dir
-  done
-  mv html/en/_static{.tmp,}
-}

Copied: sagemath-doc/repos/community-any/PKGBUILD (from rev 1305457, 
sagemath-doc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-09-20 11:08:53 UTC (rev 1305459)
@@ -0,0 +1,56 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+pkgname=sagemath-doc
+pkgver=9.7
+pkgrel=1
+pkgdesc='HTML documentation for SageMath'
+arch=(any)
+url='http://www.sagemath.org'
+license=(GPL)
+depends=(gap-doc python-pplpy)
+makedepends=(sagemath python-pyzmq python-docutils python-jupyter_client 
python-pkgconfig cython
+             python-jupyter-sphinx mathjax python-sphinx-furo)
+source=(https://github.com/sagemath/sage/archive/$pkgver/sagemath-$pkgver.tar.gz)
+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
+}
+
+build() {
+  cd sage-$pkgver/src
+
+  export SAGE_SRC="$PWD" \
+         SAGE_DOC="$PWD"/doc \
+         MATHJAX_DIR="$srcdir"/sage-$pkgver/mathjax-tmp \
+         SAGE_NUM_THREADS=10 \
+         LANGUAGE=C
+  python -m sage_docbuild --no-pdf-links --mathjax all html
+}
+
+package() {
+  cd sage-$pkgver/src/doc
+ 
+  mkdir -p "$pkgdir"/usr/share/doc/sage
+  cp -r common "$pkgdir"/usr/share/doc/sage
+  cp -r html "$pkgdir"/usr/share/doc/sage
+
+# Replace duplicated files by symlinks (Gentoo)
+  cd "$pkgdir"/usr/share/doc/sage
+  mv html/en/_static{,.tmp}
+  for _dir in `find -name _static` ; do
+    rm -r $_dir
+    ln -s /usr/share/doc/sage/html/en/_static $_dir
+  done
+  mv html/en/_static{.tmp,}
+}

Reply via email to