summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pychecker/pychecker-0.8.18.ebuild')
-rw-r--r--dev-python/pychecker/pychecker-0.8.18.ebuild26
1 files changed, 13 insertions, 13 deletions
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)"
}