python-jupyter_notebook: update to 4.2.0

This commit is contained in:
Alessio Sergi 2016-04-24 22:49:24 +02:00
parent d413551c8c
commit 88fc1a39f9
1 changed files with 3 additions and 7 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'python-jupyter_notebook'
pkgname=python-jupyter_notebook
version=4.1.0
version=4.2.0
revision=1
noarch=yes
replaces="python-ipython-notebook>=0"
@ -18,13 +18,8 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jupyter/notebook"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/n/notebook/notebook-${version}.tar.gz"
checksum=b597437ba33538221008e21fea71cd01eda9da1515ca3963d7c74e44f4b03d90
checksum=e10c4916c77b48394796b5b1440d61d7b210f9941194048fe20ef88948016d84
pre_build() {
# disable bundled mathjax
sed -i 's/^.*MathJax.*$//' bower.json
sed -i 's/mj(/#mj(/' setupbase.py
}
post_install() {
rm -f ${DESTDIR}/usr/bin/*
for f in jupyter-nbextension jupyter-notebook; do
@ -34,6 +29,7 @@ post_install() {
vlicense COPYING.md LICENSE
# use system mathjax
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/notebook/static/components/MathJax
for pyver in $python_versions; do
ln -sf /usr/share/mathjax \
${DESTDIR}/usr/lib/python${pyver}/site-packages/notebook/static/components/MathJax