dev-python/paste: Use python_gen_cond_dep
authorMichał Górny <mgorny@gentoo.org>
Mon, 27 Jan 2020 06:43:02 +0000 (07:43 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 27 Jan 2020 07:22:15 +0000 (08:22 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/paste/paste-3.2.3.ebuild

index eb9f07e5598bba98f61f0f52620af19c71ee5e89..1c8b18ca69e2e51b5830057c799c8d1e304b3aa1 100644 (file)
@@ -22,8 +22,10 @@ IUSE="flup openid"
 
 RDEPEND="dev-python/namespace-paste[${PYTHON_USEDEP}]
        >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
-       flup? ( dev-python/flup[$(python_gen_usedep 'python2*')] )
-       openid? ( dev-python/python-openid[$(python_gen_usedep 'python2*')] )"
+       flup? (
+               $(python_gen_cond_dep 'dev-python/flup[${PYTHON_USEDEP}]' -2) )
+       openid? (
+               $(python_gen_cond_dep 'dev-python/python-openid[${PYTHON_USEDEP}]' -2) )"
 DEPEND="${RDEPEND}"
 
 S="${WORKDIR}/${MY_P}"