summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-04-20 19:09:56 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-04-20 19:09:56 +0000
commitbb8dfd8541778bfde8dd4e6f26a1d5420f70db3a (patch)
tree74a6abc3a759cd0f82b070b19133e10a088eb0d5 /sys-apps
parentversion bump; clean old (diff)
downloadgentoo-2-bb8dfd8541778bfde8dd4e6f26a1d5420f70db3a.tar.gz
gentoo-2-bb8dfd8541778bfde8dd4e6f26a1d5420f70db3a.tar.bz2
gentoo-2-bb8dfd8541778bfde8dd4e6f26a1d5420f70db3a.zip
Simplify ebuild.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/pkgcore/pkgcore-0.5.11.3.ebuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/sys-apps/pkgcore/pkgcore-0.5.11.3.ebuild b/sys-apps/pkgcore/pkgcore-0.5.11.3.ebuild
index a60fd2f8c1e0..6ef6afb89766 100644
--- a/sys-apps/pkgcore/pkgcore-0.5.11.3.ebuild
+++ b/sys-apps/pkgcore/pkgcore-0.5.11.3.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-0.5.11.3.ebuild,v 1.1 2010/03/22 19:20:54 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pkgcore/pkgcore-0.5.11.3.ebuild,v 1.2 2010/04/20 19:09:56 arfrever Exp $
+
+DISTUTILS_SRC_TEST="setup.py"
inherit distutils eutils
@@ -54,20 +56,15 @@ pkg_postinst() {
fi
# This is left behind by pkgcore 0.2.
- rm -f "${ROOT}"usr/$(get_libdir)/python${PYVER}/site-packages/pkgcore/plugins/plugincache
+ rm -f "${ROOT}"$(python_get_sitedir)/pkgcore/plugins/plugincache
}
pkg_postrm() {
- python_version
# Careful not to remove this on up/downgrades.
- local sitep="${ROOT}"usr/$(get_libdir)/python${PYVER}/site-packages
+ local sitep="${ROOT}"$(python_get_sitedir)/site-packages
if [[ -e "${sitep}/pkgcore/plugins/plugincache2" ]] &&
! [[ -e "${sitep}/pkgcore/plugin.py" ]]; then
rm "${sitep}/pkgcore/plugins/plugincache2"
fi
distutils_pkg_postrm
}
-
-src_test() {
- "${python}" setup.py test || die "testing returned non zero"
-}