summaryrefslogtreecommitdiff
blob: b972194feffd7098cf75a7510c70ac3c458bb937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pychecker/pychecker-0.8.19.ebuild,v 1.11 2013/10/22 14:18:24 grobian Exp $

EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"

inherit distutils eutils

DESCRIPTION="Python source code checking tool"
HOMEPAGE="http://pychecker.sourceforge.net/ http://pypi.python.org/pypi/PyChecker"
SRC_URI="mirror://sourceforge/pychecker/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""

DEPEND=""
RDEPEND=""

DOCS="pycheckrc"
PYTHON_VERSIONED_EXECUTABLES=("/usr/bin/pychecker")

src_prepare() {
	distutils_src_prepare

	epatch "${FILESDIR}"/${P}-version.patch

	# Disable installation of unneeded files.
	sed -e "/'data_files'       :/d" -i setup.py || die "sed failed"

	# Strip final "/" from root.
	sed -e 's:root = self\.distribution\.get_command_obj("install")\.root:&\.rstrip("/"):' -i setup.py || die "sed failed"

	epatch "${FILESDIR}/${P}-create_script.patch"
}