From 6aea2b50bb7757398391d88db98df95ede6446f9 Mon Sep 17 00:00:00 2001
From: Sebastian Kreisel <sebastian.kreisel@nexedi.com>
Date: Thu, 27 Oct 2016 17:39:46 +0200
Subject: [PATCH] mod buildout

---
 component/jupyter-renderjs/buildout.cfg | 31 +++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 component/jupyter-renderjs/buildout.cfg

diff --git a/component/jupyter-renderjs/buildout.cfg b/component/jupyter-renderjs/buildout.cfg
new file mode 100644
index 000000000..e55d4e495
--- /dev/null
+++ b/component/jupyter-renderjs/buildout.cfg
@@ -0,0 +1,31 @@
+[buildout]
+extends =
+  ../jupyter-pip/buildout.cfg
+parts =
+  renderjs_nbextension
+
+
+# renderjs_nbextension installed from latest git version
+[renderjs_nbextension]
+recipe = zc.recipe.egg:develop
+egg = renderjs_nbextension
+setup = ${renderjs_nbextension-submoduleinit:location}/renderjs_nbextension
+setup-eggs = ${jupyter-pip:egg}
+
+
+[renderjs_nbextension-repository]
+recipe  = slapos.recipe.build:gitclone
+repository = https://lab.nexedi.com/Kreisel/renderjs_extension.git
+# dir is pretty name as top-level -dev recipe
+location = ${buildout:parts-directory}/renderjs_nbextension
+git-executable = /sbin/git
+
+
+# TODO add `git clone --recursive` to slapos.recipe.build:gitclone
+#      and this way merge this -submoduleinit into -repository part
+[renderjs_nbextension-submoduleinit]
+recipe = plone.recipe.command
+command = cd "${renderjs_nbextension-repository:location}" && /sbin/git submodule update --init
+stop-on-error = true
+# propagate location of main repo
+location= ${renderjs_nbextension-repository:location}
-- 
2.30.9