diff options
author | Sean Vig <sean.v.775@gmail.com> | 2015-09-01 08:58:04 -0500 |
---|---|---|
committer | Marius Brehler <marbre@linux.sungazer.de> | 2015-09-02 09:32:18 +0200 |
commit | 8f6f88ad9ef30384b8aabfa1420e0abcaac21dec (patch) | |
tree | ace8dd650c05ce72d23549fbf5bc1b266ff2d1b2 | |
parent | dev-python/notebook: Bring back 4.0.1 (diff) | |
download | sci-8f6f88ad9ef30384b8aabfa1420e0abcaac21dec.tar.gz sci-8f6f88ad9ef30384b8aabfa1420e0abcaac21dec.tar.bz2 sci-8f6f88ad9ef30384b8aabfa1420e0abcaac21dec.zip |
dev-python/notebook: Use system mathjax
-rw-r--r-- | dev-python/notebook/ChangeLog | 3 | ||||
-rw-r--r-- | dev-python/notebook/notebook-9999.ebuild | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/dev-python/notebook/ChangeLog b/dev-python/notebook/ChangeLog index de63caf0f..a3cad1057 100644 --- a/dev-python/notebook/ChangeLog +++ b/dev-python/notebook/ChangeLog @@ -7,6 +7,9 @@ 01 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> +notebook-4.0.1.ebuild: dev-python/notebook: Bring back 4.0.1 + 01 Sep 2015; Sean Vig <sean.v.775@gmail.com> notebook-9999.ebuild: + dev-python/notebook: Use system mathjax + *notebook-4.0.4 (01 Sep 2015) 01 Sep 2015; Marius Brehler <marbre@linux.sungazer.de> +notebook-4.0.4.ebuild, diff --git a/dev-python/notebook/notebook-9999.ebuild b/dev-python/notebook/notebook-9999.ebuild index 7f6336a0a..5a07e9092 100644 --- a/dev-python/notebook/notebook-9999.ebuild +++ b/dev-python/notebook/notebook-9999.ebuild @@ -24,6 +24,7 @@ IUSE="doc test" CDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND="${CDEPEND} + dev-libs/mathjax dev-python/jinja[${PYTHON_USEDEP}] >=dev-python/terminado-0.3.3[${PYTHON_USEDEP}] >=www-servers/tornado-4.0[${PYTHON_USEDEP}] @@ -37,6 +38,7 @@ RDEPEND="${CDEPEND} " DEPEND="${RDEPEND} test? ( + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/coverage[${PYTHON_USEDEP}] @@ -46,6 +48,20 @@ DEPEND="${RDEPEND} ) " +python_prepare_all() { + # disable bundled mathjax + sed -i 's/^.*MathJax.*$//' bower.json || die + sed -i 's/mj(/#mj(/' setupbase.py || die + + distutils-r1_python_prepare_all +} + python_test() { nosetests --with-coverage --cover-package=notebook notebook || die } + +python_install() { + distutils-r1_python_install + + ln -sf "${EPREFIX}/usr/share/mathjax" "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die +} |