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 AC04E1399E6 for ; Fri, 4 Sep 2015 05:46:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A511714385; Fri, 4 Sep 2015 05:46: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 872B2142D1 for ; Fri, 4 Sep 2015 05:46:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB1C9340924 for ; Fri, 4 Sep 2015 05:46:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35B8A18D for ; Fri, 4 Sep 2015 05:46:17 +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: <1441286267.c1ad3a00f0e4717718d4874884a1c75dc6031fc2.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: c1ad3a00f0e4717718d4874884a1c75dc6031fc2 X-VCS-Branch: master Date: Fri, 4 Sep 2015 05:46:17 +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: 76728132-b023-4390-a073-8fe8be80ac21 X-Archives-Hash: 33cedd39729b61909527617699c2f162 commit: c1ad3a00f0e4717718d4874884a1c75dc6031fc2 Author: Sean Vig gmail com> AuthorDate: Thu Sep 3 13:17:47 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Thu Sep 3 13:17:47 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c1ad3a00 dev-python/notebook: Enable building docs dev-python/notebook/ChangeLog | 3 +++ dev-python/notebook/notebook-9999.ebuild | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/dev-python/notebook/ChangeLog b/dev-python/notebook/ChangeLog index d430e4c..c5dc4ba 100644 --- a/dev-python/notebook/ChangeLog +++ b/dev-python/notebook/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 02 Sep 2015; Sean Vig notebook-9999.ebuild: + dev-python/notebook: Enable building docs + 03 Sep 2015; Marius Brehler notebook-9999.ebuild: dev-python/notebook: Re-Fix #478 diff --git a/dev-python/notebook/notebook-9999.ebuild b/dev-python/notebook/notebook-9999.ebuild index 744998b..e5867ef 100644 --- a/dev-python/notebook/notebook-9999.ebuild +++ b/dev-python/notebook/notebook-9999.ebuild @@ -55,9 +55,19 @@ python_prepare_all() { # disable bundled mathjax sed -i 's/^.*MathJax.*$//' bower.json || die sed -i 's/mj(/#mj(/' setupbase.py || die + + # Prevent un-needed download during build + if use doc; then + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die + fi + distutils-r1_python_prepare_all } +python_compile_all() { + use doc && emake -C docs html +} + python_test() { nosetests --with-coverage --cover-package=notebook notebook || die } @@ -68,6 +78,11 @@ python_install() { ln -sf "${EPREFIX}/usr/share/mathjax" "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die } +python_install_all() { + use doc && HTML_DOCS=( docs/build/html/. ) + distutils-r1_python_install_all +} + pkg_preinst() { # remove old mathjax folder if present rm -rf "${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax