Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/click/
Date: Mon, 25 Jan 2016 08:31:10
Message-Id: 1453709252.bc36914096a67a2449d3a215b42c24e899dc3f2f.jlec@gentoo
1 commit: bc36914096a67a2449d3a215b42c24e899dc3f2f
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 25 08:07:32 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 25 08:07:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc369140
7
8 dev-python/click: Build docs using python2
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=572660
11
12 Package-Manager: portage-2.2.27
13 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
14
15 dev-python/click/click-6.2.ebuild | 8 +++++++-
16 1 file changed, 7 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-python/click/click-6.2.ebuild b/dev-python/click/click-6.2.ebuild
19 index b0aa96c..59f7847 100644
20 --- a/dev-python/click/click-6.2.ebuild
21 +++ b/dev-python/click/click-6.2.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2015 Gentoo Foundation
24 +# Copyright 1999-2016 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 # $Id$
27
28 @@ -17,11 +17,17 @@ SLOT="0"
29 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
30 IUSE="doc examples test"
31
32 +REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
33 +
34 DEPEND="
35 dev-python/setuptools[${PYTHON_USEDEP}]
36 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
37 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
38
39 +pkg_setup() {
40 + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
41 +}
42 +
43 python_prepare_all() {
44 # Prevent un-needed d'loading
45 sed -e "s/, 'sphinx.ext.intersphinx'//" -i docs/conf.py || die