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 4BB8E139694 for ; Sat, 20 May 2017 13:35:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07E4321C190; Sat, 20 May 2017 13:31:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BAC1921C188 for ; Sat, 20 May 2017 13:31:03 +0000 (UTC) Received: from localhost.localdomain (d202-252.icpnet.pl [109.173.202.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 1DE7133FE74; Sat, 20 May 2017 13:31:01 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: python@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 7/7] dev-python/backports-unittest-mock: Use any-of API for Sphinx (example) Date: Sat, 20 May 2017 15:30:44 +0200 Message-Id: <20170520133044.9692-8-mgorny@gentoo.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170520133044.9692-1-mgorny@gentoo.org> References: <20170520133044.9692-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: abd5bbb2-445f-4393-9679-5482ca33313f X-Archives-Hash: 55ae3de4bd00b1c205b5df7ed4c30f5f --- .../backports-unittest-mock/backports-unittest-mock-1.2.1.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-python/backports-unittest-mock/backports-unittest-mock-1.2.1.ebuild b/dev-python/backports-unittest-mock/backports-unittest-mock-1.2.1.ebuild index c3c3de101526..5d053726f18b 100644 --- a/dev-python/backports-unittest-mock/backports-unittest-mock-1.2.1.ebuild +++ b/dev-python/backports-unittest-mock/backports-unittest-mock-1.2.1.ebuild @@ -23,10 +23,10 @@ IUSE="doc test" RDEPEND="dev-python/mock[${PYTHON_USEDEP}]" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] - doc? ( + doc? ( $(python_gen_any_dep ' dev-python/sphinx[${PYTHON_USEDEP}] dev-python/rst-linker[${PYTHON_USEDEP}] - ) + ') ) test? ( ${RDEPEND} >=dev-python/pytest-2.8[${PYTHON_USEDEP}] @@ -36,6 +36,11 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] S="${WORKDIR}/${MY_PN}-${PV}" +python_check_deps() { + has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && + has_version "dev-python/rst-linker[${PYTHON_USEDEP}]" +} + python_compile_all() { if use doc; then cd docs || die -- 2.13.0