www-servers/tornado: Use distutils_enable_sphinx
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Mar 2020 07:00:16 +0000 (08:00 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 18 Mar 2020 07:27:09 +0000 (08:27 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
www-servers/tornado/tornado-4.5.3.ebuild
www-servers/tornado/tornado-5.1-r1.ebuild
www-servers/tornado/tornado-6.0.3.ebuild

index 2daf907e25da18673b02ee3e6f5ce1264deb30df..9de109a2f008dbb572b1171d45631754f692c051 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 s390 ~sh sparc x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples test"
+IUSE="examples test"
 RESTRICT="!test? ( test )"
 
 CDEPEND="
@@ -36,10 +36,6 @@ CDEPEND="
 "
 DEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
-       doc? (
-               dev-python/sphinx[${PYTHON_USEDEP}]
-               dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
-       )
        test? (
                ${CDEPEND}
                dev-python/mock[${PYTHON_USEDEP}]
@@ -47,21 +43,19 @@ DEPEND="
 "
 RDEPEND="${CDEPEND}"
 
+distutils_enable_sphinx docs \
+       dev-python/sphinx_rtd_theme
+
 # doc without intersphinx does not build (asyncio error)
 #PATCHES=(
 #      "${FILESDIR}"/4.5.1-drop-intersphinx.patch
 #)
 
-python_compile_all() {
-       use doc && emake -C docs sphinx
-}
-
 python_test() {
        "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
 }
 
 python_install_all() {
-       use doc && local HTML_DOCS=( docs/build/html/. )
        if use examples; then
                insinto /usr/share/doc/${PF}/examples
                doins -r demos/.
index 11bf422e43d50369683d5b399c3e66549d4be60a..d2edc90b33310fbf2f226b8c7b73c4042e65c953 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples test"
+IUSE="examples test"
 RESTRICT="!test? ( test )"
 
 CDEPEND="
@@ -30,10 +30,6 @@ CDEPEND="
 "
 DEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
-       doc? (
-               dev-python/sphinx[${PYTHON_USEDEP}]
-               dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
-       )
        test? (
                ${CDEPEND}
                dev-python/mock[${PYTHON_USEDEP}]
@@ -41,21 +37,19 @@ DEPEND="
 "
 RDEPEND="${CDEPEND}"
 
+distutils_enable_sphinx docs \
+       dev-python/sphinx_rtd_theme
+
 # doc without intersphinx does not build (asyncio error)
 #PATCHES=(
 #      "${FILESDIR}"/4.5.1-drop-intersphinx.patch
 #)
 
-python_compile_all() {
-       use doc && emake -C docs sphinx
-}
-
 python_test() {
        "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
 }
 
 python_install_all() {
-       use doc && local HTML_DOCS=( docs/build/html/. )
        if use examples; then
                insinto /usr/share/doc/${PF}/examples
                doins -r demos/.
index 6f6d43e6709591215f5f9b3263c4df13ffadc937..154b14a5124f39c915845fbbb02e2d9083ba796b 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples test"
+IUSE="examples test"
 RESTRICT="!test? ( test )"
 
 CDEPEND="
@@ -24,10 +24,6 @@ CDEPEND="
 "
 DEPEND="
        dev-python/setuptools[${PYTHON_USEDEP}]
-       doc? (
-               dev-python/sphinx[${PYTHON_USEDEP}]
-               dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
-       )
        test? (
                ${CDEPEND}
                dev-python/mock[${PYTHON_USEDEP}]
@@ -35,21 +31,19 @@ DEPEND="
 "
 RDEPEND="${CDEPEND}"
 
+distutils_enable_sphinx docs \
+       dev-python/sphinx_rtd_theme
+
 # doc without intersphinx does not build (asyncio error)
 #PATCHES=(
 #      "${FILESDIR}"/4.5.1-drop-intersphinx.patch
 #)
 
-python_compile_all() {
-       use doc && emake -C docs sphinx
-}
-
 python_test() {
        "${PYTHON}" -m tornado.test.runtests || die "tests failed under ${EPYTHON}"
 }
 
 python_install_all() {
-       use doc && local HTML_DOCS=( docs/build/html/. )
        if use examples; then
                insinto /usr/share/doc/${PF}/examples
                doins -r demos/.