net-wireless/gr-air-modes: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Fri, 7 Feb 2020 17:41:16 +0000 (18:41 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Feb 2020 16:34:20 +0000 (17:34 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
net-wireless/gr-air-modes/gr-air-modes-9999.ebuild

index 5f10964933fd81ce225afedd47e2f8ed8e781047..c0aad83ffd8cb3197cd157e4eee55ffefc8624f0 100644 (file)
@@ -24,16 +24,18 @@ IUSE="fgfs rtlsdr uhd"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DEPEND="${PYTHON_DEPS}
-       dev-python/pyzmq[${PYTHON_USEDEP}]
        >=net-wireless/gnuradio-3.7.0:=
        net-wireless/gr-osmosdr
-       fgfs? (
-               games-simulation/flightgear
-               || (
-                       sci-libs/scipy-python2[${PYTHON_USEDEP}]
-                       sci-libs/scipy[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               dev-python/pyzmq[${PYTHON_MULTI_USEDEP}]
+               fgfs? (
+                       games-simulation/flightgear
+                       || (
+                               sci-libs/scipy-python2[${PYTHON_MULTI_USEDEP}]
+                               sci-libs/scipy[${PYTHON_MULTI_USEDEP}]
+                       )
                )
-       )
+       ')
        rtlsdr? ( net-wireless/rtl-sdr )
        uhd? ( >=net-wireless/uhd-3.4.0 )
 "