| 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/rope/rope-0.9.3.ebuild,v 1.8 2012/05/29 05:28:03 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI="3"
|
| 6 |
|
| 7 |
PYTHON_DEPEND="2"
|
| 8 |
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
RESTRICT_PYTHON_ABIS="3.* *-jython"
|
| 10 |
PYTHON_TESTS_FAILURES_TOLERANT_ABIS="2.7-pypy-*"
|
| 11 |
|
| 12 |
inherit distutils eutils
|
| 13 |
|
| 14 |
DESCRIPTION="Python refactoring library"
|
| 15 |
HOMEPAGE="http://rope.sourceforge.net/ http://pypi.python.org/pypi/rope"
|
| 16 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
| 17 |
|
| 18 |
LICENSE="GPL-2"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="amd64 x86"
|
| 21 |
IUSE=""
|
| 22 |
|
| 23 |
DEPEND="dev-python/setuptools"
|
| 24 |
RDEPEND=""
|
| 25 |
|
| 26 |
src_prepare() {
|
| 27 |
distutils_src_prepare
|
| 28 |
epatch "${FILESDIR}/${P}-fix_tests_results.patch" \
|
| 29 |
"${FILESDIR}"/${P}-python2.7.patch
|
| 30 |
}
|
| 31 |
|
| 32 |
src_test() {
|
| 33 |
testing() {
|
| 34 |
PYTHONPATH="build-${PYTHON_ABI}/lib:." "$(PYTHON)" ropetest/__init__.py
|
| 35 |
}
|
| 36 |
python_execute_function testing
|
| 37 |
}
|
| 38 |
|
| 39 |
src_install() {
|
| 40 |
distutils_src_install
|
| 41 |
docinto docs
|
| 42 |
dodoc docs/*.txt
|
| 43 |
}
|