# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION='Distutils extensions for developing Python libraries and applications' HOMEPAGE='http://buildutils.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='virtual/python' DEPEND='dev-python/setuptools' src_compile() { distutils_src_compile if use doc && has_version '>=dev-python/pudge-0.1.2'; then $python setup.py pudge else einfo 'buildutils with USE flag "doc" requires >=dev-python/pudge-0.1.2' einfo 'please emerge buildutils again after >=dev-python/pudge-0.1.2' fi } src_install() { distutils_src_install [[ -d doc/html ]] && dohtml -r doc/html/ }