dev-python/pypy-bin: Remove USE=doc
authorMichał Górny <mgorny@gentoo.org>
Mon, 8 Jan 2018 19:09:20 +0000 (20:09 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 8 Jan 2018 19:41:19 +0000 (20:41 +0100)
Remove USE=doc to match dev-python/pypy.

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

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

index 8c3b3d419da85fa20ec5a736c8e59bda84fdf95e..ef34c44ba08829a6810b7265990ec09779ad6b33 100644 (file)
@@ -1,10 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 pypy )
-inherit pax-utils python-any-r1 unpacker versionator
+inherit pax-utils python-utils-r1 unpacker versionator
 
 BINHOST="https://dev.gentoo.org/~mgorny/dist/pypy-bin/${PV}"
 CPY_PATCHSET_VERSION="2.7.14-0"
@@ -52,7 +51,7 @@ LICENSE="MIT"
 # pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
 SLOT="0/41"
 KEYWORDS="~amd64 ~x86"
-IUSE="doc gdbm +jit libressl sqlite cpu_flags_x86_sse2 test tk"
+IUSE="gdbm +jit libressl sqlite cpu_flags_x86_sse2 test tk"
 
 RDEPEND="
        app-arch/bzip2:0/1
@@ -73,9 +72,7 @@ RDEPEND="
        !dev-python/pypy:0"
 DEPEND="${RDEPEND}
        app-arch/lzip
-       app-arch/xz-utils
-       doc? ( ${PYTHON_DEPS}
-               dev-python/sphinx )"
+       app-arch/xz-utils"
 
 S=${WORKDIR}/${MY_P}-src
 
@@ -83,12 +80,6 @@ QA_PREBUILT="
        usr/lib*/pypy/pypy-c
        usr/lib*/pypy/libpypy-c.so"
 
-pkg_setup() {
-       if [[ ${MERGE_TYPE} != binary ]]; then
-               use doc && python-any-r1_pkg_setup
-       fi
-}
-
 src_prepare() {
        eapply "${FILESDIR}/4.0.0-gentoo-path.patch"
        eapply "${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
@@ -119,8 +110,6 @@ src_compile() {
 
        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.
@@ -192,9 +181,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