dev-python/python-sqlparse: Fix doc building
authorJustin Lecher <jlec@gentoo.org>
Mon, 25 Jan 2016 08:30:54 +0000 (09:30 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 25 Jan 2016 08:30:54 +0000 (09:30 +0100)
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>
dev-python/python-sqlparse/python-sqlparse-0.1.10.ebuild
dev-python/python-sqlparse/python-sqlparse-0.1.13.ebuild
dev-python/python-sqlparse/python-sqlparse-0.1.14.ebuild
dev-python/python-sqlparse/python-sqlparse-0.1.15.ebuild
dev-python/python-sqlparse/python-sqlparse-0.1.16.ebuild
dev-python/python-sqlparse/python-sqlparse-0.1.18.ebuild

index e9dbe77e0d660b60a577ddc49c6d5e5e60ec32c4..1092ccade96b4e16f3be7c15b5655a38585bbbdd 100644 (file)
@@ -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,7 +17,8 @@ KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
 LICENSE="BSD-2"
 IUSE="test"
 
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
        test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
 DISTUTILS_IN_SOURCE_BUILD=1    # Required for running tests
 
index d43dadaee82657788723a87b9205345ce92bd03a..1991b75d7dd284534f3fab6fbe9b55454f03ff9c 100644 (file)
@@ -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
 }
index 5a3edd7e42fd2d2d6823eab89aad99c1a71a2436..cfc6770b7e254558f8c8e50234a8774b1692a5d5 100644 (file)
@@ -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$
 
@@ -20,8 +20,11 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linu
 LICENSE="BSD-2"
 IUSE="doc 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}]
@@ -31,6 +34,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
 }
index 5a3edd7e42fd2d2d6823eab89aad99c1a71a2436..cfc6770b7e254558f8c8e50234a8774b1692a5d5 100644 (file)
@@ -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$
 
@@ -20,8 +20,11 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linu
 LICENSE="BSD-2"
 IUSE="doc 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}]
@@ -31,6 +34,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
 }
index df6e142f81f87c30009fa27f1f8ca287a83ead0c..6bea092f1f76d6b91e90c5258d2ac9bb6b964d6b 100644 (file)
@@ -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$
 
@@ -20,8 +20,11 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x
 LICENSE="BSD-2"
 IUSE="doc 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}]
@@ -31,6 +34,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
 }
index df6e142f81f87c30009fa27f1f8ca287a83ead0c..6bea092f1f76d6b91e90c5258d2ac9bb6b964d6b 100644 (file)
@@ -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$
 
@@ -20,8 +20,11 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x
 LICENSE="BSD-2"
 IUSE="doc 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}]
@@ -31,6 +34,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
 }