# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/pep8/pep8-1.0.1.ebuild,v 1.2 2012/04/12 20:07:38 floppym Exp $ EAPI=3 PYTHON_DEPEND="2:2.5 3:3.1" SUPPORT_PYTHON_ABIS="1" inherit distutils DESCRIPTION="Python style guide checker" HOMEPAGE="http://github.com/jcrocholl/pep8 http://pypi.python.org/pypi/pep8" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-python/setuptools" RDEPEND="${DEPEND}" PYTHON_MODNAME="${PN}.py" src_test() { test_func() { PYTHONPATH=${S} ${PYTHON} ${S}/${PYTHON_MODNAME} -v --testsuite=testsuite } python_execute_function test_func }