| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pep8/pep8-1.1.ebuild,v 1.2 2012/06/02 15:24:35 xarthisius Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
SUPPORT_PYTHON_ABIS="1"
|
| 8 |
|
| 9 |
inherit distutils vcs-snapshot
|
| 10 |
|
| 11 |
DESCRIPTION="Python style guide checker"
|
| 12 |
HOMEPAGE="http://github.com/jcrocholl/pep8 http://pypi.python.org/pypi/pep8"
|
| 13 |
SRC_URI="https://github.com/jcrocholl/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
| 14 |
|
| 15 |
LICENSE="MIT"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
| 18 |
IUSE=""
|
| 19 |
|
| 20 |
DEPEND="dev-python/setuptools"
|
| 21 |
RDEPEND="${DEPEND}"
|
| 22 |
|
| 23 |
PYTHON_MODNAME=${PN}.py
|
| 24 |
DOCS="CHANGES.txt"
|
| 25 |
|
| 26 |
src_test() {
|
| 27 |
test_func() {
|
| 28 |
local test_ok=0
|
| 29 |
PYTHONPATH="${S}" "$(PYTHON)" ${PYTHON_MODNAME} -v --testsuite=testsuite || test_ok=1
|
| 30 |
PYTHONPATH="${S}" "$(PYTHON)" ${PYTHON_MODNAME} --doctest -v || test_ok=1
|
| 31 |
return ${test_ok}
|
| 32 |
}
|
| 33 |
python_execute_function test_func
|
| 34 |
}
|