sci-chemistry/chemex: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Sat, 8 Feb 2020 06:57:18 +0000 (07:57 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Feb 2020 16:46:46 +0000 (17:46 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sci-chemistry/chemex/chemex-0.6.1-r3.ebuild [moved from sci-chemistry/chemex/chemex-0.6.1-r2.ebuild with 61% similarity]

similarity index 61%
rename from sci-chemistry/chemex/chemex-0.6.1-r2.ebuild
rename to sci-chemistry/chemex/chemex-0.6.1-r3.ebuild
index 0b85b22ffc3ddb6c98c34ad3be04f6290bde9c73..c6facbd71020b3c7c2d762113cd40e0987ef227b 100644 (file)
@@ -17,22 +17,22 @@ KEYWORDS="~amd64"
 IUSE=""
 
 RDEPEND="
-       || (
-               >=dev-python/matplotlib-python2-1.1[${PYTHON_USEDEP}]
-               >=dev-python/matplotlib-1.1[${PYTHON_USEDEP}]
-       )
-       || (
-               dev-python/numpy-python2[${PYTHON_USEDEP}]
-               dev-python/numpy[${PYTHON_USEDEP}]
-       )
-       || (
-               >=sci-libs/scipy-python2-0.11[${PYTHON_USEDEP}]
-               >=sci-libs/scipy-0.11[${PYTHON_USEDEP}]
-       )
-"
-DEPEND="${RDEPEND}
-       dev-python/setuptools[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               || (
+                       >=dev-python/matplotlib-python2-1.1[${PYTHON_MULTI_USEDEP}]
+                       >=dev-python/matplotlib-1.1[${PYTHON_MULTI_USEDEP}]
+               )
+               || (
+                       dev-python/numpy-python2[${PYTHON_MULTI_USEDEP}]
+                       dev-python/numpy[${PYTHON_MULTI_USEDEP}]
+               )
+               || (
+                       >=sci-libs/scipy-python2-0.11[${PYTHON_MULTI_USEDEP}]
+                       >=sci-libs/scipy-0.11[${PYTHON_MULTI_USEDEP}]
+               )
+       ')
 "
+DEPEND="${RDEPEND}"
 
 src_prepare() {
        # Fix quotes to detect the version properly