dev-python/urwid: Use python_is_python3 to determine current Python implementation
authorMing Dai <radaiming@gmail.com>
Mon, 18 Apr 2016 11:14:01 +0000 (19:14 +0800)
committerIan Delaney <idella4@gentoo.org>
Mon, 18 Apr 2016 15:18:58 +0000 (23:18 +0800)
Package-Manager: portage-2.2.26
Closes: https://github.com/gentoo/gentoo/pull/1296

Signed-off-by: Ian Delaney <idella4@gentoo.org>
dev-python/urwid/urwid-1.3.1.ebuild

index 892d50866db222e7c2e379446ec3bac849c6c2b5..0fa8a9fbeb76b36740d60a3d51462058251336d3 100644 (file)
@@ -27,7 +27,7 @@ PATCHES=( "${FILESDIR}"/${PN}-1.1.0-sphinx.patch )
 
 python_compile_all() {
        if use doc ; then
-               if [[ ${EPYTHON} == python3* ]] ; then
+               if python_is_python3; then
                        2to3 -nw --no-diffs docs/conf.py || die
                fi
                cd docs
@@ -36,7 +36,7 @@ python_compile_all() {
 }
 
 python_compile() {
-       if [[ ${EPYTHON} == python2* ]] ; then
+       if ! python_is_python3; then
                local CFLAGS="${CFLAGS} -fno-strict-aliasing"
                export CFLAGS
        fi