[arch-commits] Commit in sagemath-doc/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat Oct 22 16:02:51 UTC 2016


    Date: Saturday, October 22, 2016 @ 16:02:51
  Author: arojas
Revision: 192978

Rebuild to fix missing docs

Modified:
  sagemath-doc/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-22 15:30:16 UTC (rev 192977)
+++ PKGBUILD	2016-10-22 16:02:51 UTC (rev 192978)
@@ -4,11 +4,12 @@
 pkgbase=sagemath-doc
 pkgname=(sagemath-doc sagemath-src)
 pkgver=7.4
-pkgrel=1
+pkgrel=2
 arch=(any)
 url="http://www.sagemath.org"
 license=(GPL)
-makedepends=(sagemath sage-notebook python2-pyzmq python2-pillow python2-docutils ipython2-notebook python2-pkgconfig cython2 python2-sphinx)
+makedepends=(sagemath sage-notebook python2-pyzmq python2-pillow python2-docutils
+             python2-jupyter_client python2-pkgconfig cython2 python2-sphinx thebe)
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/sagemath/sage/archive/$pkgver.tar.gz"
 	package.patch disable-fes.patch docbuild_main.patch is-package-installed.patch 
         ecm-7.patch sagemath-singular4.patch)
@@ -43,6 +44,9 @@
 
 # fix relative imports
   patch -p0 -i ../docbuild_main.patch
+# fix thebe.js link
+  rm src/doc/common/themes/sage/static/thebe.js
+  ln -s /usr/share/thebe/thebe.js src/doc/common/themes/sage/static/thebe.js
 
 # use python2
   sed -e 's|cython %s %s|cython2 %s %s|' -e 's|python setup.py|python2 setup.py|' -i src/sage/misc/cython.py
@@ -65,7 +69,7 @@
 
 package_sagemath-doc() {
   pkgdesc="HTML documentation and inline help for SageMath"
-  depends=(sage-notebook python2-sphinx gap-doc)
+  depends=(sage-notebook python2-sphinx gap-doc thebe)
   conflicts=(sage-mathematics-doc)
   replaces=(sage-mathematics-doc)
 
@@ -87,6 +91,10 @@
 
 # Remove unneeded files
   find html -name '*.py' -exec rm -r {} \;
+
+# fix thebe.js link
+  rm "$pkgdir"/usr/share/doc/sage/common/themes/sage/static/thebe.js
+  ln -s /usr/share/thebe/thebe.js "$pkgdir"/usr/share/doc/sage/common/themes/sage/static/thebe.js
 }
 
 package_sagemath-src() {
@@ -96,5 +104,4 @@
   
   mkdir -p "$pkgdir"/usr/share/sage/source
   cp -r sage-$pkgver/src/{sage,sage_setup} "$pkgdir"/usr/share/sage/source
-  ln -s /usr/share/doc/sage/html "$pkgdir"/usr/share/sage/source/doc
 }



More information about the arch-commits mailing list