2015-12-02 14:10:40 +01:00
|
|
|
# Template file for 'python-jupyter_notebook'
|
|
|
|
pkgname=python-jupyter_notebook
|
2016-04-24 22:49:24 +02:00
|
|
|
version=4.2.0
|
2015-12-02 14:10:40 +01:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
replaces="python-ipython-notebook>=0"
|
|
|
|
wrksrc="notebook-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
depends="python-Jinja2 python-terminado python-tornado
|
|
|
|
python-ipython_genutils python-traitlets python-jupyter_core
|
|
|
|
python-jupyter_client python-jupyter_nbformat python-jupyter_nbconvert
|
|
|
|
python-ipython_ipykernel mathjax"
|
|
|
|
pycompile_module="notebook"
|
|
|
|
short_desc="Jupyter interactive notebook (Python2)"
|
|
|
|
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"
|
2016-04-24 22:49:24 +02:00
|
|
|
checksum=e10c4916c77b48394796b5b1440d61d7b210f9941194048fe20ef88948016d84
|
2015-12-02 14:10:40 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/bin/*
|
|
|
|
for f in jupyter-nbextension jupyter-notebook; do
|
|
|
|
vbin build-2.7/scripts-2.7/${f}
|
|
|
|
vbin build-3.4/scripts-3.4/${f} ${f}3.4
|
|
|
|
done
|
|
|
|
vlicense COPYING.md LICENSE
|
|
|
|
|
|
|
|
# use system mathjax
|
2016-04-24 22:49:24 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/notebook/static/components/MathJax
|
2015-12-02 14:10:40 +01:00
|
|
|
for pyver in $python_versions; do
|
|
|
|
ln -sf /usr/share/mathjax \
|
|
|
|
${DESTDIR}/usr/lib/python${pyver}/site-packages/notebook/static/components/MathJax
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-jupyter_notebook_package() {
|
|
|
|
noarch=yes
|
|
|
|
replaces="python3.4-ipython-notebook>=0"
|
|
|
|
depends="python3.4-Jinja2 python3.4-terminado python3.4-tornado
|
|
|
|
python3.4-ipython_genutils python3.4-traitlets python3.4-jupyter_core
|
|
|
|
python3.4-jupyter_client python3.4-jupyter_nbformat python3.4-jupyter_nbconvert
|
|
|
|
python3.4-ipython_ipykernel mathjax"
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="notebook"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/jupyter-notebook3.4
|
|
|
|
vmove usr/bin/jupyter-nbextension3.4
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
vlicense COPYING.md LICENSE
|
|
|
|
}
|
|
|
|
}
|