[arch-commits] Commit in sage-notebook/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Mar 1 17:37:39 UTC 2015
Date: Sunday, March 1, 2015 @ 18:37:39
Author: arojas
Revision: 128502
Switch to system MathJax
Modified:
sage-notebook/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-03-01 15:51:19 UTC (rev 128501)
+++ PKGBUILD 2015-03-01 17:37:39 UTC (rev 128502)
@@ -4,14 +4,15 @@
pkgname=sage-notebook
pkgver=0.11.4
-pkgrel=1
+pkgrel=2
pkgdesc='Browser-based notebook interface for Sage'
-arch=('any')
+arch=(any)
url='http://www.sagemath.org'
-license=('GPL3')
-depends=('sage-mathematics' 'python2-twisted' 'python2-flask-oldsessions' 'python2-flask-openid' 'python2-flask-autoindex' 'python2-flask-babel' 'python2-flask-silk' 'python2-webassets')
+license=(GPL3)
+depends=(sage-mathematics python2-twisted python2-flask-oldsessions python2-flask-openid python2-flask-autoindex python2-flask-babel
+python2-webassets mathjax)
optdepends=('python2-pyopenssl: to use the notebook in secure mode')
-makedepends=('gendesk')
+makedepends=(gendesk)
source=("https://github.com/sagemath/sagenb/archive/$pkgver.tar.gz" 'sage.service' 'jmol.patch')
install=$pkgname.install
md5sums=('e8e0495d3668735c4ec2abc157c17f6b'
@@ -56,6 +57,10 @@
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/${pkgname}/COPYING
+# Use system mathjax
+ rm -r "$pkgdir"/usr/lib/python2.7/site-packages/sagenb/data/mathjax
+ ln -s /usr/share/mathjax "$pkgdir"/usr/lib/python2.7/site-packages/sagenb/data/mathjax
+
# install a systemd user unit
install -Dm644 "${srcdir}/sage.service" "$pkgdir/usr/lib/systemd/user/sage.service"
# install *.desktop and icon files
@@ -63,3 +68,4 @@
install -Dm644 "$pkgdir/usr/lib/python2.7/site-packages/sagenb/data/sage/images/icon48x48.png" \
"$pkgdir/usr/share/pixmaps/sage-notebook.png"
}
+
More information about the arch-commits
mailing list