[arch-commits] Commit in sagemath-doc/trunk (PKGBUILD sphinxify-warnings.patch)

Antonio Rojas arojas at archlinux.org
Thu Jan 30 08:48:11 UTC 2020


    Date: Thursday, January 30, 2020 @ 08:48:11
  Author: arojas
Revision: 560040

Fix deprecation warnings with sphinx 2.2

Added:
  sagemath-doc/trunk/sphinxify-warnings.patch
Modified:
  sagemath-doc/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   10 +++++++---
 sphinxify-warnings.patch |   16 ++++++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-30 08:47:58 UTC (rev 560039)
+++ PKGBUILD	2020-01-30 08:48:11 UTC (rev 560040)
@@ -2,7 +2,7 @@
 
 pkgname=sagemath-doc
 pkgver=9.0
-pkgrel=1
+pkgrel=2
 pkgdesc="HTML documentation for SageMath"
 arch=(any)
 url="http://www.sagemath.org"
@@ -11,10 +11,12 @@
 makedepends=(sagemath python-pyzmq python-docutils python-jupyter_client python-pkgconfig cython python-ipywidgets python-sphinx-1 thebe)
 source=(sagemath-$pkgver.tar.gz::"https://github.com/sagemath/sage/archive/$pkgver.tar.gz"
         docbuild_main.patch
-        sagemath-ecl-sigfpe.patch)
+        sagemath-ecl-sigfpe.patch
+        sphinxify-warnings.patch)
 sha256sums=('6f5d42b306a2c03073dd95086f80602bd1a0b929b8ad19c6d219c8ca8e96da26'
             'ea5e17bb7a7cb36a22e5e3872fcc2585852bc971c4b139b0b2cd69a36c1b009b'
-            'e44bbde87f3312548faad75b7383ef21fade55be251ab5804de41cd3842ca8a0')
+            'e44bbde87f3312548faad75b7383ef21fade55be251ab5804de41cd3842ca8a0'
+            '99fc7f393d5ee2687573c0ef6bf5ecb75077e415aa0605af3766824fa11aafd6')
 
 prepare() {
   cd sage-$pkgver
@@ -26,6 +28,8 @@
   ln -sr src/sage_setup local-python
 # Fix SIGFPE crashes with ecl 16.1.3 https://trac.sagemath.org/ticket/22191
   patch -p1 -i ../sagemath-ecl-sigfpe.patch
+# Fix sphinxify deprecation warnings
+  patch -p1 -i ../sphinxify-warnings.patch
 }
 
 build() {

Added: sphinxify-warnings.patch
===================================================================
--- sphinxify-warnings.patch	                        (rev 0)
+++ sphinxify-warnings.patch	2020-01-30 08:48:11 UTC (rev 560040)
@@ -0,0 +1,16 @@
+diff --git a/src/doc/common/themes/sage/search.html b/src/doc/common/themes/sage/search.html
+index 88d5813bea..9fd5017991 100644
+--- a/src/doc/common/themes/sage/search.html
++++ b/src/doc/common/themes/sage/search.html
+@@ -9,7 +9,10 @@
+ #}
+ {% extends "layout.html" %}
+ {% set title = _('Search') %}
+-{% set script_files = script_files + ['_static/searchtools.js'] %}
++{%- block scripts %}
++    {{ super() }}
++    <script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
++{%- endblock %}
+ {% block extrahead %}
+   <script type="text/javascript">
+     jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });



More information about the arch-commits mailing list