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

similarity index 76%
rename from dev-python/root_numpy/root_numpy-4.7.3.ebuild
rename to dev-python/root_numpy/root_numpy-4.7.3-r1.ebuild
index d76b31455628b18048cfe309a77236c32751b995..c5305f4689158a8bf6cae406903e036d15a88db9 100644 (file)
@@ -19,11 +19,16 @@ IUSE="examples test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
-       dev-python/numpy[${PYTHON_USEDEP}]
-       sci-physics/root:=[python,${PYTHON_USEDEP}]"
+       $(python_gen_cond_dep '
+               dev-python/numpy[${PYTHON_MULTI_USEDEP}]
+       ')
+       sci-physics/root:=[python,${PYTHON_SINGLE_USEDEP}]"
 
 DEPEND="${RDEPEND}
-       test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+       test? (
+               $(python_gen_cond_dep '
+                       dev-python/nose[${PYTHON_MULTI_USEDEP}] )
+               ')"
 
 python_test() {
        cd "${BUILD_DIR}" || die