# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION='Pudge is a documentation generator for Python projects, using Restructured Text' HOMEPAGE='http://pudge.lesscode.org' SRC_URI="http://cheeseshop.python.org/packages/source/${P:0:1}/${PN}/${P}.tar.gz" LICENSE='MIT' SLOT='0' KEYWORDS='~x86' IUSE='doc' RDEPEND='dev-python/docutils >=dev-python/kid-0.7.1' DEPEND='dev-python/setuptools' src_compile() { distutils_src_compile if use doc && has_version '>=dev-python/buildutils-0.1.2'; then $python setup.py pudge else einfo 'pudge with USE flag "doc" requires >=dev-python/buildutils-0.1.2' einfo 'please emerge pudge again after >=dev-python/buildutils-0.1.2' fi } src_install() { distutils_src_install [[ -d doc/html ]] && dohtml -r doc/html/ }