sci-chemistry/relax: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Fri, 7 Feb 2020 18:01:01 +0000 (19:01 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Feb 2020 16:35:20 +0000 (17:35 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sci-chemistry/relax/relax-4.0.0-r4.ebuild [moved from sci-chemistry/relax/relax-4.0.0-r3.ebuild with 66% similarity]

similarity index 66%
rename from sci-chemistry/relax/relax-4.0.0-r3.ebuild
rename to sci-chemistry/relax/relax-4.0.0-r4.ebuild
index 28b0f5d9da67b6144b15f3dacf6f241e241f0fdd..ba03dbad845432f23b563d2ce0d8a31f46a116d1 100644 (file)
@@ -23,25 +23,27 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
        ${PYTHON_DEPS}
-       dev-python/Numdifftools[${PYTHON_USEDEP}]
-       || (
-               dev-python/matplotlib-python2[${PYTHON_USEDEP}]
-               dev-python/matplotlib[${PYTHON_USEDEP}]
-       )
-       || (
-               dev-python/numpy-python2[${PYTHON_USEDEP}]
-               dev-python/numpy[${PYTHON_USEDEP}]
-       )
-       dev-python/wxpython:${WX_GTK_VER}[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep "
+               dev-python/Numdifftools[\${PYTHON_MULTI_USEDEP}]
+               || (
+                       dev-python/matplotlib-python2[\${PYTHON_MULTI_USEDEP}]
+                       dev-python/matplotlib[\${PYTHON_MULTI_USEDEP}]
+               )
+               || (
+                       dev-python/numpy-python2[\${PYTHON_MULTI_USEDEP}]
+                       dev-python/numpy[\${PYTHON_MULTI_USEDEP}]
+               )
+               dev-python/wxpython:${WX_GTK_VER}[\${PYTHON_MULTI_USEDEP}]
+               sci-chemistry/pymol[\${PYTHON_MULTI_USEDEP}]
+               >=sci-libs/bmrblib-1.0.3[\${PYTHON_MULTI_USEDEP}]
+               >=sci-libs/minfx-1.0.11[\${PYTHON_MULTI_USEDEP}]
+               || (
+                       sci-libs/scipy-python2[\${PYTHON_MULTI_USEDEP}]
+                       sci-libs/scipy[\${PYTHON_MULTI_USEDEP}]
+               )
+       ")
        sci-chemistry/molmol
-       sci-chemistry/pymol[${PYTHON_USEDEP}]
        sci-chemistry/vmd
-       >=sci-libs/bmrblib-1.0.3[${PYTHON_USEDEP}]
-       >=sci-libs/minfx-1.0.11[${PYTHON_USEDEP}]
-       || (
-               sci-libs/scipy-python2[${PYTHON_USEDEP}]
-               sci-libs/scipy[${PYTHON_USEDEP}]
-       )
        sci-visualization/grace
        sci-visualization/opendx
        x11-libs/wxGTK:${WX_GTK_VER}[X]"