# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils MY_PN='Routes' MY_P="${MY_PN}-${PV}" DESCRIPTION='Routing recognition and generation tools' HOMEPAGE='http://routes.groovie.org/' SRC_URI="http://cheeseshop.python.org/packages/source/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE='BSD' SLOT='0' KEYWORDS='~x86' IUSE='doc test' RDEPEND='virtual/python' DEPEND='>=dev-python/setuptools-0.6_rc3 doc? ( >=dev-python/buildutils-0.1.2 >=dev-python/pudge-0.1.2 ) test? ( dev-python/nose )' PYTHON_MODNAME=$MY_PN S="${WORKDIR}/${MY_P}" src_compile() { distutils_src_compile use doc && $python setup.py pudge } src_install() { distutils_src_install use doc && dohtml -r docs/html/ } src_test() { if use test; then $python setup.py test || die 'tests failed' fi }