From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D2F491399D4 for ; Wed, 2 Sep 2015 07:59:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 74CAC1433E; Wed, 2 Sep 2015 07:59:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1B20142ED for ; Wed, 2 Sep 2015 07:59:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1ABA340768 for ; Wed, 2 Sep 2015 07:59:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99850164 for ; Wed, 2 Sep 2015 07:59:15 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1441179138.8f6f88ad9ef30384b8aabfa1420e0abcaac21dec.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/notebook/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/notebook/ChangeLog dev-python/notebook/notebook-9999.ebuild X-VCS-Directories: dev-python/notebook/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 8f6f88ad9ef30384b8aabfa1420e0abcaac21dec X-VCS-Branch: master Date: Wed, 2 Sep 2015 07:59:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 64fe94a4-9508-4783-b0a9-6cb6207042e9 X-Archives-Hash: 13cced65266bc6711cae753e6cfd688a commit: 8f6f88ad9ef30384b8aabfa1420e0abcaac21dec Author: Sean Vig gmail com> AuthorDate: Tue Sep 1 13:58:04 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Sep 2 07:32:18 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8f6f88ad dev-python/notebook: Use system mathjax dev-python/notebook/ChangeLog | 3 +++ dev-python/notebook/notebook-9999.ebuild | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/dev-python/notebook/ChangeLog b/dev-python/notebook/ChangeLog index de63caf..a3cad10 100644 --- a/dev-python/notebook/ChangeLog +++ b/dev-python/notebook/ChangeLog @@ -7,6 +7,9 @@ 01 Sep 2015; Marius Brehler +notebook-4.0.1.ebuild: dev-python/notebook: Bring back 4.0.1 + 01 Sep 2015; Sean Vig notebook-9999.ebuild: + dev-python/notebook: Use system mathjax + *notebook-4.0.4 (01 Sep 2015) 01 Sep 2015; Marius Brehler +notebook-4.0.4.ebuild, diff --git a/dev-python/notebook/notebook-9999.ebuild b/dev-python/notebook/notebook-9999.ebuild index 7f6336a..5a07e90 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 +}