summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-07-17 16:38:02 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-07-17 16:38:02 +0000
commit2e1e1b3c67cda9c226ce6bf11da827159ad614e7 (patch)
tree1bfab0049c56068d9be513c72e81a1c70be0553f /dev-python/pychecker
parentDelete older ebuilds. (diff)
downloadgentoo-2-2e1e1b3c67cda9c226ce6bf11da827159ad614e7.tar.gz
gentoo-2-2e1e1b3c67cda9c226ce6bf11da827159ad614e7.tar.bz2
gentoo-2-2e1e1b3c67cda9c226ce6bf11da827159ad614e7.zip
Fix path in /usr/bin/pychecker (bug #265384).
(Portage version: 13832-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/pychecker')
-rw-r--r--dev-python/pychecker/ChangeLog8
-rw-r--r--dev-python/pychecker/pychecker-0.8.18.ebuild26
2 files changed, 19 insertions, 15 deletions
diff --git a/dev-python/pychecker/ChangeLog b/dev-python/pychecker/ChangeLog
index a440339337d0..5e908a91eb98 100644
--- a/dev-python/pychecker/ChangeLog
+++ b/dev-python/pychecker/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pychecker
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pychecker/ChangeLog,v 1.39 2009/01/04 19:46:19 patrick Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pychecker/ChangeLog,v 1.40 2009/07/17 16:38:02 arfrever Exp $
+
+ 17 Jul 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pychecker-0.8.18.ebuild:
+ Fix path in /usr/bin/pychecker (bug #265384).
*pychecker-0.8.18 (04 Jan 2009)
diff --git a/dev-python/pychecker/pychecker-0.8.18.ebuild b/dev-python/pychecker/pychecker-0.8.18.ebuild
index 824106d5340f..80b11ae8f2aa 100644
--- a/dev-python/pychecker/pychecker-0.8.18.ebuild
+++ b/dev-python/pychecker/pychecker-0.8.18.ebuild
@@ -1,36 +1,36 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pychecker/pychecker-0.8.18.ebuild,v 1.1 2009/01/04 19:46:19 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pychecker/pychecker-0.8.18.ebuild,v 1.2 2009/07/17 16:38:02 arfrever Exp $
+
+EAPI="2"
inherit distutils eutils
DESCRIPTION="Tool for finding common bugs in python source code"
SRC_URI="mirror://sourceforge/pychecker/${P}.tar.gz"
HOMEPAGE="http://pychecker.sourceforge.net/"
+
+LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
-LICENSE="BSD"
IUSE=""
+
DEPEND="virtual/python"
+RDEPEND="${DEPEND}"
+
DOCS="pycheckrc"
-src_unpack() {
- distutils_src_unpack
+src_prepare() {
+ distutils_src_prepare
epatch "${FILESDIR}"/pychecker-0.8.17-no-data-files.patch
epatch "${FILESDIR}"/pychecker-0.8.18-pychecker2.patch
-}
-
-src_install() {
- distutils_src_install
- sed -i -e "s|${D}|/|" "${D}/usr/bin/pychecker"
+ sed -e 's:root = self\.distribution\.get_command_obj("install")\.root:&\.rstrip("/"):' -i setup.py || die "sed setup.py failed"
}
pkg_postinst() {
- python_version
- python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/
+ python_mod_optimize "$(python_get_sitedir)"
}
pkg_postrm() {
- python_version
- python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/
+ python_mod_cleanup "$(python_get_sitedir)"
}