summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2009-06-19 14:40:07 +0000
committerChristian Ruppert <idl0r@gentoo.org>2009-06-19 14:40:07 +0000
commit1f6cebd669ba35562735a7091da1e86fbdbebf8d (patch)
tree82ee5d1e4450f3b11431e27fbf560b075be4a329 /dev-python/pylint
parentNon-maintainer commit: Version bump, security bugs 263711 and 266438, bump re... (diff)
downloadhistorical-1f6cebd669ba35562735a7091da1e86fbdbebf8d.tar.gz
historical-1f6cebd669ba35562735a7091da1e86fbdbebf8d.tar.bz2
historical-1f6cebd669ba35562735a7091da1e86fbdbebf8d.zip
Version bump to 0.18.0. Fix src_test. Cleanup.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pylint')
-rw-r--r--dev-python/pylint/ChangeLog10
-rw-r--r--dev-python/pylint/Manifest6
-rw-r--r--dev-python/pylint/metadata.xml27
-rw-r--r--dev-python/pylint/pylint-0.18.0.ebuild79
4 files changed, 106 insertions, 16 deletions
diff --git a/dev-python/pylint/ChangeLog b/dev-python/pylint/ChangeLog
index ca4348260f8e..d79d434b5678 100644
--- a/dev-python/pylint/ChangeLog
+++ b/dev-python/pylint/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pylint
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.47 2009/03/26 21:13:08 jmbsvicetto Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.48 2009/06/19 14:40:07 idl0r Exp $
+
+*pylint-0.18.0 (19 Jun 2009)
+
+ 19 Jun 2009; Christian Ruppert <idl0r@gentoo.org> +pylint-0.18.0.ebuild,
+ metadata.xml:
+ Version bump to 0.18.0. Fix src_test. Cleanup.
26 Mar 2009; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
metadata.xml:
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
index 713d417bcbd7..b2e168309e35 100644
--- a/dev-python/pylint/Manifest
+++ b/dev-python/pylint/Manifest
@@ -6,8 +6,10 @@ AUX pylint-0.14.0-tests-typo.patch 227 RMD160 bdf76718ba9ef791d0b7b5e10562eff45d
DIST pylint-0.13.1.tar.gz 178110 RMD160 e0f3e46131ff794e249d333c5736acc739e9ffa6 SHA1 9fdadd370b27089187bd8b592992e9d2b01aa6e2 SHA256 4d152c9f74a87a8e22e57aca71645a83e7393506b420a472eb09e2b83c0a6b43
DIST pylint-0.14.0.tar.gz 182978 RMD160 d17dbe487963c35cf3f32410ad23082a8fa9982e SHA1 b0074cca2083792b5602f33d8e7be33a9ab4322f SHA256 a42b463fd31aba98f95b6336e4e1ef1a734cebe01fd20baeb1781d73182f8b31
DIST pylint-0.15.2.tar.gz 208732 RMD160 db57202962986854694100232b59588e5d2a0369 SHA1 14f5db53e14f874c295bdab0719116b4d7ab5623 SHA256 868c8c105427047842883efc2b1693137fae52e78017a7ae98c2e37b7c1e3f80
+DIST pylint-0.18.0.tar.gz 211559 RMD160 271078a11b13291a78acea7fb8164976da3181b9 SHA1 5d54ae25c29cdcab7bdfaef87e5f5ed2cc183b75 SHA256 54e8135fdb44b41797510ed8e246b19d09c98ead4dec704c5e5152028a79976f
EBUILD pylint-0.13.1.ebuild 2393 RMD160 84597c527ea89272b40f80f165d994268d9273b4 SHA1 89cc28b1671cc4f829d996f99ad61e62e9f60667 SHA256 262fbb683ea9115d682f9f105f355c6fad766da81e07ce614b6925e48f00777e
EBUILD pylint-0.14.0.ebuild 2417 RMD160 665d2b2232dcfd1eeddea1dd964b71f356d4fe7d SHA1 7abb7605de78ef81e73e7e59af90d8cf640baa3c SHA256 4ff2c4e1b975da159b53e777df44ad42f611f167764301bb6a43e116237f4610
EBUILD pylint-0.15.2.ebuild 2293 RMD160 86c80a16501b136fd49be6e6b553db112f82b3c7 SHA1 591b2b5f0295a1cbed895e9f1c9a8237cfa84caa SHA256 b392031739df5785673581c31331b93f6aafd0d5e207a5c2c3e7443e56b20b99
-MISC ChangeLog 7445 RMD160 53c4e9a68e1f9fc1ab8c2bc5bdcae660f75ec23d SHA1 db10f8ef534f294148648e9cb2f4623501d4634d SHA256 a25d70e9ca351c82c845fd6e2912383c2156611e1494300b5b3b08f4721518c7
-MISC metadata.xml 864 RMD160 c1e9d346794eb9fa766f2bec393dc604a86cad09 SHA1 154deadbb239224afad91a84a3993b9cb8031dd9 SHA256 718a95f8607bf6d7bbbe72913ba2c3913e9b5045caf66b2da1de02f267241176
+EBUILD pylint-0.18.0.ebuild 2091 RMD160 bede0ba07bf297fa8bb5544c1c4628ca0995f397 SHA1 f9db4d23402577c83b3e26308b68c29d6000c2cb SHA256 fb62717d55f05412c4e71030303db331bb94131ea9af12b1ac24e4e6e2d111c1
+MISC ChangeLog 7610 RMD160 6ea21d6c7c4c4ba9ea2437f833c50527ea9ae89b SHA1 4c6f354f775caffedbfee2ce9f9ffa6c793dcc47 SHA256 bf68a5f7e53bfbca685d0c0cbf10b216d56d7f688e429477461898c0f2c583cf
+MISC metadata.xml 911 RMD160 a3a270093a4a8fce323686400403ddf65050fd2c SHA1 f401d8be9ed56d507a3d34dd037393e0dc4d6ad7 SHA256 1688855d39252b78f0a04924a5144b84a4d9bee3b34ee612568d5abbb0554937
diff --git a/dev-python/pylint/metadata.xml b/dev-python/pylint/metadata.xml
index dac5605e2070..6f7c605a3a69 100644
--- a/dev-python/pylint/metadata.xml
+++ b/dev-python/pylint/metadata.xml
@@ -1,18 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>python</herd>
- <longdescription lang="en">
- Pylint is a Python source code analyzer which looks for programming
- errors, helps enforcing a coding standard and sniffs for some code
- smells (as defined in Martin Fowler's Refactoring book).
+ <herd>python</herd>
+ <longdescription lang="en">
+ Pylint is a Python source code analyzer which looks for programming
+ errors, helps enforcing a coding standard and sniffs for some code
+ smells (as defined in Martin Fowler's Refactoring book).
- Pylint can be seen as another PyChecker since nearly all tests you can
- do with PyChecker can also be done with Pylint. However, Pylint offers
- some more features, like checking length of lines of code, checking if
- variable names are well-formed according to your coding standard, or
- checking if declared interfaces are truly implemented, and much more.
+ Pylint can be seen as another PyChecker since nearly all tests you can
+ do with PyChecker can also be done with Pylint. However, Pylint offers
+ some more features, like checking length of lines of code, checking if
+ variable names are well-formed according to your coding standard, or
+ checking if declared interfaces are truly implemented, and much more.
- Additionally, it is possible to write plugins to add your own checks.
- </longdescription>
+ Additionally, it is possible to write plugins to add your own checks.
+ </longdescription>
+ <use>
+ <flag name="html">Install HTML documenation</flag>
+ </use>
</pkgmetadata>
diff --git a/dev-python/pylint/pylint-0.18.0.ebuild b/dev-python/pylint/pylint-0.18.0.ebuild
new file mode 100644
index 000000000000..1e02ceda3bb1
--- /dev/null
+++ b/dev-python/pylint/pylint-0.18.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.18.0.ebuild,v 1.1 2009/06/19 14:40:07 idl0r Exp $
+
+EAPI="2"
+
+inherit eutils distutils python
+
+DESCRIPTION="a tool to check if a Python module satisfies a coding standard"
+HOMEPAGE="http://www.logilab.org/projects/pylint/"
+SRC_URI="ftp://ftp.logilab.org/pub/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="doc examples html test tk"
+
+DEPEND=">=dev-python/logilab-common-0.38
+ >=dev-python/astng-0.19.0"
+RDEPEND="${DEPEND}
+ dev-lang/python[tk?]"
+
+src_test() {
+ python_version
+
+ local lpath="${T}/test/lib/python"
+ local tpath=""
+
+ # Create testdir and copy pylint into it for testing purpose.
+ mkdir -p "${lpath}/logilab" || die
+ PYTHONPATH="${lpath}" ${python} setup.py install --home="${T}/test" \
+ || die "test copy failed"
+
+ # To support test w/o setuptools.
+ if [[ -d "${lpath}/${PN}" ]]; then
+ tpath="${lpath}/${PN}"
+ else
+ tpath="${lpath}/${P}-py${PYVER}.egg/${PN}"
+ fi
+
+ # Copy pylint unittest and logilab-{common,astng} into our temporary test
+ # dir.
+ cp -r test/ ${tpath} || die "copy tests failed"
+ cp -r "$(python_get_sitedir)/logilab/"{common,astng} "${lpath}/logilab" \
+ || die "copying logilab-{common,astng} failed!"
+
+ pushd "${tpath}" >/dev/null || die
+ PYTHONPATH="${lpath}" pytest -v || die "tests failed"
+ popd >/dev/null || die
+}
+
+
+src_install() {
+ distutils_src_install
+
+ doman man/{pylint,pyreverse}.1 || die "doman failed"
+ dodoc doc/FAQ.txt || die "dodoc failed"
+
+ if use doc; then
+ dodoc doc/*.txt || die "dodoc failed"
+ fi
+
+ if use html; then
+ dohtml doc/*.html || die "dohtml failed"
+ fi
+
+ if use examples; then
+ docinto examples
+ dodoc examples/* || die "dodoc failed"
+ fi
+}
+
+pkg_postinst() {
+ if ! built_with_use dev-lang/python tk; then
+ ewarn "dev-lang/python has been built without tk support,"
+ ewarn "${PN}-gui doesn't work without Tkinter so if you really need it"
+ ewarn "re-install dev-lang/python with tk useflag enabled."
+ fi
+}