dev-python/jira: Restrict jirashell to py3
authorMichał Górny <mgorny@gentoo.org>
Tue, 3 Dec 2019 09:52:31 +0000 (10:52 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 4 Dec 2019 17:13:24 +0000 (18:13 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/jira/jira-1.0.14-r2.ebuild

index 321f0c84d12cf4b7279df20cd3c6db66d870e8fd..69e2892abc7553a5bb2c1adc24dd8b25b8dcff89 100644 (file)
@@ -13,6 +13,8 @@ LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="magic jirashell kerberos oauth"
+REQUIRED_USE="kerberos? ( !python_targets_python2_7 )
+       jirashell? ( || ( $(python_gen_useflags -3) ) )"
 
 DEPEND="
        >=dev-python/pbr-3.0[${PYTHON_USEDEP}]
@@ -26,8 +28,10 @@ RDEPEND="
        dev-python/six[${PYTHON_USEDEP}]
        magic? ( dev-python/filemagic[${PYTHON_USEDEP}] )
        jirashell? (
-               dev-python/ipython[${PYTHON_USEDEP}]
-               dev-python/requests-oauthlib[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep '
+                       dev-python/ipython[${PYTHON_USEDEP}]
+                       dev-python/requests-oauthlib[${PYTHON_USEDEP}]
+               ' -3)
        )
        kerberos? ( $(python_gen_cond_dep 'dev-python/requests-kerberos[${PYTHON_USEDEP}]' -3) )
        oauth? (
@@ -35,5 +39,3 @@ RDEPEND="
                dev-python/requests-oauthlib[${PYTHON_USEDEP}]
        )
        "
-
-REQUIRED_USE="kerberos? ( !python_targets_python2_7 )"