# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) inherit distutils-r1 DESCRIPTION="A library for working with graphs in Python" HOMEPAGE="http://code.google.com/p/python-graph/" SRC_URI="http://python-graph.googlecode.com/files/${P}.zip" LICENSE="MIT" KEYWORDS="~amd64" SLOT="0" IUSE="" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND="media-gfx/pydot[${PYTHON_USEDEP}] dev-python/pyparsing[${PYTHON_USEDEP}]" S=${WORKDIR}/${PN} DISTUTILS_SETUP_FILES=( "core|setup.py" "dot|setup.py" ) do_both() { cd core || die S=${S}/core distutils-r1_"${@}" cd ../dot || die S=${S}/core distutils-r1_"${@}" } python_compile() { do_both python_compile; } python_install() { do_both python_install; } python_test() { cd tests || die "${PYTHON}" testrunner.py || die "Tests fail with ${EPYTHON}" }