sys-apps/pkgcore: Enable py3.8
authorMichał Górny <mgorny@gentoo.org>
Wed, 20 Nov 2019 12:57:14 +0000 (13:57 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 20 Nov 2019 13:00:44 +0000 (14:00 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-apps/pkgcore/pkgcore-9999.ebuild

index 670df92a2cf7033982b648e23fbc6d50afbbca3b..f4d238d1646086a74b01af96a1a016fbbedc59a4 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7,8} )
 DISTUTILS_IN_SOURCE_BUILD=1
 inherit distutils-r1
 
@@ -30,10 +30,15 @@ else
 fi
 DEPEND="${RDEPEND}
        dev-python/setuptools[${PYTHON_USEDEP}]
-       doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+       doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )
        test? ( dev-python/pytest[${PYTHON_USEDEP}] )
 "
 
+python_check_deps() {
+       use doc || return 0
+       has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
+}
+
 python_compile_all() {
        local esetup_args=( $(usex doc "--enable-html-docs" "") )
        # only build man pages for live ebuilds if doc USE flag is enabled