[arch-commits] Commit in sagemath-doc/repos/community-any (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Sun Jan 30 18:34:20 UTC 2022


    Date: Sunday, January 30, 2022 @ 18:34:20
  Author: arojas
Revision: 1120648

archrelease: copy trunk to community-any

Added:
  sagemath-doc/repos/community-any/PKGBUILD
    (from rev 1120647, sagemath-doc/trunk/PKGBUILD)
  sagemath-doc/repos/community-any/sagemath-doc-sphinx-warnings.patch
    (from rev 1120647, sagemath-doc/trunk/sagemath-doc-sphinx-warnings.patch)
Deleted:
  sagemath-doc/repos/community-any/PKGBUILD

------------------------------------+
 PKGBUILD                           |  102 ++++++++++++++++++-----------------
 sagemath-doc-sphinx-warnings.patch |   14 ++++
 2 files changed, 67 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-30 18:34:04 UTC (rev 1120647)
+++ PKGBUILD	2022-01-30 18:34:20 UTC (rev 1120648)
@@ -1,49 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=sagemath-doc
-pkgver=9.4
-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-ipywidgets thebe)
-source=(https://github.com/sagemath/sage/archive/$pkgver/sagemath-$pkgver.tar.gz)
-sha256sums=('47190f37e679c2483dadc13112595bacb399dfe4c4a0cde18d3627f5b2db0ea5')
-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 \
-         LANG=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 1120647, sagemath-doc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-30 18:34:20 UTC (rev 1120648)
@@ -0,0 +1,53 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=sagemath-doc
+pkgver=9.5
+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-ipywidgets thebe)
+source=(https://github.com/sagemath/sage/archive/$pkgver/sagemath-$pkgver.tar.gz
+        sagemath-doc-sphinx-warnings.patch)
+sha256sums=('8d70a3b26080802c5b2e33dda4c23795d494d8216a0c2ecfcd608ebab0e64ff6'
+            'ad801c3eb554879bbef764dcef5356d385eeddd16e9acbd1959002502457df17')
+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
+
+  patch -p1 -i ../sagemath-doc-sphinx-warnings.patch # Fix warnings with recent Sphinx
+}
+
+build() {
+  cd sage-$pkgver/src
+
+  export SAGE_SRC="$PWD" \
+         SAGE_DOC="$PWD"/doc \
+         MATHJAX_DIR=/usr/share/mathjax2 \
+         SAGE_NUM_THREADS=10 \
+         LANG=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/sagemath-doc-sphinx-warnings.patch (from rev 1120647, sagemath-doc/trunk/sagemath-doc-sphinx-warnings.patch)
===================================================================
--- sagemath-doc-sphinx-warnings.patch	                        (rev 0)
+++ sagemath-doc-sphinx-warnings.patch	2022-01-30 18:34:20 UTC (rev 1120648)
@@ -0,0 +1,14 @@
+diff --git a/src/sage_docbuild/sphinxbuild.py b/src/sage_docbuild/sphinxbuild.py
+index d917c3e9d4..7e85a723ab 100644
+--- a/src/sage_docbuild/sphinxbuild.py
++++ b/src/sage_docbuild/sphinxbuild.py
+@@ -110,7 +110,8 @@ class SageSphinxLogger(object):
+             re.compile('WARNING: Any IDs not assiend for figure node'),
+             re.compile('WARNING: .* is not referenced'),
+             re.compile('WARNING: Build finished'),
+-            re.compile('WARNING: rST localisation for language .* not found')
++            re.compile('WARNING: rST localisation for language .* not found'),
++            re.compile('WARNING: hardcoded link .*')
+         )
+         # The warning "unknown config value 'multidoc_first_pass'..."
+         # should only appear when building the documentation for a



More information about the arch-commits mailing list