1 |
commit: 8f6f88ad9ef30384b8aabfa1420e0abcaac21dec |
2 |
Author: Sean Vig <sean.v.775 <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Sep 1 13:58:04 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 2 07:32:18 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8f6f88ad |
7 |
|
8 |
dev-python/notebook: Use system mathjax |
9 |
|
10 |
dev-python/notebook/ChangeLog | 3 +++ |
11 |
dev-python/notebook/notebook-9999.ebuild | 16 ++++++++++++++++ |
12 |
2 files changed, 19 insertions(+) |
13 |
|
14 |
diff --git a/dev-python/notebook/ChangeLog b/dev-python/notebook/ChangeLog |
15 |
index de63caf..a3cad10 100644 |
16 |
--- a/dev-python/notebook/ChangeLog |
17 |
+++ b/dev-python/notebook/ChangeLog |
18 |
@@ -7,6 +7,9 @@ |
19 |
01 Sep 2015; Marius Brehler <marbre@××××××××××××××.de> +notebook-4.0.1.ebuild: |
20 |
dev-python/notebook: Bring back 4.0.1 |
21 |
|
22 |
+ 01 Sep 2015; Sean Vig <sean.v.775@×××××.com> notebook-9999.ebuild: |
23 |
+ dev-python/notebook: Use system mathjax |
24 |
+ |
25 |
*notebook-4.0.4 (01 Sep 2015) |
26 |
|
27 |
01 Sep 2015; Marius Brehler <marbre@××××××××××××××.de> +notebook-4.0.4.ebuild, |
28 |
|
29 |
diff --git a/dev-python/notebook/notebook-9999.ebuild b/dev-python/notebook/notebook-9999.ebuild |
30 |
index 7f6336a..5a07e90 100644 |
31 |
--- a/dev-python/notebook/notebook-9999.ebuild |
32 |
+++ b/dev-python/notebook/notebook-9999.ebuild |
33 |
@@ -24,6 +24,7 @@ IUSE="doc test" |
34 |
CDEPEND=" |
35 |
dev-python/setuptools[${PYTHON_USEDEP}]" |
36 |
RDEPEND="${CDEPEND} |
37 |
+ dev-libs/mathjax |
38 |
dev-python/jinja[${PYTHON_USEDEP}] |
39 |
>=dev-python/terminado-0.3.3[${PYTHON_USEDEP}] |
40 |
>=www-servers/tornado-4.0[${PYTHON_USEDEP}] |
41 |
@@ -37,6 +38,7 @@ RDEPEND="${CDEPEND} |
42 |
" |
43 |
DEPEND="${RDEPEND} |
44 |
test? ( |
45 |
+ $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) |
46 |
>=dev-python/nose-0.10.1[${PYTHON_USEDEP}] |
47 |
dev-python/requests[${PYTHON_USEDEP}] |
48 |
dev-python/coverage[${PYTHON_USEDEP}] |
49 |
@@ -46,6 +48,20 @@ DEPEND="${RDEPEND} |
50 |
) |
51 |
" |
52 |
|
53 |
+python_prepare_all() { |
54 |
+ # disable bundled mathjax |
55 |
+ sed -i 's/^.*MathJax.*$//' bower.json || die |
56 |
+ sed -i 's/mj(/#mj(/' setupbase.py || die |
57 |
+ |
58 |
+ distutils-r1_python_prepare_all |
59 |
+} |
60 |
+ |
61 |
python_test() { |
62 |
nosetests --with-coverage --cover-package=notebook notebook || die |
63 |
} |
64 |
+ |
65 |
+python_install() { |
66 |
+ distutils-r1_python_install |
67 |
+ |
68 |
+ ln -sf "${EPREFIX}/usr/share/mathjax" "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die |
69 |
+} |