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 1373A1399E6 for ; Fri, 4 Sep 2015 05:46:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04F3614275; Fri, 4 Sep 2015 05:46:22 +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 9E11B14319 for ; Fri, 4 Sep 2015 05:46: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 EB56734092D 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 4760A18E 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: <1441286279.e3c4765d92c87b9a647789b10e3177cd9e0e18d6.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/qtconsole/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/qtconsole/ChangeLog dev-python/qtconsole/qtconsole-9999.ebuild X-VCS-Directories: dev-python/qtconsole/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: e3c4765d92c87b9a647789b10e3177cd9e0e18d6 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: 6f7e18aa-5f7c-423f-b9ca-5dd83dedc5cb X-Archives-Hash: 3720c4fe4f0bd60a65fec3d4ac4d3e98 commit: e3c4765d92c87b9a647789b10e3177cd9e0e18d6 Author: Sean Vig gmail com> AuthorDate: Wed Sep 2 18:46:23 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Thu Sep 3 13:17:59 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=e3c4765d dev-python/qtconsole: Add doc use flag dev-python/qtconsole/ChangeLog | 3 +++ dev-python/qtconsole/qtconsole-9999.ebuild | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/dev-python/qtconsole/ChangeLog b/dev-python/qtconsole/ChangeLog index abe4e47..c08d5b9 100644 --- a/dev-python/qtconsole/ChangeLog +++ b/dev-python/qtconsole/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 02 Sep 2015; Sean Vig qtconsole-9999.ebuild: + dev-python/qtconsole: Add doc use flag + 25 Aug 2015; Marius Brehler qtconsole-9999.ebuild: dev-python/qtconsole: Take over DEPEND from ipython diff --git a/dev-python/qtconsole/qtconsole-9999.ebuild b/dev-python/qtconsole/qtconsole-9999.ebuild index 071d25f..468688e 100644 --- a/dev-python/qtconsole/qtconsole-9999.ebuild +++ b/dev-python/qtconsole/qtconsole-9999.ebuild @@ -20,13 +20,14 @@ fi LICENSE="BSD" SLOT="0" -IUSE="test" +IUSE="doc test" RDEPEND=" dev-python/ipykernel[${PYTHON_USEDEP}] dev-python/jupyter_client[${PYTHON_USEDEP}] " DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( >=dev-python/nose-0.10.1[${PYTHON_USEDEP}] ) @@ -40,6 +41,24 @@ DEPEND="${RDEPEND} " PDEPEND="dev-python/ipython[${PYTHON_USEDEP}]" +python_prepare_all() { + # 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 qtconsole qtconsole || die } + +python_install_all() { + use doc && HTML_DOCS=( docs/build/html/. ) + distutils-r1_python_install_all +}