From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8FBD4138334 for ; Mon, 25 Nov 2019 12:35:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A972E0A7F; Mon, 25 Nov 2019 12:35:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8819E0A7F for ; Mon, 25 Nov 2019 12:35:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 364E434D38E for ; Mon, 25 Nov 2019 12:35:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A6DDD8D7 for ; Mon, 25 Nov 2019 12:35:31 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1574685320.c0df39f605f9b776fb2ac1fe06d86a7aca4a6344.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/virtualenv/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/virtualenv/virtualenv-16.7.7.ebuild X-VCS-Directories: dev-python/virtualenv/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c0df39f605f9b776fb2ac1fe06d86a7aca4a6344 X-VCS-Branch: master Date: Mon, 25 Nov 2019 12:35:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 71e240a9-8306-4f26-b1e7-17788342adf1 X-Archives-Hash: 859dd1b8328f7c179546c9d32f3aa26f commit: c0df39f605f9b776fb2ac1fe06d86a7aca4a6344 Author: Michał Górny gentoo org> AuthorDate: Mon Nov 25 12:25:25 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Nov 25 12:35:20 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0df39f6 dev-python/virtualenv: Use distutils_enable_sphinx Signed-off-by: Michał Górny gentoo.org> dev-python/virtualenv/virtualenv-16.7.7.ebuild | 39 ++++---------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/dev-python/virtualenv/virtualenv-16.7.7.ebuild b/dev-python/virtualenv/virtualenv-16.7.7.ebuild index 0c593103eb9..a060296f764 100644 --- a/dev-python/virtualenv/virtualenv-16.7.7.ebuild +++ b/dev-python/virtualenv/virtualenv-16.7.7.ebuild @@ -20,15 +20,10 @@ LICENSE="MIT" #KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" SLOT="0" -IUSE="doc test" +IUSE="test" +RESTRICT="!test? ( test )" BDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}] - doc? ( $(python_gen_any_dep ' - dev-python/sphinx[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] - dev-python/towncrier[${PYTHON_USEDEP}] - ') - ) test? ( >=dev-python/pip-19.3.1-r1[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] @@ -43,9 +38,6 @@ BDEPEND=">=dev-python/setuptools-19.6.2[${PYTHON_USEDEP}] DOCS=( docs/index.rst docs/changes.rst ) -# uncomment if line above is removed -RESTRICT="!test? ( test )" - PATCHES=( "${FILESDIR}/virtualenv-16.7.7-tests.patch" @@ -53,30 +45,9 @@ PATCHES=( "${FILESDIR}/virtualenv-16.7.7-tests-internet.patch" ) -python_check_deps() { - use doc || return 0 - - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && \ - has_version "dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]" && \ - has_version "dev-python/towncrier[${PYTHON_USEDEP}]" -} - -python_compile_all() { - if use doc; then - sed -i -e 's:^intersphinx_mapping:disabled_&:' \ - docs/conf.py || die - - sphinx-build -b html -d docs/_build/doctrees docs \ - docs/_build/html || die - - HTML_DOCS+=( "docs/_build/html/." ) - fi -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all -} +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme \ + dev-python/towncrier python_test() { cp "${S}"/LICENSE.txt "${BUILD_DIR}"/lib || \