public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/jupyter_console/
Date: Fri,  4 Sep 2015 05:46:16 +0000 (UTC)	[thread overview]
Message-ID: <1441286208.3da9cc25a3dc17dd40655fc9114c2489b9beb03f.jlec@gentoo> (raw)

commit:     3da9cc25a3dc17dd40655fc9114c2489b9beb03f
Author:     Sean Vig <sean.v.775 <AT> gmail <DOT> com>
AuthorDate: Wed Sep  2 18:25:00 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Sep  3 13:16:48 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=3da9cc25

dev-python/jupyter_console: Add doc use flag

 dev-python/jupyter_console/ChangeLog                |  3 +++
 .../jupyter_console/jupyter_console-9999.ebuild     | 21 ++++++++++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/dev-python/jupyter_console/ChangeLog b/dev-python/jupyter_console/ChangeLog
index f56aa3b..711391f 100644
--- a/dev-python/jupyter_console/ChangeLog
+++ b/dev-python/jupyter_console/ChangeLog
@@ -3,6 +3,9 @@
 # $Id$
 
   02 Sep 2015; Sean Vig <sean.v.775@gmail.com> jupyter_console-9999.ebuild:
+  dev-python/jupyter_console: Add doc use flag
+
+  02 Sep 2015; Sean Vig <sean.v.775@gmail.com> jupyter_console-9999.ebuild:
   dev-python/jupyter_console: Fix testing deps
 
 *jupyter_console-4.0.1 (01 Sep 2015)

diff --git a/dev-python/jupyter_console/jupyter_console-9999.ebuild b/dev-python/jupyter_console/jupyter_console-9999.ebuild
index a2a645f..2c7293f 100644
--- a/dev-python/jupyter_console/jupyter_console-9999.ebuild
+++ b/dev-python/jupyter_console/jupyter_console-9999.ebuild
@@ -20,7 +20,7 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="test"
+IUSE="doc test"
 
 RDEPEND="
 	dev-python/ipython[${PYTHON_USEDEP}]
@@ -28,6 +28,7 @@ RDEPEND="
 	dev-python/jupyter_client[${PYTHON_USEDEP}]
 	"
 DEPEND="${RDEPEND}
+	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
 	test? (
 		$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
 		dev-python/pexpect[${PYTHON_USEDEP}]
@@ -36,6 +37,24 @@ DEPEND="${RDEPEND}
 	)
 	"
 
+python_prepare_all() {
+	# Prevent un-needed download during build
+	if use doc; then
+		sed -e "/^    'sphinx.ext.intersphinx',/d" -i docs/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=jupyter_console jupyter_console || die
 }
+
+python_install_all() {
+	use doc && HTML_DOCS=( docs/_build/html/. )
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2015-09-04  5:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04  5:46 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-01-03 10:31 [gentoo-commits] proj/sci:master commit in: dev-python/jupyter_console/ Marius Brehler
2016-07-27 12:17 Marius Brehler
2015-11-28 17:58 Marius Brehler
2015-10-21 13:44 Justin Lecher
2015-10-12  6:51 Marius Brehler
2015-09-22 10:06 Justin Lecher
2015-09-22  7:22 Justin Lecher
2015-09-09  7:11 Justin Lecher
2015-09-04  5:46 Justin Lecher
2015-09-01 13:11 Justin Lecher
2015-09-01  7:57 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441286208.3da9cc25a3dc17dd40655fc9114c2489b9beb03f.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox