# Copyright 1999-2006 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 package that matches URL's to dicts and vice versa" 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.1 >dev-python/pudge-0.1 ) 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() { use test && $python setup.py test }