dev-python/pypy: Remove half-broken USE=doc
authorMichał Górny <mgorny@gentoo.org>
Mon, 8 Jan 2018 19:07:16 +0000 (20:07 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 8 Jan 2018 19:41:18 +0000 (20:41 +0100)
The doc building code is currently broken as it is subject to Sphinx
version mismatch, and given that we would need separate logic to select
interpreter for the PyPy build, and for the sphinx call, it's better
to remove the doc building altogether and possible reintroduce it
as a separate package in the future.

Closes: https://bugs.gentoo.org/643046

dev-python/pypy/pypy-5.10.0.ebuild
dev-python/pypy/pypy-9999.ebuild

index 7cfed8fcca3b4fdaee0df32743420339f1399458..286b7be69e1d1efa0453de0ff8f9a951285b40f3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,7 +19,7 @@ LICENSE="MIT"
 # pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
 SLOT="0/41"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="bzip2 doc gdbm +jit libressl low-memory ncurses sandbox sqlite cpu_flags_x86_sse2 test tk"
+IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite cpu_flags_x86_sse2 test tk"
 
 RDEPEND=">=sys-libs/zlib-1.1.3:0=
        virtual/libffi:0=
@@ -39,7 +39,6 @@ RDEPEND=">=sys-libs/zlib-1.1.3:0=
 # don't enforce the dep on pypy with USE=low-memory since it's going
 # to cause either collisions or circular dep on itself
 DEPEND="${RDEPEND}
-       doc? ( dev-python/sphinx )
        !low-memory? (
                || (
                        dev-python/pypy
@@ -188,8 +187,6 @@ src_compile() {
        cp -p "${T}"/usession*-0/testing_1/{pypy-c,libpypy-c.so} . || die
        pax-mark m pypy-c libpypy-c.so
 
-       use doc && emake -C pypy/doc html
-
        einfo "Generating caches and CFFI modules ..."
 
        # Generate Grammar and PatternGrammar pickles.
@@ -262,9 +259,6 @@ src_install() {
                        "${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
        fi
 
-       # Install docs
-       use doc && dodoc -r pypy/doc/_build/html
-
        local -x PYTHON=${ED%/}${dest}/pypy-c
        # we can't use eclass function since PyPy is dumb and always gives
        # paths relative to the interpreter
index fecf7b18d4e4eba4341dd4482bc049cff8b085f3..c0bc0a26454bd56568e7de46e5e97552ab7d8ac2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,7 +20,7 @@ LICENSE="MIT"
 # pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
 SLOT="0/41"
 KEYWORDS=""
-IUSE="bzip2 doc gdbm +jit libressl low-memory ncurses sandbox sqlite cpu_flags_x86_sse2 test tk"
+IUSE="bzip2 gdbm +jit libressl low-memory ncurses sandbox sqlite cpu_flags_x86_sse2 test tk"
 
 RDEPEND=">=sys-libs/zlib-1.1.3:0=
        virtual/libffi:0=
@@ -40,7 +40,6 @@ RDEPEND=">=sys-libs/zlib-1.1.3:0=
 # don't enforce the dep on pypy with USE=low-memory since it's going
 # to cause either collisions or circular dep on itself
 DEPEND="${RDEPEND}
-       doc? ( dev-python/sphinx )
        !low-memory? (
                || (
                        dev-python/pypy
@@ -194,8 +193,6 @@ src_compile() {
        cp -p "${T}"/usession*-0/testing_1/{pypy-c,libpypy-c.so} . || die
        pax-mark m pypy-c libpypy-c.so
 
-       use doc && emake -C pypy/doc html
-
        einfo "Generating caches and CFFI modules ..."
 
        # Generate Grammar and PatternGrammar pickles.
@@ -268,9 +265,6 @@ src_install() {
                        "${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
        fi
 
-       # Install docs
-       use doc && dodoc -r pypy/doc/_build/html
-
        local -x PYTHON=${ED%/}${dest}/pypy-c
        # we can't use eclass function since PyPy is dumb and always gives
        # paths relative to the interpreter