diff options
author | Marien Zwart <marienz@gentoo.org> | 2006-03-06 18:39:59 +0000 |
---|---|---|
committer | Marien Zwart <marienz@gentoo.org> | 2006-03-06 18:39:59 +0000 |
commit | d0091679b123b6651b57ca303a7573d3c9b46f3e (patch) | |
tree | eb46ad83f01c7df6efb1c8158061e6179530c73a /dev-python/pylint/pylint-0.10.0.ebuild | |
parent | Stable on hppa. (diff) | |
download | gentoo-2-d0091679b123b6651b57ca303a7573d3c9b46f3e.tar.gz gentoo-2-d0091679b123b6651b57ca303a7573d3c9b46f3e.tar.bz2 gentoo-2-d0091679b123b6651b57ca303a7573d3c9b46f3e.zip |
Version bump
(Portage version: 2.1_pre5-r2)
Diffstat (limited to 'dev-python/pylint/pylint-0.10.0.ebuild')
-rw-r--r-- | dev-python/pylint/pylint-0.10.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/pylint/pylint-0.10.0.ebuild b/dev-python/pylint/pylint-0.10.0.ebuild new file mode 100644 index 000000000000..2c17bdf45716 --- /dev/null +++ b/dev-python/pylint/pylint-0.10.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.10.0.ebuild,v 1.1 2006/03/06 18:39:59 marienz Exp $ + +inherit distutils eutils + +DESCRIPTION="PyLint is a tool to check if a Pyhon module satisfies a coding standard" +SRC_URI="ftp://ftp.logilab.org/pub/pylint/${P}.tar.gz" +HOMEPAGE="http://www.logilab.org/projects/pylint/" + +IUSE="" +SLOT="0" +KEYWORDS="~ppc ~sparc ~x86" +LICENSE="GPL-2" +DEPEND="|| ( >=dev-python/optik-1.4 >=dev-lang/python-2.3 ) + >=dev-python/logilab-common-0.13.0 + >=dev-python/astng-0.15.0" + +DOCS="doc/*.txt" + +src_unpack() { + unpack ${A} + cd "${S}" + + # these two tests do not pass + for testname in func_w0401.py func_format.py \ + func_noerror_staticmethod_as_decorator.py; do + mv test/input/${testname} test/input/${testname}.skipped || + die "skipping ${testname} failed" + done + + epatch "${FILESDIR}/${P}-extra-todo.patch" + epatch "${FILESDIR}/${P}-skip-gtk-test.patch" +} + +src_install() { + distutils_src_install + # do not install the test suite (we ran it from src_test already + # and it makes .py[co] generation very noisy because there are + # files with SyntaxErrors in there) + python_version + rm -rf ${D}/usr/$(get_libdir)/python${PYVER}/site-packages/pylint/test +} + +src_test() { + # The tests will not work properly from the source dir, so do a + # temporary install: + "${python}" setup.py install --home="${T}/test" || die "test copy failed" + # dir needs to be this or the tests fail + cd "${T}/test/lib/python/pylint/test" + PYTHONPATH="${T}/test/lib/python" "${python}" runtests.py || \ + die "tests failed" + cd "${S}" + rm -rf "${T}/test" +} |