From b98746cf5b78d8889973a854a0175fdfb6601200 Mon Sep 17 00:00:00 2001 From: eroen Date: Tue, 4 Feb 2014 19:59:37 +0100 Subject: dev-python/m3u8 - enable 2to3 --- dev-python/m3u8/m3u8-9999.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'dev-python') diff --git a/dev-python/m3u8/m3u8-9999.ebuild b/dev-python/m3u8/m3u8-9999.ebuild index 9e2335a0..20a3d199 100644 --- a/dev-python/m3u8/m3u8-9999.ebuild +++ b/dev-python/m3u8/m3u8-9999.ebuild @@ -7,8 +7,7 @@ # $Header: $ EAPI=5 -# needs 2to3 for urlparse -PYTHON_COMPAT=(python2_7) +PYTHON_COMPAT=(python2_7 python3_2 python3_3) DESCRIPTION="m3u8 parser" HOMEPAGE="https://pypi.python.org/pypi/m3u8 https://github.com/globocom/m3u8" @@ -38,7 +37,16 @@ DEPEND="${VCS_DEPEND} sys-process/procps )" RDEPEND="" +python_prepare() { + if [[ "${EPYTHON}" == python3* ]]; then + 2to3-"${EPYTHON#python}" -w ${PN} || die + fi +} + python_test() { + if [[ "${EPYTHON}" == python3* ]]; then + 2to3-"${EPYTHON#python}" -w tests || die + fi sed -e '/pip install/c:' \ -i runtests || die ./runtests || die -- cgit v1.2.1