| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/ansi2html/ansi2html-0.9.1.ebuild,v 1.3 2012/08/07 09:28:57 patrick Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
# ordereddict is need for < 2.7, but it's not packaged (yet)
|
| 8 |
PYTHON_DEPEND="*:2.7"
|
| 9 |
SUPPORT_PYTHON_ABIS="1"
|
| 10 |
DISTUTILS_SRC_TEST="nosetests"
|
| 11 |
RESTRICT_PYTHON_ABIS="2.5 2.5-jython"
|
| 12 |
|
| 13 |
inherit distutils eutils
|
| 14 |
|
| 15 |
DESCRIPTION="Convert text with ANSI color codes to HTML"
|
| 16 |
HOMEPAGE="http://pypi.python.org/pypi/ansi2html https://github.com/ralphbean/ansi2html"
|
| 17 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
| 18 |
|
| 19 |
LICENSE="BSD"
|
| 20 |
SLOT="0"
|
| 21 |
KEYWORDS="~amd64 ~x86"
|
| 22 |
IUSE="test"
|
| 23 |
|
| 24 |
RDEPEND="dev-python/six"
|
| 25 |
DEPEND="${RDEPEND}
|
| 26 |
test? (
|
| 27 |
dev-python/nose
|
| 28 |
dev-python/mock
|
| 29 |
)
|
| 30 |
dev-python/setuptools"
|
| 31 |
|
| 32 |
src_prepare() {
|
| 33 |
if use test; then
|
| 34 |
epatch "${FILESDIR}/${PN}-0.9.1-fix-0-control-code.patch"
|
| 35 |
epatch "${FILESDIR}/${PN}-0.9.1-fix-sys-argv-in-tests.patch"
|
| 36 |
fi
|
| 37 |
}
|