sci-visualization/pythonprop: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Fri, 7 Feb 2020 19:12:46 +0000 (20:12 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Feb 2020 16:46:58 +0000 (17:46 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sci-visualization/pythonprop/pythonprop-0.13.ebuild
sci-visualization/pythonprop/pythonprop-0.18-r2.ebuild [moved from sci-visualization/pythonprop/pythonprop-0.18-r1.ebuild with 80% similarity]

index 854920aa56a8c88ecf8c3c8251757f64a48d7b29..729017cea4fce55bd847c92d9dc1b875fd8da4aa 100644 (file)
@@ -19,11 +19,13 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
        ${PYTHON_DEPS}
-       || (
-               dev-python/matplotlib-python2[gtk2,${PYTHON_USEDEP}]
-               dev-python/matplotlib[gtk2,${PYTHON_USEDEP}]
-       )
-       dev-python/basemap[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               || (
+                       dev-python/matplotlib-python2[gtk2,${PYTHON_MULTI_USEDEP}]
+                       dev-python/matplotlib[gtk2,${PYTHON_MULTI_USEDEP}]
+               )
+       ')
+       dev-python/basemap[${PYTHON_SINGLE_USEDEP}]
        sci-electronics/voacapl
 "
 DEPEND="${RDEPEND}"
similarity index 80%
rename from sci-visualization/pythonprop/pythonprop-0.18-r1.ebuild
rename to sci-visualization/pythonprop/pythonprop-0.18-r2.ebuild
index a5c36e5b53b4d19043dc840cd873da427dab9712..4f8e8ef1e5240fee83b0c4813fb2ca29a0581558 100644 (file)
@@ -19,11 +19,13 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
        ${PYTHON_DEPS}
-       || (
-               dev-python/matplotlib-python2[${PYTHON_USEDEP}]
-               dev-python/matplotlib[${PYTHON_USEDEP}]
-       )
-       dev-python/basemap[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               || (
+                       dev-python/matplotlib-python2[${PYTHON_MULTI_USEDEP}]
+                       dev-python/matplotlib[${PYTHON_MULTI_USEDEP}]
+               )
+       ')
+       dev-python/basemap[${PYTHON_SINGLE_USEDEP}]
        sci-electronics/voacapl
 "
 DEPEND="${RDEPEND}