|
Lines 9-28
PYTHON_COMPAT=( python2_7 )
Link Here
|
| 9 |
inherit distutils-r1 |
9 |
inherit distutils-r1 |
| 10 |
|
10 |
|
| 11 |
DESCRIPTION="Python refactoring library" |
11 |
DESCRIPTION="Python refactoring library" |
| 12 |
HOMEPAGE="http://rope.sourceforge.net/" |
12 |
HOMEPAGE="https://github.com/python-rope/rope" |
| 13 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
13 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
| 14 |
|
14 |
|
| 15 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
| 16 |
SLOT="0" |
16 |
SLOT="0" |
| 17 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
17 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
| 18 |
IUSE="" |
18 |
IUSE="doc" |
|
|
19 |
|
| 20 |
# Dependency for docbuild documentation which is not noted in |
| 21 |
# setup.py, using standard docutils builds docs successfully. |
| 22 |
DEPEND="doc? ( dev-python/docutils[${PYTHON_USEDEP}] )" |
| 23 |
|
| 24 |
PATCHES=( "${FILESDIR}/${P}-doc-syntax-errors.patch" ) |
| 19 |
|
25 |
|
| 20 |
python_test() { |
26 |
python_test() { |
| 21 |
PYTHONPATH="${BUILD_DIR}/lib:." ${EPYTHON} ropetest/__init__.py |
27 |
PYTHONPATH="${BUILD_DIR}/lib:." ${EPYTHON} ropetest/__init__.py |
| 22 |
} |
28 |
} |
| 23 |
|
29 |
|
| 24 |
src_install() { |
30 |
python_compile_all() { |
| 25 |
distutils-r1_src_install |
31 |
local i; |
| 26 |
docinto docs |
32 |
if use doc; then |
| 27 |
dodoc docs/*.rst |
33 |
pushd docs > /dev/null |
|
|
34 |
mkdir build || die |
| 35 |
for i in ./*.rst |
| 36 |
do |
| 37 |
rst2html.py $i > ./build/${i/rst/html} || die |
| 38 |
done |
| 39 |
popd > /dev/null |
| 40 |
fi |
| 41 |
} |
| 42 |
|
| 43 |
python_install_all() { |
| 44 |
use doc && local HTML_DOCS=( doc/build/. ) |
| 45 |
distutils-r1_python_install_all |
| 28 |
} |
46 |
} |