blob: 9fe47ad621f2a9f6bd561d7d1d7bc0731e5e5dba (
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
40
41
42
43
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Python source code checking tool"
HOMEPAGE="http://pychecker.sourceforge.net/ https://pypi.org/project/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=""
DOCS=( pycheckrc ChangeLog KNOWN_BUGS MAINTAINERS NEWS README TODO )
PATCHES=(
"${FILESDIR}"/${P}-version.patch
"${FILESDIR}"/${P}-create_script.patch
)
python_prepare_all() {
sed \
-e '1d' \
-i pychecker/checker.py \
|| die
# 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"
distutils-r1_python_prepare_all
}
|