Commit 26c7360a authored by Andreas Tille's avatar Andreas Tille

Replace use-local-mathjax quilt patch by patching installed files using sed to...

Replace use-local-mathjax quilt patch by patching installed files using sed to enable higher flexibility.
parent 0cb8500a
......@@ -7,6 +7,8 @@ r-cran-bayesfactor (0.9.12-4-1) UNRELEASED; urgency=medium
* Point Vcs fields to salsa.debian.org
* dh-update-R to update Build-Depends
* Standards-Version: 4.1.4
* Replace use-local-mathjax quilt patch by patching installed files using
sed to enable higher flexibility
-- Andreas Tille <tille@debian.org> Tue, 08 May 2018 09:48:07 +0200
......
use-local-mathjax
avoid_privacy_breach.patch
From: Jonathon Love <jon@thon.cc>
Description: MathJax <script>'s are now loaded locally, not from remote
Fixes privacy-breach-uses-embedded-file lintian error
Author: Jonathon Love <jon@thon.cc>
Index: r-cran-bayesfactor/inst/doc/compare_lme4.html
===================================================================
--- r-cran-bayesfactor.orig/inst/doc/compare_lme4.html
+++ r-cran-bayesfactor/inst/doc/compare_lme4.html
@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
</script>
<!-- MathJax scripts -->
-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
</script>
Index: r-cran-bayesfactor/inst/doc/manual.html
===================================================================
--- r-cran-bayesfactor.orig/inst/doc/manual.html
+++ r-cran-bayesfactor/inst/doc/manual.html
@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
</script>
<!-- MathJax scripts -->
-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
</script>
Index: r-cran-bayesfactor/inst/doc/odds_probs.html
===================================================================
--- r-cran-bayesfactor.orig/inst/doc/odds_probs.html
+++ r-cran-bayesfactor/inst/doc/odds_probs.html
@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
</script>
<!-- MathJax scripts -->
-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
</script>
Index: r-cran-bayesfactor/inst/doc/priors.html
===================================================================
--- r-cran-bayesfactor.orig/inst/doc/priors.html
+++ r-cran-bayesfactor/inst/doc/priors.html
@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
</script>
<!-- MathJax scripts -->
-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
+<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
</script>
......@@ -2,3 +2,11 @@
%:
dh $@ --buildsystem R
override_dh_installdocs:
dh_installdocs
# instead of fixing MathJax use by patch (use-local-mathjax) patch files using by sed after installation
# this prevents the need to adapt the patch when upstream changes the files
for html in `find debian -name "*.html"` ; do \
sed -i 's#\(<script type="text/javascript" src="\)https://cdn\..*/mathjax/.*/MathJax.js\(?config=TeX.*L">\)#\1file:///usr/share/javascript/mathjax/MathJax.js\2#' $${html} ; \
done
# This R package has a native version number ending in "-1"
r-cran-bayesfactor source: build-depends-on-1-revision build-depends: r-cran-matrix (>= 1.1-1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment