[pdal] 09/14: Use libjs-mathjax instead of online copy.

Bas Couwenberg sebastic at debian.org
Sat Aug 27 13:10:03 UTC 2016


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

sebastic pushed a commit to branch master
in repository pdal.

commit 452be8a4bce4b10aed8bea03062b96a185b00e6f
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Aug 27 13:20:21 2016 +0200

    Use libjs-mathjax instead of online copy.
---
 debian/changelog                         |  1 +
 debian/control                           |  4 +++-
 debian/patches/series                    |  1 +
 debian/patches/use-mathjax-package.patch | 15 +++++++++++++++
 debian/rules                             |  2 +-
 5 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f167c83..c862744 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ pdal (1.3.0~rc1-1) UNRELEASED; urgency=medium
   * Append HDF5 include path for H5Cpp.h.
   * Add patch to disable sphinxcontrib.bibtex extension, not packaged.
   * Rename library packages for SONAME bump.
+  * Use libjs-mathjax instead of online copy.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 27 Aug 2016 10:20:18 +0200
 
diff --git a/debian/control b/debian/control
index db05a62..30fa31f 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Build-Depends: debhelper (>= 9),
                libgeos++-dev,
                libgeotiff-dev,
                libhdf5-serial-dev,
+               libjs-mathjax,
                libjsoncpp-dev,
                libpq-dev,
                libproj-dev,
@@ -67,7 +68,8 @@ Description: Point Data Abstraction Library
 Package: pdal-doc
 Architecture: all
 Section: doc
-Depends: ${sphinxdoc:Depends},
+Depends: libjs-mathjax,
+         ${sphinxdoc:Depends},
          ${misc:Depends}
 Suggests: libpdal-dev,
           pdal
diff --git a/debian/patches/series b/debian/patches/series
index c9115d5..080f495 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 privacy-breach.patch
 disable-sphinxcontrib-bibtex.patch
+use-mathjax-package.patch
diff --git a/debian/patches/use-mathjax-package.patch b/debian/patches/use-mathjax-package.patch
new file mode 100644
index 0000000..e23cbcb
--- /dev/null
+++ b/debian/patches/use-mathjax-package.patch
@@ -0,0 +1,15 @@
+Description: Use mathjax package (libjs-mathjax).
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -37,6 +37,8 @@ extensions = ['breathe', 'sphinx.ext.aut
+               'sphinx.ext.mathjax', 'sphinx.ext.intersphinx']
+ 
+ 
++mathjax_path = 'mathjax/MathJax.js?config=tex-ams-mml_htmlormml'
++
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
+ 
diff --git a/debian/rules b/debian/rules
index 65c6585..66a537b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -56,7 +56,7 @@ override_dh_auto_build:
 
 	dh_auto_build
 
-	sphinx-build doc/ doc/html/
+	sphinx-build doc/ doc/html/ && ln -s /usr/share/javascript/mathjax doc/html/_static/
 
 override_dh_auto_test:
 	# Exclude tests:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pdal.git



More information about the Pkg-grass-devel mailing list