[arch-commits] Commit in jupyter-notebook/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Wed Jul 18 01:49:14 UTC 2018


    Date: Wednesday, July 18, 2018 @ 01:49:14
  Author: foutrelis
Revision: 361209

archrelease: copy trunk to community-staging-any

Added:
  jupyter-notebook/repos/community-staging-any/
  jupyter-notebook/repos/community-staging-any/PKGBUILD
    (from rev 361208, jupyter-notebook/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: jupyter-notebook/repos/community-staging-any/PKGBUILD (from rev 361208, jupyter-notebook/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-18 01:49:14 UTC (rev 361209)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=jupyter-notebook
+pkgver=5.3.0
+pkgrel=4
+pkgdesc="The language-agnostic HTML notebook application for Project Jupyter"
+arch=('any')
+url="https://github.com/jupyter/notebook"
+license=('BSD')
+depends=('python-setuptools' 'python-jinja' 'python-tornado' 'python-terminado'
+         'python-traitlets' 'jupyter-nbformat' 'python-jupyter_core'
+         'python-jupyter_client' 'mathjax' 'python-send2trash'
+         'jupyter-nbconvert')
+# Much of their official dependency tree appears inverted and circular?
+makedepends=('python-setuptools' 'npm' 'git')
+optdepends=('pandoc: notebook export')
+source=("$pkgname-$pkgver.tgz::https://github.com/jupyter/notebook/archive/$pkgver.tar.gz")
+md5sums=('09e719fc6797511cdfaef9df9fcf63f0')
+
+# todo: report bug that mathjax and nbconvert is no longer optional
+
+build() {
+  cd "$srcdir/notebook-$pkgver"
+
+  # FS45999 disable bundled mathjax
+  sed -i 's/^.*MathJax.*$//' bower.json 
+  #sed -i '/Trim mathjax/,/^                static_data.append/d' setupbase.py
+  sed -i 's/  mj(/  #mj(/' setupbase.py
+
+  # needs node, downloads a lot of stuff
+  python3 setup.py build
+}
+
+package() {
+  cd "$srcdir/notebook-$pkgver"
+
+  # needs node
+  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  # FS45999 use system mathjax
+  ln -s /usr/share/mathjax \
+  "$pkgdir/usr/lib/python3.7/site-packages/notebook/static/components/MathJax"
+
+  install -Dm644 COPYING.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+



More information about the arch-commits mailing list