net-wireless/pyrit: Switch to PYTHON_MULTI_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Sat, 8 Feb 2020 06:56:50 +0000 (07:56 +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>
net-wireless/pyrit/pyrit-0.4.0-r1.ebuild
net-wireless/pyrit/pyrit-0.5.0-r1.ebuild [moved from net-wireless/pyrit/pyrit-0.5.0.ebuild with 85% similarity]

index 81a725a4949031e2296f54e634f32489d1da32f5..5f819594a5f5e279fedf3a543dbe47575c8c86fa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -20,7 +20,11 @@ RESTRICT="!test? ( test )"
 
 DEPEND="dev-libs/openssl
        net-libs/libpcap
-       test? ( >=net-analyzer/scapy-2[${PYTHON_USEDEP}] )"
+       test? (
+               $(python_gen_cond_dep '
+                       >=net-analyzer/scapy-2[${PYTHON_MULTI_USEDEP}]
+               ')
+       )"
 RDEPEND=">=net-analyzer/scapy-2
        opencl? ( net-wireless/cpyrit-opencl )
        cuda? ( net-wireless/cpyrit-cuda )"
similarity index 85%
rename from net-wireless/pyrit/pyrit-0.5.0.ebuild
rename to net-wireless/pyrit/pyrit-0.5.0-r1.ebuild
index 0ed8d1961bda676302519b98824c5a421e6a7105..451b7678ac0ff7365daaba35affb2af9ceba7b92 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -21,7 +21,11 @@ RESTRICT="!test? ( test )"
 
 DEPEND="dev-libs/openssl
        net-libs/libpcap
-       test? ( >=net-analyzer/scapy-2[${PYTHON_USEDEP}] )"
+       test? (
+               $(python_gen_cond_dep '
+                       >=net-analyzer/scapy-2[${PYTHON_MULTI_USEDEP}]
+               ')
+       )"
 RDEPEND=">=net-analyzer/scapy-2
        opencl? ( net-wireless/cpyrit-opencl )
        cuda? ( net-wireless/cpyrit-cuda )"