summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-19 15:18:34 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-06-19 15:18:34 +0000
commita30237a7d4c0022f6fce5032c934d3e53ed02946 (patch)
treeea7c894f66572f834565537c1720da96199b0e20 /dev-util/pkgcore-checks
parentDelete older ebuilds. (diff)
downloadgentoo-2-a30237a7d4c0022f6fce5032c934d3e53ed02946.tar.gz
gentoo-2-a30237a7d4c0022f6fce5032c934d3e53ed02946.tar.bz2
gentoo-2-a30237a7d4c0022f6fce5032c934d3e53ed02946.zip
Delete call to deprecated python_version(). Simplify src_test().
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/pkgcore-checks')
-rw-r--r--dev-util/pkgcore-checks/ChangeLog6
-rw-r--r--dev-util/pkgcore-checks/pkgcore-checks-0.4.13.ebuild23
2 files changed, 14 insertions, 15 deletions
diff --git a/dev-util/pkgcore-checks/ChangeLog b/dev-util/pkgcore-checks/ChangeLog
index 7dc8600eb83b..76c2d958f79f 100644
--- a/dev-util/pkgcore-checks/ChangeLog
+++ b/dev-util/pkgcore-checks/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-util/pkgcore-checks
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/ChangeLog,v 1.44 2010/01/09 02:39:34 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/ChangeLog,v 1.45 2010/06/19 15:18:34 arfrever Exp $
+
+ 19 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pkgcore-checks-0.4.13.ebuild:
+ Delete call to deprecated python_version(). Simplify src_test().
*pkgcore-checks-0.4.13 (09 Jan 2010)
diff --git a/dev-util/pkgcore-checks/pkgcore-checks-0.4.13.ebuild b/dev-util/pkgcore-checks/pkgcore-checks-0.4.13.ebuild
index 9deec9da08bf..76c109838318 100644
--- a/dev-util/pkgcore-checks/pkgcore-checks-0.4.13.ebuild
+++ b/dev-util/pkgcore-checks/pkgcore-checks-0.4.13.ebuild
@@ -1,6 +1,9 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/pkgcore-checks-0.4.13.ebuild,v 1.1 2010/01/09 02:39:34 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/pkgcore-checks-0.4.13.ebuild,v 1.2 2010/06/19 15:18:34 arfrever Exp $
+
+EAPI="3"
+DISTUTILS_SRC_TEST="setup.py"
inherit distutils
@@ -14,17 +17,11 @@ KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RDEPEND=">=sys-apps/pkgcore-0.5.9
- >=dev-python/snakeoil-0.3.6
- >=dev-lang/python-2.4"
+ >=dev-python/snakeoil-0.3.6"
DEPEND="${RDEPEND}"
-DOCS="NEWS AUTHORS"
-
-PYTHON_MODNAME=pkgcore_checks
-
-src_test() {
- "${python}" setup.py test || die "tests returned non zero"
-}
+DOCS="AUTHORS NEWS"
+PYTHON_MODNAME="pkgcore_checks"
pkg_postinst() {
einfo "updating pkgcore plugin cache"
@@ -33,11 +30,9 @@ pkg_postinst() {
}
pkg_postrm() {
- python_version
# Careful not to remove this on up/downgrades.
- local sitep="${ROOT}"usr/lib/python${PYVER}/site-packages
- if [[ -e "${sitep}/pkgcore_checks/plugins/plugincache2" ]] &&
- ! [[ -e "${sitep}/pkgcore_checks/base.py" ]]; then
+ local sitep="${ROOT}$(python_get_sitedir)"
+ if [[ -e "${sitep}/pkgcore_checks/plugins/plugincache2" && ! -e "${sitep}/pkgcore_checks/base.py" ]]; then
rm "${sitep}/pkgcore_checks/plugins/plugincache2"
fi
distutils_pkg_postrm