mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-06-13 19:18:06 -07:00
dev-python/python-sqlparse: Fix doc building
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=572742 Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
@@ -17,8 +17,11 @@ KEYWORDS="~alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux
|
||||
LICENSE="BSD-2"
|
||||
IUSE="doc examples test"
|
||||
|
||||
REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*') ) )"
|
||||
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
||||
@@ -28,6 +31,10 @@ DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
S="${WORKDIR}"/${P#python-}
|
||||
|
||||
pkg_setup() {
|
||||
use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user