[DRE-commits] [mdpress] 02/02: use system libjs-mathjax library
Cédric Boutillier
boutil at alioth.debian.org
Wed Aug 7 15:03:32 UTC 2013
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository mdpress.
commit c22e92b5d0609aec5e30e79f8352c96116a3f062
Author: Cédric Boutillier <boutil at debian.org>
Date: Wed Aug 7 16:36:03 2013 +0200
use system libjs-mathjax library
---
debian/control | 2 +-
debian/patches/series | 1 +
debian/patches/use_system_mathjax.patch | 16 ++++++++++++++++
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index f1582d3..883a47c 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,7 @@ XS-Ruby-Versions: all
Package: mdpress
Architecture: all
XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-redcarpet, ruby-trollop, libjs-highlight, libjs-impress
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-redcarpet, ruby-trollop, libjs-highlight, libjs-impress, libjs-mathjax
Recommends: fonts-lato
Description: creation of Impress.js slideshows with Markdown
mdpress is a commandline tool that converts Markdown files to
diff --git a/debian/patches/series b/debian/patches/series
index d9b0501..07d8943 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ remove_rubygems.patch
replace_launchy.patch
change_basedir.patch
copy_system_js_libs.patch
+use_system_mathjax.patch
diff --git a/debian/patches/use_system_mathjax.patch b/debian/patches/use_system_mathjax.patch
new file mode 100644
index 0000000..e49d64c
--- /dev/null
+++ b/debian/patches/use_system_mathjax.patch
@@ -0,0 +1,16 @@
+Description: use system MathJax library instead of cdn.mathjax.org
+ so that we do not rely on distant services
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2013-08-07
+
+--- a/lib/impress_renderer.rb
++++ b/lib/impress_renderer.rb
+@@ -37,7 +37,7 @@
+ MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
+ </script>
+ <script type="text/javascript"
+- src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++ src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+ </script>
+ }
+ end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/mdpress.git
More information about the Pkg-ruby-extras-commits
mailing list