www-apps/nikola: Restrict ipython to py3
authorMichał Górny <mgorny@gentoo.org>
Tue, 3 Dec 2019 09:59:20 +0000 (10:59 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 4 Dec 2019 17:13:41 +0000 (18:13 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
www-apps/nikola/nikola-7.8.15.ebuild

index 0b60762572131a35243f53aa6b5c6e3b022c4791..4ae53a85554272d9d97b03ac2e47c0ac1cb6ae76 100644 (file)
@@ -17,6 +17,7 @@ LICENSE="MIT Apache-2.0 CC0-1.0 public-domain"
 SLOT="0"
 KEYWORDS="amd64"
 IUSE="assets charts ghpages hyphenation ipython jinja watchdog webmedia websocket"
+REQUIRED_USE="ipython? ( || ( $(python_gen_useflags -3) ) )"
 RESTRICT="test" # needs coveralls
 
 DEPEND=">=dev-python/docutils-0.12[${PYTHON_USEDEP}]" # needs rst2man to build manpage
@@ -42,7 +43,11 @@ RDEPEND="${DEPEND}
        charts? ( >=dev-python/pygal-2.0.1[${PYTHON_USEDEP}] )
        ghpages? ( >=dev-python/ghp-import-0.4.1[${PYTHON_USEDEP}] )
        hyphenation? ( >=dev-python/pyphen-0.9.1[${PYTHON_USEDEP}] )
-       ipython? ( >=dev-python/ipython-2.0.0[notebook,${PYTHON_USEDEP}] )
+       ipython? (
+               $(python_gen_cond_dep '
+                       >=dev-python/ipython-2.0.0[notebook,${PYTHON_USEDEP}]
+               ' -3)
+       )
        jinja? ( >=dev-python/jinja-2.7.2[${PYTHON_USEDEP}] )
        watchdog? ( ~dev-python/watchdog-0.8.3[${PYTHON_USEDEP}] )
        webmedia? ( >=dev-python/micawber-0.3.0[${PYTHON_USEDEP}] )