[sagenb] 03/03: Update paths to offline threejs

Ximin Luo infinity0 at debian.org
Tue Jun 13 18:44:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository sagenb.

commit c256c695f3aefd5de9e144cbb5b16d81e23b93e6
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue Jun 13 20:40:50 2017 +0200

    Update paths to offline threejs
    
    Requires the corresponding patch in sagemath, already in our git
---
 debian/control                            |  1 +
 debian/patches/debian-threejs-paths.patch | 11 +++++++++++
 debian/patches/series                     |  1 +
 3 files changed, 13 insertions(+)

diff --git a/debian/control b/debian/control
index 576a2b6..41c0075 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,7 @@ Depends: ${python:Depends}, ${misc:Depends},
  libjs-json,
  libjs-mathjax,
  libjs-prettify,
+ libjs-three,
  tinymce
 # Not working, see README.Debian
 #Recommends: jmol-applet
diff --git a/debian/patches/debian-threejs-paths.patch b/debian/patches/debian-threejs-paths.patch
new file mode 100644
index 0000000..53908a2
--- /dev/null
+++ b/debian/patches/debian-threejs-paths.patch
@@ -0,0 +1,11 @@
+--- a/sagenb/flask_version/base.py
++++ b/sagenb/flask_version/base.py
+@@ -43,7 +43,7 @@
+         self.add_static_path('/java/jmol-applet', os.path.join("/usr","share","jmol-applet"))
+         self.add_static_path('/jsmol', os.path.join("/usr","share","jsmol"))
+         self.add_static_path('/j2s', os.path.join("/usr","share","jsmol","j2s"))
+-        self.add_static_path('/threejs', os.path.join(os.environ["SAGE_SHARE"],"threejs"))
++        self.add_static_path('/threejs', os.path.join("/usr", "share", "javascript","three"))
+         import mimetypes
+         mimetypes.add_type('text/plain','.jmol')
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 3490384..2528eba 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ switch-system-jquery-vanderlee-colorpicker.patch
 debian-sage3d-java-paths.patch
 debian-python-paths.patch
 debian-jmol-paths.patch
+debian-threejs-paths.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list