From: Zac Medico Date: Mon, 3 Feb 2020 06:27:03 +0000 (-0800) Subject: sys-apps/portage: replace epydoc with sphinx-apidoc X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=f5b2eb0496d133a9a4bc507f0700f0e68a63dae3;p=gentoo.git sys-apps/portage: replace epydoc with sphinx-apidoc Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Zac Medico --- diff --git a/sys-apps/portage/metadata.xml b/sys-apps/portage/metadata.xml index 5d99599f6780..bf8c5a54f96a 100644 --- a/sys-apps/portage/metadata.xml +++ b/sys-apps/portage/metadata.xml @@ -10,7 +10,8 @@ dev-portage@gentoo.org - Build html API documentation with epydoc. + Build html API documentation with sphinx-apidoc. + Build html API documentation with epydoc (deprecated). Enable features required for Gentoo ebuild development. Use inter-process communication between portage and running ebuilds. diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild index e157a1cc9fab..58aa5a833ab5 100644 --- a/sys-apps/portage/portage-9999.ebuild +++ b/sys-apps/portage/portage-9999.ebuild @@ -19,18 +19,18 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage" LICENSE="GPL-2" KEYWORDS="" SLOT="0" -IUSE="build doc epydoc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" +IUSE="apidoc build doc gentoo-dev +ipc +native-extensions +rsync-verify selinux xattr" DEPEND="!build? ( $(python_gen_impl_dep 'ssl(+)') ) >=app-arch/tar-1.27 dev-lang/python-exec:2 >=sys-apps/sed-4.0.5 sys-devel/patch doc? ( app-text/xmlto ~app-text/docbook-xml-dtd-4.4 ) - epydoc? ( - $(python_gen_cond_dep ' - >=dev-python/epydoc-2.0[${PYTHON_USEDEP}] - ' 'python2*') + apidoc? ( + dev-python/sphinx + dev-python/sphinx-epytext )" + # Require sandbox-2.2 for bug #288863. # For xattr, we can spawn getfattr and setfattr from sys-apps/attr, but that's # quite slow, so it's not considered in the dependencies as an alternative to @@ -76,8 +76,6 @@ PDEPEND=" # coreutils-6.4 rdep is for date format in emerge-webrsync #164532 # NOTE: FEATURES=installsources requires debugedit and rsync -REQUIRED_USE="epydoc? ( $(python_gen_useflags 'python2*') )" - SRC_ARCHIVES="https://dev.gentoo.org/~dolsen/releases/portage" prefix_src_archives() { @@ -98,10 +96,6 @@ pkg_pretend() { check_extra_config } -pkg_setup() { - use epydoc && DISTUTILS_ALL_SUBPHASE_IMPLS=( python2.7 ) -} - python_prepare_all() { distutils-r1_python_prepare_all @@ -183,7 +177,7 @@ python_prepare_all() { python_compile_all() { local targets=() use doc && targets+=( docbook ) - use epydoc && targets+=( epydoc ) + use apidoc && targets+=( apidoc ) if [[ ${targets[@]} ]]; then esetup.py "${targets[@]}" @@ -216,8 +210,8 @@ python_install_all() { install_docbook --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" ) - use epydoc && targets+=( - install_epydoc + use apidoc && targets+=( + install_apidoc --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" )