# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils MY_P=${P} S=${WORKDIR}/${MY_P} DESCRIPTION="a library of useful Python functions and classes" SRC_URI="http://zooko.com/repos/pyutil/${MY_P}.tar.gz" HOMEPAGE="http://zooko.com/repos/pyutil/" LICENSE="MIT, LGPL" SLOT="0" KEYWORDS="x86" IUSE="doc" DEPEND="virtual/python >=dev-python/pycrypto-2.0" RDEPEND="$DEPEND dev-python/epydoc" DOCS="README CREDITS PKG-INFO MANIFEST" src_compile() { distutils_src_compile if use doc; then cd ${S} python setup.py build_docs fi } src_install() { distutils_src_install if use doc; then dohtml -r html/* fi }