From 5f348cae58aee3f2b7d4d5ed83a92fc02cdec598 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 9 May 2012 04:12:32 +0000 Subject: Unrestrict python 3, bug 407925 by W. Trevor King. (Portage version: 2.2.0_alpha102/cvs/Linux x86_64) --- dev-python/markdown/ChangeLog | 5 ++++- dev-python/markdown/markdown-2.1.1.ebuild | 11 +++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'dev-python/markdown') diff --git a/dev-python/markdown/ChangeLog b/dev-python/markdown/ChangeLog index f0b103fb37f1..11c0dd743172 100644 --- a/dev-python/markdown/ChangeLog +++ b/dev-python/markdown/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-python/markdown # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/markdown/ChangeLog,v 1.19 2012/02/20 07:57:32 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/markdown/ChangeLog,v 1.20 2012/05/09 04:12:32 floppym Exp $ + + 09 May 2012; Mike Gilbert markdown-2.1.1.ebuild: + Unrestrict python 3, bug 407925 by W. Trevor King. *markdown-2.1.1 (20 Feb 2012) diff --git a/dev-python/markdown/markdown-2.1.1.ebuild b/dev-python/markdown/markdown-2.1.1.ebuild index e376e9bd5432..359ffe043193 100644 --- a/dev-python/markdown/markdown-2.1.1.ebuild +++ b/dev-python/markdown/markdown-2.1.1.ebuild @@ -1,11 +1,9 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/markdown/markdown-2.1.1.ebuild,v 1.1 2012/02/20 07:57:32 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/markdown/markdown-2.1.1.ebuild,v 1.2 2012/05/09 04:12:32 floppym Exp $ EAPI="3" -PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" inherit distutils @@ -38,7 +36,12 @@ src_install() { src_test() { testing() { - "$(PYTHON)" run-tests.py + cp -r run-tests.py tests build-${PYTHON_ABI}/ || return + cd build-${PYTHON_ABI} + if [[ $(python_get_version -l --major) == 3 ]]; then + 2to3 -n -w --no-diffs tests || return + fi + PYTHONPATH=lib "$(PYTHON)" run-tests.py } python_execute_function testing } -- cgit v1.2.3-65-gdbad