1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
10 DESCRIPTION="A documentation generator for Python projects, using Restructured Text"
11 HOMEPAGE="http://pudge.lesscode.org https://pypi.python.org/pypi/pudge"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
19 RDEPEND="dev-python/docutils[${PYTHON_USEDEP}]
20 >=dev-python/kid-0.9.5[${PYTHON_USEDEP}]
21 dev-python/pygments[${PYTHON_USEDEP}]"
22 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
25 python_compile_all() {
27 einfo "Generation of documentation"
28 "${PYTHON}" bin/pudge --modules=pudge --documents=doc/index.rst --dest=doc/html \
29 || die "Generation of documentation failed"
33 python_install_all() {
34 use doc && local HTML_DOCS=( doc/html/. )
35 distutils-r1_python_install_all