summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild')
-rw-r--r--sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild b/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild
index d65b9eccd7d1..01c36c263a06 100644
--- a/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild
+++ b/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild,v 1.3 2009/08/02 01:56:27 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.55.ebuild,v 1.4 2010/04/04 21:56:32 arfrever Exp $
IUSE="nls"
@@ -66,20 +66,17 @@ src_unpack() {
}
src_compile() {
- python_version
-
einfo "Compiling policycoreutils"
- emake -C "${S}" PYLIBVER="python${PYVER}" AUDIT_LOG_PRIV=y || die
+ emake -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y || die
einfo "Compiling policycoreutils-extra"
emake -C "${S2}" || die
}
src_install() {
- python_version
python_need_rebuild
einfo "Installing policycoreutils"
- make DESTDIR="${D}" -C "${S}" PYLIBVER="python${PYVER}" AUDIT_LOG_PRIV=y install || die
+ make DESTDIR="${D}" -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y install || die
einfo "Installing policycoreutils-extra"
make DESTDIR="${D}" -C "${S2}" install || die
@@ -98,11 +95,9 @@ src_install() {
}
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)
}