From 931af7747167c447b23b0e83f2f377b010a80fc6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 7 Feb 2020 20:11:17 +0100 Subject: [PATCH] sci-physics/yoda: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sci-physics/yoda/yoda-1.6.5.ebuild | 10 +++++++--- .../yoda/{yoda-1.7.0.ebuild => yoda-1.7.0-r1.ebuild} | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) rename sci-physics/yoda/{yoda-1.7.0.ebuild => yoda-1.7.0-r1.ebuild} (82%) diff --git a/sci-physics/yoda/yoda-1.6.5.ebuild b/sci-physics/yoda/yoda-1.6.5.ebuild index 00d3f8949c26..82bf586a70b0 100644 --- a/sci-physics/yoda/yoda-1.6.5.ebuild +++ b/sci-physics/yoda/yoda-1.6.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -20,9 +20,13 @@ IUSE="python root static-libs" RDEPEND=" dev-libs/boost:= python? ( ${PYTHON_DEPS} ) - root? ( sci-physics/root:=[python=,${PYTHON_USEDEP}] )" + root? ( sci-physics/root:=[python=,${PYTHON_SINGLE_USEDEP}] )" DEPEND="${RDEPEND} - python? ( dev-python/cython[${PYTHON_USEDEP}] )" + python? ( + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_MULTI_USEDEP}] + ') + )" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" diff --git a/sci-physics/yoda/yoda-1.7.0.ebuild b/sci-physics/yoda/yoda-1.7.0-r1.ebuild similarity index 82% rename from sci-physics/yoda/yoda-1.7.0.ebuild rename to sci-physics/yoda/yoda-1.7.0-r1.ebuild index 9f53d934f26e..a29234715ba0 100644 --- a/sci-physics/yoda/yoda-1.7.0.ebuild +++ b/sci-physics/yoda/yoda-1.7.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -19,9 +19,13 @@ IUSE="python root static-libs" RDEPEND=" python? ( ${PYTHON_DEPS} ) - root? ( sci-physics/root:=[python=,${PYTHON_USEDEP}] )" + root? ( sci-physics/root:=[python=,${PYTHON_SINGLE_USEDEP}] )" DEPEND="${RDEPEND} - python? ( dev-python/cython[${PYTHON_USEDEP}] )" + python? ( + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_MULTI_USEDEP}] + ') + )" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -- 2.26.2