dev-python/rootpy: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Sat, 8 Feb 2020 06:30:24 +0000 (07:30 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Feb 2020 16:46:19 +0000 (17:46 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/rootpy/rootpy-1.0.1-r1.ebuild [moved from dev-python/rootpy/rootpy-1.0.1.ebuild with 63% similarity]

similarity index 63%
rename from dev-python/rootpy/rootpy-1.0.1.ebuild
rename to dev-python/rootpy/rootpy-1.0.1-r1.ebuild
index 6146c30b7abf95c983212c50f4eae975d2257fce..f1b3bbd73790a84603fd5f7165998947a0520484 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,15 +19,21 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="examples test"
 
 RDEPEND="
-       sci-physics/root:=[${PYTHON_USEDEP}]
-       dev-python/matplotlib[${PYTHON_USEDEP}]
-       dev-python/pytables[${PYTHON_USEDEP}]
-       dev-python/root_numpy[${PYTHON_USEDEP}]
-       dev-python/termcolor[${PYTHON_USEDEP}]"
+       sci-physics/root:=[${PYTHON_SINGLE_USEDEP}]
+       dev-python/root_numpy[${PYTHON_SINGLE_USEDEP}]
+       $(python_gen_cond_dep '
+               dev-python/matplotlib[${PYTHON_MULTI_USEDEP}]
+               dev-python/pytables[${PYTHON_MULTI_USEDEP}]
+               dev-python/termcolor[${PYTHON_MULTI_USEDEP}]
+       ')"
 
 DEPEND="
-       sci-physics/root[${PYTHON_USEDEP}]
-       test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+       sci-physics/root[${PYTHON_SINGLE_USEDEP}]
+       test? (
+               $(python_gen_cond_dep '
+                       dev-python/nose[${PYTHON_MULTI_USEDEP}]
+               ')
+       )"
 
 # TOFIX: tests go in an infinite loop error
 RESTRICT=test