# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $" NEED_PYTHON="2.4" inherit distutils DESCRIPTION="HTML parser based on the WHAT-WG Web Applications 1.0 HTML5 specification" HOMEPAGE="http://code.google.com/p/html5lib/" SRC_URI="http://${PN}.googlecode.com/files/${P}.zip" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="examples" # simplejson will be bundled with python 2.6 RDEPEND=" test? ( dev-python/simplejson )" DEPEND="${RDEPEND} >=dev-python/setuptools-0.6_rc5" src_install() { distutils_src_install if use examples ; then $(find examples -name '*.pyc' -exec rm -rf {} \;) insinto "/usr/share/doc/${PF}" doins -r examples || die "Failed to install examples" fi } src_test() { distutils_python_version "${python}" setup.py test || die "tests failed" }