sci-physics/yoda: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Fri, 7 Feb 2020 19:11:17 +0000 (20:11 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Feb 2020 16:35:38 +0000 (17:35 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sci-physics/yoda/yoda-1.6.5.ebuild
sci-physics/yoda/yoda-1.7.0-r1.ebuild [moved from sci-physics/yoda/yoda-1.7.0.ebuild with 82% similarity]

index 00d3f8949c2674228af00f31f4f503c610a5e78e..82bf586a70b0e00aabd9a31cdb3d7ca74f472749 100644 (file)
@@ -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} )"
 
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 9f53d934f26ef319573636af8ee3a18eb616382d..a29234715ba0099fc6064e3f46bd29c08dbb249a 100644 (file)
@@ -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} )"