[med-svn] [python-cobra] 03/05: Use packaged versions of javascript libraries where available

Afif Elghraoui afif-guest at moszumanska.debian.org
Sat Jun 20 21:06:14 UTC 2015


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

afif-guest pushed a commit to branch master
in repository python-cobra.

commit 89c561ed806a29ed6f2af90ec4cb356a37528b98
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Jun 20 13:54:59 2015 -0700

    Use packaged versions of javascript libraries where available
---
 debian/control                 |  5 ++++-
 debian/patches/mathjax.patch   | 17 +++++++++++++++++
 debian/patches/series          |  1 +
 debian/python-cobra-data.links |  2 ++
 4 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index a2fbf95..bbf18c3 100644
--- a/debian/control
+++ b/debian/control
@@ -64,7 +64,10 @@ Description: constraint-based modeling of biological networks (Python 3)
 
 Package: python-cobra-data
 Architecture: all
-Depends: ${misc:Depends}
+Depends: ${misc:Depends},
+	 libjs-mathjax,
+	 libjs-jquery,
+	 libjs-underscore
 Description: constraint-based modeling of biological networks (data)
  COnstraint-Based Reconstruction and Analysis (COBRA) methods are widely
  used for genome-scale modeling of metabolic networks in both prokaryotes
diff --git a/debian/patches/mathjax.patch b/debian/patches/mathjax.patch
new file mode 100644
index 0000000..eac2e21
--- /dev/null
+++ b/debian/patches/mathjax.patch
@@ -0,0 +1,17 @@
+Description: Use local Mathjax.js
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: no
+Last-Update: 2015-06-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- python-cobra.orig/documentation_builder/conf.py
++++ python-cobra/documentation_builder/conf.py
+@@ -115,7 +115,7 @@
+ 
+ # -- Options for HTML output ---------------------------------------------------
+ 
+-mathjax_path = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
++mathjax_path = '/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+ 
+ # The theme to use for HTML and HTML Help pages.  See the documentation for
+ # a list of builtin themes.
diff --git a/debian/patches/series b/debian/patches/series
index 93f6e2e..7d6b773 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 improve-python3-support.patch
+mathjax.patch
diff --git a/debian/python-cobra-data.links b/debian/python-cobra-data.links
new file mode 100644
index 0000000..b419f03
--- /dev/null
+++ b/debian/python-cobra-data.links
@@ -0,0 +1,2 @@
+/usr/share/javascript/jquery/jquery.js /usr/share/doc/python-cobra/html/_static/jquery.js
+/usr/share/javascript/underscore/underscore.js	/usr/share/doc/python-cobra/html/_static/underscore.js

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-cobra.git



More information about the debian-med-commit mailing list