1 |
commit: 1f5b22a2558ff171410317e9c5a51a5d2f356d09 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 3 09:01:03 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 3 10:17:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f5b22a2 |
7 |
|
8 |
dev-python/pylint: Version Bump |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/pylint/Manifest | 1 + |
14 |
dev-python/pylint/pylint-1.4.5.ebuild | 62 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest |
18 |
index 39413d3..2c9fac8 100644 |
19 |
--- a/dev-python/pylint/Manifest |
20 |
+++ b/dev-python/pylint/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pylint-1.4.4.tar.gz 342461 SHA256 0561af4d6bd4fa9e8e02f3997fe93684f7187c57bcef9db8c2ea9fb0d7d2f022 SHA512 bcbf5439628a071055cea441455f6c0fe0cbfae2617c473bc376b880421f17f78653901d7cf49950653436a0991a3bafbc2df15744ff24a3b059de53e518b331 WHIRLPOOL 9b8f5384691f5e762bfd7313691783e0b1a9148effec0b29f2e538f587dfa03f57413817589f8fc3f152c05330b7f39c8ede27720ff6ad12496f9101d824fedf |
23 |
+DIST pylint-1.4.5.tar.gz 342366 SHA256 cd6623bdd6e79b6b1e4c24672bdfa5923ce14541cf26fecd2bbc56845d136086 SHA512 530cdf53c411afc2b96d1716c5f9effa7b6406f9957c2b5183f651f47e458c28692e183f905a321adeb4919bd0ec68a4148fb171294ad08dfb5b87d37668849f WHIRLPOOL d4ccb18f42ab9b270c949ce145ec22a0f0f0f065f97e2f9fadd29b5503b348bee7ecf1321055b91dca3a9690946c238b09221521612c68f64d42d6170d92d7b0 |
24 |
|
25 |
diff --git a/dev-python/pylint/pylint-1.4.5.ebuild b/dev-python/pylint/pylint-1.4.5.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..5c739cd |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pylint/pylint-1.4.5.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy ) |
38 |
+PYTHON_REQ_USE="threads(+)" |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+RESTRICT="test" # needs pygtk |
43 |
+ |
44 |
+DESCRIPTION="Python code static checker" |
45 |
+HOMEPAGE="http://www.logilab.org/project/pylint https://pypi.python.org/pypi/pylint" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" |
51 |
+IUSE="doc examples test" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=dev-python/logilab-common-0.53.0[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/astroid-1.3.6[${PYTHON_USEDEP}] |
56 |
+ <dev-python/astroid-1.4[${PYTHON_USEDEP}] |
57 |
+ dev-python/six[${PYTHON_USEDEP}]" |
58 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
60 |
+ test? ( ${RDEPEND} )" |
61 |
+ |
62 |
+# Usual. Requ'd for impl specific failures in test phase |
63 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
64 |
+ |
65 |
+python_compile_all() { |
66 |
+ # selection of straight html triggers a trivial annoying bug, we skirt it |
67 |
+ use doc && PYTHONPATH="${S}" emake -e -C doc singlehtml |
68 |
+} |
69 |
+ |
70 |
+python_test() { |
71 |
+ # Test suite appears not to work under Python 3. |
72 |
+ # https://bitbucket.org/logilab/pylint/issue/240/ |
73 |
+ local msg="Test suite broken with ${EPYTHON}" |
74 |
+ if python_is_python3; then |
75 |
+ einfo "${msg}" |
76 |
+ return 0 |
77 |
+ fi |
78 |
+ |
79 |
+ pytest || die "Tests failed under ${EPYTHON}" |
80 |
+} |
81 |
+ |
82 |
+python_install_all() { |
83 |
+ doman man/{pylint,pyreverse}.1 |
84 |
+ use examples && local EXAMPLES=( examples/. ) |
85 |
+ use doc && local HTML_DOCS=( doc/_build/singlehtml/. ) |
86 |
+ distutils-r1_python_install_all |
87 |
+} |
88 |
+ |
89 |
+pkg_postinst() { |
90 |
+ # Optional dependency on "tk" USE flag would break support for Jython. |
91 |
+ elog "pylint-gui script requires dev-lang/python with \"tk\" USE flag enabled." |
92 |
+} |